Template:Slider
From 2014.igem.org
(Difference between revisions)
Line 39: | Line 39: | ||
x.find(".title_thumb_box").append('<div class="title_box"></div>'); | x.find(".title_thumb_box").append('<div class="title_box"></div>'); | ||
x.find(".title_thumb_box").append('<div class="thumb_box"></div>'); | x.find(".title_thumb_box").append('<div class="thumb_box"></div>'); | ||
- | x.find(".thumb_box").append('<span><img src="'+d+' | + | x.find(".thumb_box").append('<span><img src="'+d+'https://static.igem.org/mediawiki/2014/9/91/Arrow_l.png" alt="previous" class="thumb_p"/></span>'); |
x.find(".title_thumb_box").css("background-color",sf); | x.find(".title_thumb_box").css("background-color",sf); | ||
for (i = 0; i <= y-1; i++) | for (i = 0; i <= y-1; i++) | ||
Line 45: | Line 45: | ||
x.find(".thumb_box").append('<span><img src="'+d+'carousel_circle_normal.png" class="thumb_num" alt="'+i+'" /></span>'); | x.find(".thumb_box").append('<span><img src="'+d+'carousel_circle_normal.png" class="thumb_num" alt="'+i+'" /></span>'); | ||
} | } | ||
- | x.find(".thumb_box").append('<span><img src="'+d+' | + | x.find(".thumb_box").append('<span><img src="'+d+'https://static.igem.org/mediawiki/2014/9/97/Arrow_r.png" alt="next" class="thumb_n"/></span>'); |
x.find(".thumb_box").children("span").children("img").click( | x.find(".thumb_box").children("span").children("img").click( | ||
function(){ | function(){ |
Revision as of 23:05, 17 October 2014