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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:07:28+00:00 2026-06-07T05:07:28+00:00

my jquery code: $(document).ready(function() { $(#adminbar).mouseover(function () { $(this).addClass(adm_bar).slideDown(slow); }); $(#adminbar).mouseout(function () { $(this).removeClass(adm_bar).slideUp(slow);

  • 0

my jquery code:

$(document).ready(function() {  
    $("#adminbar").mouseover(function () {  
        $(this).addClass("adm_bar").slideDown("slow");  
    });
    $("#adminbar").mouseout(function () {  
        $(this).removeClass("adm_bar").slideUp("slow");  
    });  
});  

But when you hover the div with #adminbar, it only adds/removes the class once, if you try to do it again, it wont work. I want you to be able to hover it as many times as you want.
Whats wrong?

Edit: its on the top of the page, My website(under construction)

  • 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-07T05:07:31+00:00Added an answer on June 7, 2026 at 5:07 am

    Looks like when you use the slideUp, jQuery automatically sets the display to none, so you can’t hover an element that doesn’t “exist” – it is still there but not “hoverable”.

    After the slideUp try adding a display : “block” property and visibility: “hidden”.

    You should be able to hover the element that way.

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

Sidebar

Related Questions

i have this jquery code $(document).ready(function(){ $(.C_bmiShowTableWord).click(function () { $(.C_bmiShowTable).slideDown(); }); }); if i
I have this jQuery code: $(document).ready(function() { $.ajax({ url: pages/+page+.php, cache: false }).done(function( html
I have pretty simple jquery code : $(document).ready(function(){ $('img.marqFl').on({ mouseenter: function() { $(this).animate({height: 300},
On document ready I run this code: jQuery(document).ready(function(){ jQuery('#button').click(function() { jQuery('#contact_form').load(/Users/mge/Downloads/jquery-ajax-1/readme.txt); return false; });
I have my jQuery code like this $(document).ready(function () { var lastsel; $('#jqgProducts').jqGrid({ //url
I have the JQuery code: $(document).ready(function() { $('.LikeArea').click(function() { var num = parseInt(this.html()); num++;
This is my jquery code jQuery(document).ready (function() { // post $('.post').bind('mouseenter mouseleave', function() {
In this jquery code: $(document).ready(function(){ $list = $(.channeList li); $list.click(function(){ var $this = $(this);
This is my jquery code: $(document).ready(function(){ $(#reg).validate({ debug: false, rules: { username: { required:
I have this jquery code : $(document).ready(function() { $('div.badge_button > .more').click(function() { var id

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.