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 < 14){ |
$('.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: '+=16100px'}, 250); |
count = 0; | count = 0; | ||
} | } |
Revision as of 02:42, 18 October 2014