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

  • SEARCH
  • Home
  • 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 7816073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T05:44:11+00:00 2026-06-02T05:44:11+00:00

I have a div:hover script set up http://jsfiddle.net/4wb5P/6/ (with the help of from StackOverflow

  • 0

I have a div:hover script set up http://jsfiddle.net/4wb5P/6/ (with the help of from StackOverflow member bfrohs, thank you! ), but I’d like to have the hover states start on page load and cycle through all the product hover states (through jquery, I’d assume, or something that plays nice between browsers). So I’ve been trying to get the cycle state to go like this:

  1. Onload: starts with default “Hover to learn more” state
  2. After 2 secs, cycle to ‘product 1 hover state’ and stays for 2-3 secs
  3. Cycles to ‘product 2 hover state’ and stays for 2-3 secs
  4. Cycles to ‘product 3 hover state’ and stays for 2-3 secs
  5. Then starts back at product 1 and goes through all the products indefinitely.

If a user was to rollover any of the hover states it will stop cycle and stay focused on that hover (as long as the pointer stays on that tile). Once the user moves the pointer away, the cycle will restart from step 1.

I’d assume some Jquery would be in use, but that is where it gets me. Any help would be appreciated or any pointers to where to start with plugins, etc. would be greatly appreciated. See my current code below:
http://jsfiddle.net/4wb5P/6/

  • 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-02T05:44:12+00:00Added an answer on June 2, 2026 at 5:44 am

    see my example fiddle: http://jsfiddle.net/bAtCS/1/

    $(function() {
    
        var hoverprod = $('.hover_product'), len = hoverprod.length, intv;
        (function iterativehover(i) {
            hoverprod.removeClass('hover').eq(i).addClass('hover');
            intv = setTimeout(function() {
                iterativehover((i === len - 1)? 0 : i + 1)
            }, 3000);
        }(0));
    
        hoverprod.on('mouseenter', function() {
           clearInterval(intv);
           hoverprod.removeClass('hover');
        });
    
    });
    

    I’ve inserted some new CSS rules everywhere you use :hover pseudoclass. This cycle runs forever until a mouseenter event occurs.

    if you want an initial delay just wrap the code like so

    var rotateDivs = function() {
        var hoverprod = $('.hover_product'), len = hoverprod.length, intv;
        (function iterativehover(i) {
            hoverprod.removeClass('hover').eq(i).addClass('hover');
            intv = setTimeout(function() {
                iterativehover((i === len - 1)? 0 : i + 1)
            }, 3000);
        }(0));
    
        hoverprod.on('mouseenter', function() {
           clearInterval(intv);
           hoverprod.removeClass('hover');
        });
    };
    
    
    $(function() {
        setTimeout(rotateDivs, 3000);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently I have a JQuery script in place http://jsfiddle.net/gaby/zzj7E/5/ which handles the requirement that
so I have a div which will include an image http://www.reversl.net/hovers/ and I'd like
I have made this script $(document).ready(function(){ $(div#tabs a).hover(function(){ rod = this.id $('div.tabber').hide(); $('#tabber_' +
i have following script <script> $(document).ready(function(){ $(div.mover).hover(function () { $(div.hide1).fadeTo(slow, 0.33); $(div.hide1).fadeTo(slow, 1); },function(){
I have a script that switches background image on hover: $('div#example').hover(function(){ $(this).css('background',url('images/bg_2.png') no-repeat bottom);
I have a div.xx-wrapper:hover in CSS which when hovered on, I want to call
I have a div that I have bound the jQuery hover event to activate
I have this code that changes the opacity of the div on hover. $(#navigationcontainer).fadeTo(slow,0.6);
I have a draggable div element with a hover style. This works fine, but
I have a div with an inner div which hi hidden. When I hover

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.