Team:UCLA/Template/Javascript
From 2014.igem.org
(Difference between revisions)
Anuvedverma (Talk | contribs) |
Anuvedverma (Talk | contribs) |
||
Line 180: | Line 180: | ||
}); | }); | ||
$('.slider_right').click(function(){ | $('.slider_right').click(function(){ | ||
- | if(count < | + | if(count < 3){ |
$('.slider_imgs').stop(true,true).animate({ left: '-=1150px'}, 250); | $('.slider_imgs').stop(true,true).animate({ left: '-=1150px'}, 250); | ||
count += 1; | count += 1; | ||
} else{ | } else{ | ||
- | $('.slider_imgs').stop(true,true).animate({ left: '+= | + | $('.slider_imgs').stop(true,true).animate({ left: '+=3450px'}, 250); |
count = 0; | count = 0; | ||
} | } |
Revision as of 08:19, 17 October 2014