JCKnoell Posted July 18, 2013 Share Posted July 18, 2013 I have a simple, non-javascript slider. Just css and html, from what I can tell.I don't have much experience with javascript or jquery and most of it is very confusing to me.Having said that, is there any way to get my slider to autoplay? To switch from slide to slide every 3 seconds or so? I know it may well require JS or jQ, but if it does, I'm going to need some hand-holding here... :sThe website is www.cleantelligent.com. You can get the code there. Thanks so much for any help you can give! Link to comment Share on other sites More sharing options...
thescientist Posted July 18, 2013 Share Posted July 18, 2013 (edited) yes it is being done with javascript, jquery with the cycle plugin to be exact http://jquery.malsup.com/cycle/ <script type='text/javascript'> jQuery('#slider-1').cycle({ next: '#next-1', prev: '#prev-1', fx: 'fade', timeout: 30000000, pause: 1, pager: '#slider-nav-pager-1', height: '433px', width: '960px' })</script> And here is the documentation (options) for it http://jquery.malsup.com/cycle/options.html I would remove the pause property, or set it to 0. Seems like you may be initializing it as paused Edited July 18, 2013 by thescientist Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now