Template:Team:Edinburgh/Code
From 2013.igem.org
(Difference between revisions)
Hristianita (Talk | contribs) |
Hristianita (Talk | contribs) |
||
Line 287: | Line 287: | ||
$(function() { | $(function() { | ||
- | setTimeout( | + | setTimeout(changeGalleryPic(), 5000) ; |
- | + | ||
- | + | ||
}); | }); | ||
+ | |||
+ | function changeGalleryPic() { | ||
+ | gallery_active_id += 1; | ||
+ | if (gallery_active_id >= $(".gallery > p > a > img").length) gallery_active_id = 0; | ||
+ | $(".gallery > p > a > img").css("display", "none"); | ||
+ | $(".gallery > p > a > img")[gallery_active_id].style.display="block"; | ||
+ | } | ||
$(function() { | $(function() { |
Revision as of 20:42, 3 October 2013