Template:Team:Edinburgh/Code

From 2013.igem.org

(Difference between revisions)
Line 287: Line 287:
$(function() {
$(function() {
-
       setTimeout(function(){}) ;   
+
       setTimeout(changeGalleryPic(), 5000) ;   
-
 
+
-
$(".gallery").children
+
});
});
 +
 +
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