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 4101844
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:44:59+00:00 2026-05-20T20:44:59+00:00

When a user hovers over div1: – div1 and div2’s contents fadeout div1 loads

  • 0

When a user hovers over div1: –

  • div1 and div2’s contents fadeout
  • div1 loads some new content
  • div2 fades in div1s existing content

This is where I want this to stop.

However, when the new contents of div1 load, the hover event triggers again, and this continues.

how can i make it so after the initial hover event, the hover event wont occur again until the user has removed the cursor and hovered again on div1?

hope this makes sense, cheers in advance!

$('document').ready(function () {

    //For each small block
    $('#div1').hover(function () {

        var thisWish = $(this).html();
        var nextWish = $('#wishy1').html();

        //Fade the small block out bring in a new wish
        $(this).fadeOut(1200, function () {
            $(this).html(nextWish).fadeIn(1200, function () {

            });
        });

        //Fade the large block and and bring in the small blocks wish
        $('#div2').fadeOut(1200, function () {
            $('#div2').html(thisWish).fadeIn(1200, function () {

            });
        });
    }, 
    function () {
        // hover out
    });
});
  • 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-05-20T20:44:59+00:00Added an answer on May 20, 2026 at 8:44 pm

    Since you’re not using the second event of the hover, use mouseover instead:

    $('document').ready(function(){
        //For each small block
        $('#div1').mouseover(function(){
            var thisWish = $(this).html();
            var nextWish = $('#wishy1').html();
            //Fade the small block out bring in a new wish
            $(this).fadeOut(1200, function(){
                $(this).html(nextWish).fadeIn(1200, function(){
                });
            });
            //Fade the large block and and bring in the small blocks wish
            $('#div2').fadeOut(1200, function(){
                $('#div2').html(thisWish).fadeIn(1200, function(){
                });
            });
        }
    
    })
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an image on my page and when the user hovers over it
I wanted to make a button which is transparent until the user hovers over
Does anyone know how I can show a tooltip whenever a user hovers over
I have a nav that has subnavs. When the user hovers over the li's
I have a submit button that changes when the user hovers his mouse over
what i'm trying to do: When a user hovers over an image, a little
I'm trying to create an effect where if the user hovers the mouse over
In a section of my site, I display information when the user hovers over
I have six menu options in my webapp, and when the user hovers over
I have 8 thumbnails, when the user hovers over any one of them, a

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.