Jump to content

Recommended Posts

I currently have a javascript slider in place. It's on autoplay at 5 seconds per slide. The second slide has an iframe youtube video.Unfortunately, if I click play, 5 seconds later, the slider autplays to the next slide.Is there any way to get the slider to recognize the video is playing, for example? Or are there any other ways around this that anyone can think of?The JS code is simple, I'm using http://jquery.malsup.com/cycle/ for my slider.

<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>
If you need more code, let me know. It's just a simple iframe.Thanks!
Link to post
Share on other sites
  • 3 weeks later...

You might check the slider's script to see if there is a setting that allows the slide show to stop rotating when a slide is clicked on and can only begin again by another click to continue. It's possible to add logic so that it knows to continue the slider once the video is finished but js is not my strong point but you can check with the developer of that slider to see if he/she can offer a solution.


Otherwise, you could set your video to open up as a popup using a lightbox script.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...