Team:UCLA/Aal/javascripttemplate
From 2014.igem.org
(Difference between revisions)
Line 37: | Line 37: | ||
$('html, body').animate({scrollTop: offsetTop}, 500, 'linear'); | $('html, body').animate({scrollTop: offsetTop}, 500, 'linear'); | ||
} | } | ||
- | |||
- | |||
- | |||
(function( $ ){ | (function( $ ){ | ||
$.fn.rotator = function(delay, time, child){ | $.fn.rotator = function(delay, time, child){ | ||
Line 72: | Line 69: | ||
}; | }; | ||
})(jQuery); | })(jQuery); | ||
+ | $(document).scroll(function() { | ||
+ | $("#slides").rotator(55, 1000, 'img'); | ||
+ | }); | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 22:33, 2 September 2014