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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:02:22+00:00 2026-06-14T11:02:22+00:00

I have one div where i am showing my game name(div2) When a user

  • 0

I have one div where i am showing my game name(div2)
When a user moves her mouse on this(div2) then two divs(div1 & div3) should open on at the same

what divs(div1 & div3) will contains:

  • div1 should show small image of my game, whereas
  • div3 should show small description about my game.

Position of divs:

  • div2 should be visible in second row.(In the middle of the two divs div1 & div3)

  • div1 should be visible on the top.(game image)

  • div3 should be visible on the bottom.

And also when user mouse out their cursor from div1 & div3 then Both these divs should hide and remain open the div2.

I tried to solve my problem with my below code But it did’t help me at all.
Please check my code below and suggest me a good solution for my problem.

My code:

       <html>
            <head>
                <title>This example will showw game description on over the game link (above div will show game image and below will show game details info)</title>
        <link href="http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
        <script src="http://code.jquery.com/jquery-1.8.2.js"></script>
        <script src="http://code.jquery.com/ui/1.9.1/jquery-ui.js"></script>  
        <script>

        $(document).ready(function(){
          $("#d1").hover(function()
          {
            $("#d1").hide();
             $("#d2").show();
              $("#d3").show();
          });

           $("#maindiv").mouseout(function()
          {
            $("#d1").show();
             $("#d2").hide();
              $("#d3").hide();
          });
        });

        </script>
        </head>

        <body>
            <div id="maindiv">
            <div id="d1">Tic Tac Toe(This should hide on mouse over this div)</div>
            <div id="d2" style="display: none;"> <img src="http://www.infosys.com/SiteCollectionImages/cloud-ecosystem-hub-mm.jpg" title=" Image of Tic tac toe small image" /></div>
        </div> 
             <div id="d3" style="display: none;">
                 <table width="80px" height="26px" border="1">
                     <tr>
                          <td width="200px"> Information/description about tic tac toe in small para. blah blah blah  </td>
                     </tr>
                 </table>

             </div>

        </body>
        </html>
  • 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-14T11:02:23+00:00Added an answer on June 14, 2026 at 11:02 am

    try this: http://jsbin.com/uyoxip/1/edit

      <div id="maindiv" style='margin:0 auto; width:100%;'>
           <div id="d2" style="display: none; float:left; width:500px;"> 
                <img src="http://www.infosys.com/SiteCollectionImages/cloud-ecosystem-hub-mm.jpg" title=" Image of Tic tac toe small image" />
           </div>
           <div id="d1" style='float:left; width:500px;'>
                Tic Tac Toe(This should hide on mouse over this div)
           </div>
           <div id="d3" style="display: none; float:left; width:500px;">
                 <table width="80px" height="26px" border="1">
                     <tr>
                        <td width="200px"> 
                           Information/description about tic tac toe in small para. blah blah blah  
                        </td>
                     </tr>
                 </table>
              </div>
           </div>
    

    script:

     $(document).ready(function(){
          $("#maindiv").hover(function(){
    
             $("#d2").stop().slideDown();
             $("#d3").stop().slideDown();
             $("#d1").stop().slideUp();
    
          },function(){
    
            $("#d1").stop().slideDown();
            $("#d2").stop().slideUp();
            $("#d3").stop().slideUp();
          });
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two divs one inside another, i would like to overlap one div
I have a function in Javascript that moves one div depending on the mouse
Possible Duplicate: click link below a higher z-index div I have two divs, one
I have one parent DIV inside parent DIV i have two DIV one in
How to wrap one div around another? I have following two div ids: #course
I have a that contains two nested div's. One of the nested div's contains
I have one parent div tag containing two child div tags and i want
I have one text box which get multiple email id from user. And showing
I am working on a project in which I have two DIVs (DIV1, DIV2),
I have this code: <div class=window-compl> <div class=window showincatalog showing> <h2>Text1</h2> </div> <div class=window>

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.