Team:ATOMS-Turkiye/deneme
From 2013.igem.org
Line 39: | Line 39: | ||
a.find(".rui-billboard-button-prev").click(function(e){ | a.find(".rui-billboard-button-prev").click(function(e){ | ||
b= a.find(".rui-billboard-current"); | b= a.find(".rui-billboard-current"); | ||
- | |||
b.css("left",0); | b.css("left",0); | ||
b.animate({ | b.animate({ | ||
left: b.outerWidth() | left: b.outerWidth() | ||
- | }); | + | },function(){$(this).removeClass("rui-billboard-current");}); |
b=b.prev("li"); | b=b.prev("li"); | ||
if(b.length<1) | if(b.length<1) | ||
Line 65: | Line 64: | ||
b=a.find("li").first(); | b=a.find("li").first(); | ||
b.stop(); | b.stop(); | ||
+ | b.addClass("rui-billboard-current"); | ||
b.css("left",b.outerWidth()); | b.css("left",b.outerWidth()); | ||
b.animate({ | b.animate({ | ||
left: 0 | left: 0 | ||
- | + | }); | |
}); | }); | ||
} | } |
Revision as of 16:57, 2 October 2013