Hazukiy Posted May 7, 2013 Share Posted May 7, 2013 Hi, I'm trying to make a infinite picture cycle in jQuery; I know how to do it in Javascript but cross-referencing languages would be a little bit more harder so I'm wondering if they're a way I can do this in jQuery? Here's what I've attempted to do but doesn't work :/ Any ideas? Thanks. <script> $.seq = function() { $(this).fadeIn(2000); $(this).delay(5000); $(this).fadeOut(300, function() { $(this).next().seq(); }); return this; }; $(document).ready(function() { $("#picture_main_1").seq(); $("#picture_main_2").seq(); $("#picture_main_3").seq(); $("#picture_main_4").seq(); }); </script> Quote Link to comment https://forums.phpfreaks.com/topic/277772-jquery-picture-infinite-cycle/ Share on other sites More sharing options...
denno020 Posted May 8, 2013 Share Posted May 8, 2013 This is something I started to put together until I realized that someone else would have surely done it: http://jsfiddle.net/T6PcS/ So the jQuery credit goes to http://stackoverflow.com/questions/5422001/jquery-infinite-loop-for-function user Felix King. Tweak that until you have what you want. Denno Quote Link to comment https://forums.phpfreaks.com/topic/277772-jquery-picture-infinite-cycle/#findComment-1429073 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.