Team:UCLA/Aal/javascripttemplate

From 2014.igem.org

(Difference between revisions)
Line 13: Line 13:
   });
   });
});
});
-
if($(window).scroll)(function cycleImages() {
+
if($(window).scroll){(function cycleImages() {
     var images = $('#banner_area img'),
     var images = $('#banner_area img'),
         now = images.filter(':visible'),
         now = images.filter(':visible'),
Line 21: Line 21:
     now.fadeOut(speed);
     now.fadeOut(speed);
     next.fadeIn(speed);
     next.fadeIn(speed);
-
}}
+
}
$(function () {
$(function () {
     setInterval(cycleImages, 1400);
     setInterval(cycleImages, 1400);
-
});
+
})};
</script>
</script>
</html>
</html>

Revision as of 23:59, 21 August 2014