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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:38:27+00:00 2026-05-19T02:38:27+00:00

good night: I want to mouse over .slide show the #panel , then click

  • 0

good night: I want to mouse over .slide show the #panel, then click the .close display the #panel, who can correct my code? thanks.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="jquery-1.4.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
    $(".slide").mouseover(function(){
        $("#panel").slideToggle("slow");
    });
    $(".close").click(function(){
        $("#panel").slideToggle("slow");
    });      
});
</script>
<style type="text/css">
body {
    margin: 0 auto;
    padding: 0;
    width: 1024px;
    height:100%;
}
#wrap {position:absolute;bottom:0px;}
#panel {
    background: #f60;
    width:600px;
    height: 200px;
    display: none;  
}
.slide {
    width:600px;
    height: 20px;
    background-color:#F06;
}
.close{float:right;height:20px;width:20px;background-color:#000;}
</style>
</head>
<body>
<div id="wrap">
<div class="slide">&nbsp;<div class="close">&nbsp;</div></div>
<div id="panel">
    <!-- some content -->
</div>
</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-05-19T02:38:28+00:00Added an answer on May 19, 2026 at 2:38 am

    I don’t think you should use slideToggle in this case since it doesn’t seem like .slide and .close are ever hidden

    $(".slide").mouseover(function(){
        $("#panel").slideDown("slow");
    });
    $(".close").click(function(){
        $("#panel").slideUp("slow");
    });
    

    Also, this will NEVER work until you move the .close div into the #panel since .close is a child of .slide and will trigger the .slide moveover event when you try to click .close

    <div id="wrap">
        <div class="slide">&nbsp;</div>
        <div id="panel">
            <div class="close">&nbsp;</div>
            <!-- some content -->
        </div>
    </div>
    

    An example: http://jsfiddle.net/MAYag/

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

Sidebar

Related Questions

Good night, in my application I access my database through Hibernate. I want to
Good Day, Can someone confirm what was said at the bottom of this post
Good morning, I've been up all night trying to figure this out on my
Well, Maven is too good, when talking about speed. But I want something that
Good night fellas, I'm trying to setup a app with django on Heroku using
Good night, I am currently working on a very simple lexical analiser for human
Good night, I'm not an expert in MySQL, I have 3 tables, but I
Good night in my timezone. I am building an http bot, and when i
good night i have a doubt what reason this output doesn't work [{var1:abc},{var2:abcd},{var3:abcde}] but
Good night all, this is my first question. i got some problem when running

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.