Jump to content

Get My Slider to Autoplay?


JCKnoell

Recommended Posts

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.smile.gif Thanks so much for any help you can give!

Link to comment
Share on other sites

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 by thescientist
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...