Team:UCLA/Template/Javascript
From 2014.igem.org
(Difference between revisions)
Anuvedverma (Talk | contribs) |
Anuvedverma (Talk | contribs) |
||
Line 220: | Line 220: | ||
}); | }); | ||
$('.hpslider_right').click(function(){ | $('.hpslider_right').click(function(){ | ||
- | if(count < | + | if(count < 15){ |
$('.hpslider_imgs').stop(true,true).animate({ left: '-=1150px'}, 250); | $('.hpslider_imgs').stop(true,true).animate({ left: '-=1150px'}, 250); | ||
count += 1; | count += 1; | ||
} else{ | } else{ | ||
- | $('.hpslider_imgs').stop(true,true).animate({ left: '+= | + | $('.hpslider_imgs').stop(true,true).animate({ left: '+=17250px'}, 250); |
count = 0; | count = 0; | ||
} | } |
Revision as of 12:31, 17 October 2014