Template:Slider
From 2014.igem.org
(Difference between revisions)
Line 43: | Line 43: | ||
for (i = 0; i <= y-1; i++) | for (i = 0; i <= y-1; i++) | ||
{ | { | ||
- | x.find(".thumb_box").append('<span><img src=" | + | x.find(".thumb_box").append('<span><img src="https://static.igem.org/mediawiki/2014/c/c1/Carousel_circle_normal.png" class="thumb_num" alt="'+i+'" /></span>'); |
} | } | ||
x.find(".thumb_box").append('<span><img src="https://static.igem.org/mediawiki/2014/9/97/Arrow_r.png" alt="next" class="thumb_n"/></span>'); | x.find(".thumb_box").append('<span><img src="https://static.igem.org/mediawiki/2014/9/97/Arrow_r.png" alt="next" class="thumb_n"/></span>'); | ||
Line 74: | Line 74: | ||
case "thumb_num": | case "thumb_num": | ||
if(parseInt($(this).attr("alt")) != w){ | if(parseInt($(this).attr("alt")) != w){ | ||
- | $(this).attr("src",d+" | + | $(this).attr("src",d+"https://static.igem.org/mediawiki/2014/2/28/Carousel_circle_hoverhit.png"); |
} | } | ||
break; | break; | ||
Line 89: | Line 89: | ||
case "thumb_num": | case "thumb_num": | ||
if(parseInt($(this).attr("alt")) != w){ | if(parseInt($(this).attr("alt")) != w){ | ||
- | $(this).attr("src",d+" | + | $(this).attr("src",d+"https://static.igem.org/mediawiki/2014/c/c1/Carousel_circle_normal.png"); |
} | } | ||
break; | break; | ||
Line 136: | Line 136: | ||
left:-(w*parseInt(q)) | left:-(w*parseInt(q)) | ||
},600); | },600); | ||
- | x.find(".thumb_box").children("span").children("img[class='thumb_num']").attr("src",d+" | + | x.find(".thumb_box").children("span").children("img[class='thumb_num']").attr("src",d+"https://static.igem.org/mediawiki/2014/c/c1/Carousel_circle_normal.png"); |
- | x.find(".thumb_box").children("span").children("img[class='thumb_num']").eq(w).attr("src",d+" | + | x.find(".thumb_box").children("span").children("img[class='thumb_num']").eq(w).attr("src",d+"https://static.igem.org/mediawiki/2014/c/c4/Carousel_circle_solid.png"); |
x.find(".title_box").html('<a href="'+x.find(".slides_box").children("ul").children("li").children("a").eq(w).attr("href")+'" style="color:'+stc+'">'+x.find(".slides_box").children("ul").children("li").children("a").eq(w).attr("title")+'</a>'); | x.find(".title_box").html('<a href="'+x.find(".slides_box").children("ul").children("li").children("a").eq(w).attr("href")+'" style="color:'+stc+'">'+x.find(".slides_box").children("ul").children("li").children("a").eq(w).attr("title")+'</a>'); | ||
Revision as of 00:15, 18 October 2014