Subversion Repositories SmartDukaan

Rev

Rev 1048 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1048 Rev 4127
Line 20... Line 20...
20
          if($('li:last',this).width()+$('li:last',this).offset().left-$('li:first',this).offset().left<$('div',this).width()){
20
          if($('li:last',this).width()+$('li:last',this).offset().left-$('li:first',this).offset().left<$('div',this).width()){
21
               // enable the buttons
21
               // enable the buttons
22
               $('button',this).css('display','inline');
22
               $('button',this).css('display','inline');
23
               $('button.next',this).css('visibility','hidden');
23
               $('button.next',this).css('visibility','hidden');
24
          }
24
          }
25
          $('li:first',this).css("color","#666");
25
          $('li:first',this).css("color","#333333");
-
 
26
          $('li:first',this).css("font-weight","bold");
26
     });
27
     });
27
     
28
     
28
     $('.slider ul li').click(function(){ 
29
     $('.slider ul li').click(function(){ 
29
          //alert($(this).index()); 
30
          //alert($(this).index()); 
30
          $('li',this.parentNode).css("color","#0066CC");
31
          $('li',this.parentNode).css("color","#0066CC");
-
 
32
          $('li',this.parentNode).css("font-weight","normal");
31
          $(this).css("color","#666");
33
          $(this).css("color","#333333");
-
 
34
          $(this).css("font-weight","bold");
32
     });
35
     });
33
     
36
     
34
     $(".slider .next").click(function(){
37
     $(".slider .next").click(function(){
35
          //Remove the exist selector
38
          //Remove the exist selector
36
          //Set the width to the widest of either
39
          //Set the width to the widest of either