Team:UCLA/Aal/javascripttemplate

From 2014.igem.org

(Difference between revisions)
Line 13: Line 13:
   });
   });
});
});
-
function cycleImages() {
+
.scroll(function cycleImages() {
     var images = $('#banner_area img'),
     var images = $('#banner_area img'),
-
         now = images.scroll.filter(':visible'),
+
         now = images.filter(':visible'),
         next = now.next().length ? now.next() : images.first(),
         next = now.next().length ? now.next() : images.first(),
         speed = 1000;
         speed = 1000;
Line 21: Line 21:
     now.fadeOut(speed);
     now.fadeOut(speed);
     next.fadeIn(speed);
     next.fadeIn(speed);
-
}
+
})
$(function () {
$(function () {

Revision as of 23:06, 21 August 2014