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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:46:20+00:00 2026-06-11T22:46:20+00:00

I have a page set up so that there are several company logos set

  • 0

I have a page set up so that there are several company logos set out in a 3×2 block on the page (mid-box-left).

When the user clicks on a logo, the contents of another div (mid-box-right) next to the logo block changes, loading 4 thumbnail icons representing 4 distinct sets of data.

What I want to do now is this:

When the user hovers over one of the 4 thumbnail images, it replaces the logo block with the contents of a hidden div (mid-box-right1) containing the information relevant to the thumbnail image selected. And when they move the mouse off the thumbnail, the logo block reappears.

Right now, clicking on the logo loads the content of the first div perfectly fine, but hovering over the image in the second div does not result in the logo block being replaced with the content from the mid-box-right1 hidden div.

I have it set up in the following way:

<div id="HiddenContainerOne" style="display:none;">
    <div id="mid-box-left1"><a href="#" class="testbox1"><-- content here --></a></div>
</div>

<div id="HiddenContainerTwo" style="display:none">
    <div id="mid-box-right1"><-- content here --></a></div>
</div>

<div id="mid-box-right">
    <a href="#" class="logo-change"><-- logo here --></a>
</div>

<div id="mid-box-left">
    <-- content here -->    
</div>

And the JQuery is as follows:

$(document).ready(function() {

$(".logo-change").click(function() {
    $("#mid-box-left").fadeOut(500, function() {
        $("#mid-box-left").html($("#mid-box-left1").html())
        .hide()
        .fadeIn(500, function () {
            $('#mid-box-left');
        });
    });
    return false;
});

$(".testbox1").mouseover(function() {
        $("#mid-box-right").html($("#mid-box-right1").html())
        .hide()
        .fadeIn(500, function () {
            $('#mid-box-right');
        });
    return false;
});
});
  • 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-11T22:46:21+00:00Added an answer on June 11, 2026 at 10:46 pm

    The problem is that you are copying the html of the hiddencontainerone

    $('foo').html($('link').html());
    

    This does not copy events. So the mouseover event doesn’t exist on the copied link. You should use clone or rebind your event handler after copy instead.

    Alternately you could make use of on and monitor a higher level node for the mouseover event.

    http://jsfiddle.net/jByc7/

    $('body').on('mouseover', '.testbox1', function() {
            console.log('mouseover');
            $("#mid-box-right").html($("#mid-box-right1").html())
            .hide()
            .fadeIn(500, function () {
                $('#mid-box-right');
            });
        return false;
    });​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So, I have set up a login page that verifies the user's credentials, and
I recently discovered that when you have a page set to session readonly and
I have a page a query that will set a table to 0 or
I have a page setup with a scroll bar that is set with a
I have a page that takes a few minutes to run. When I set
I have an application where every single page uses a set of data that
I have a PHP page that returns a piece of HTML to set the
I have set the Masonry demo on this page . I see that the
I have a .jsp page that the user loads directly. The request it with
I have a page with several sets of radio buttons that are used to

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.