Team:ATOMS-Turkiye/deneme
From 2013.igem.org
Line 38: | Line 38: | ||
b= a.find(".rui-billboard-current"); | b= a.find(".rui-billboard-current"); | ||
b.removeClass("rui-billboard-current"); | b.removeClass("rui-billboard-current"); | ||
+ | b.css("left",0); | ||
+ | b.animate({ | ||
+ | left: b.outerWidth() | ||
+ | }); | ||
b=b.prev("li"); | b=b.prev("li"); | ||
if(b.length<1) | if(b.length<1) | ||
b=a.find("li").last(); | b=a.find("li").last(); | ||
b.addClass("rui-billboard-current"); | b.addClass("rui-billboard-current"); | ||
+ | b.css("left",0); | ||
+ | b.animate({ | ||
+ | left: -b.outerWidth() | ||
+ | }); | ||
}); | }); | ||
a.find(".rui-billboard-button-next").click(function(e){ | a.find(".rui-billboard-button-next").click(function(e){ | ||
b= a.find(".rui-billboard-current"); | b= a.find(".rui-billboard-current"); | ||
b.removeClass("rui-billboard-current"); | b.removeClass("rui-billboard-current"); | ||
+ | b.css("left",0); | ||
b.animate({ | b.animate({ | ||
left: -b.outerWidth() | left: -b.outerWidth() |
Revision as of 10:24, 2 October 2013