Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8282013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:13:42+00:00 2026-06-08T10:13:42+00:00

Question: How would I change jQuery Cycle’s options asynchronously via mouse interactions on HTML

  • 0

Question:

How would I change jQuery Cycle’s options asynchronously via mouse interactions on HTML elements?


jsFiddle

Here’s a working example. Refer to the comments for clarification on intentions


Conducted Research:

This tweet from cycle’s author reveals that it’s possible to modify cycle’s options asynchronously.

I asked him in a follow-up tweet if he could expound on the subject and he said (paraphrasing) “keep lurking.”

After examining cycle’s source code, I found that he wasn’t lying. cycle.opts, indeed, exists, and there’s also a debug function that’s apparently of some mentionable use. However, I have very little idea on utilizing these features.

I can return the state of the object using cycle.opts, but it’s the “…and then change what you need,” aspect that I can’t figure out. I’ve reviewed the Options Reference page and the defaults from the other options don’t appear like they would interfere.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T10:13:44+00:00Added an answer on June 8, 2026 at 10:13 am

    With your method, pause-on-hover behavior can’t be changed dynamically after initial setup. Workaround code is posted below.

    I could not get this to work based on the jsFiddle example in your question.

    In my case, I wanted the slideshow to cycle as usual, but activating the pause on hover behavior after the user clicks an image the first time.

    After some debugging it seems like the specific options I wanted to change dynamically, namely ‘pause’ and ‘pauseOnPagerHover’, won’t apply after having set up the slideshow the first time.

    Without having found out the actual reason for this, I hacked together a working solution to my problem, below:

    // After toggling image manually the first time by clicking it, enable pause on hover.
    $('.slideshow-image-link').click(function (e) {
        e.preventDefault();
        // When clicked the first time, set up a hover event pausing the slideshow.
        // It seems like changing the 'pause' option can't be done dynamically after
        // setting up the slideshow cycle.
        $('#slideshow-images').cycle('pause');
        $('.slideshow-image-link').hover(
            function () {  // On mouse in.
                $('#slideshow-images').cycle('pause');
            },
            function () {  // On mouse out.
                $('#slideshow-images').cycle('resume');
            }
        );
    });
    

    Here’s a jsFiddle demonstrating the code above.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A simple answer to this super simple question would be great! Here is the
In IE 8, jQuery acts as I would expect: $('div',$('<a><div></div></a>')).html('test').html() test In FireFox: $('div',$('<a><div></div></a>')).html('test').html()
I thought this question would have already existed on SO, but then I couldn't
Question: How would one write a function to check and return whether or not
Question What would be a good (ideally, technical) reason to ever program some non-trivial
I would like to ask for more an opinion than a question: What would
Before I ask this question I would to apologise because of the fact that
Some time ago I was asked the strange question how would I implement map
This is a follow-up to my previous question I would like to find a
I've never really been poised with this question: But would it be a terrible

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.