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

  • Home
  • SEARCH
  • 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 596341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:09:42+00:00 2026-05-13T16:09:42+00:00

Any ideas why this doesn’t work, or how to make it work? I want

  • 0

Any ideas why this doesn’t work, or how to make it work? I want to remove the “onmouseover” and “onmouseout” events so they are basically disabled and at the same time change the background color. Then when the user clicks on another element I want to reassign the mouse events back to the element. Right now the onmouse events don’t get disabled at all, the background doesn’t change, etc.

Here’s how I call the function:

Here’s the function:
$(document).ready(function(){

$(".maximize").toggle(

   function(){ 

    $("#property_bg").unbind("onmouseover");
    $("#property_bg").unbind("onmouseout"); 
    $("#property_bg").toggleClass("body_bgcolor");
   }, 

       function() { 

        $("#property_bg").bind("onmouseover", function() {        
                              swap_class("property_bg","body_bgcolor")} );      

   });

});

Thanks for the help.

  • 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-13T16:09:43+00:00Added an answer on May 13, 2026 at 4:09 pm

    I found out the real problem in the following two threads for anyone who comes along with a similar problem I will add them here:

    How do I unbind "hover" in jQuery?

    Why this unbind doesn't work?

    The problem was solved by not hard coding the mouse events in the HTML, but rather binding them in the document.ready 1st. In order to “unbind” and event, the event has to be “binded” by jquery.

    Also, “mouseover” didn’t work for some reason I couldn’t figure out, but when I put “mouseenter” and “mouseleave” as suggested in one of the posts above it worked. I’ve never heard of “mouseenter” or “mouseleave”, but … it works now.

    Good luck!

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

Sidebar

Ask A Question

Stats

  • Questions 350k
  • Answers 350k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Turns out you can't do this. I've gone for Dex… May 14, 2026 at 7:03 am
  • Editorial Team
    Editorial Team added an answer Since you haven't given any idea what error is is,… May 14, 2026 at 7:03 am
  • Editorial Team
    Editorial Team added an answer Try wrapping the spans in an anchor tag and apply… May 14, 2026 at 7:03 am

Related Questions

Any ideas why this doesn't work? <a href=javascript:alert($(this).text())>Alert This Text Here</a> I am expecting
I'm writing a routine to provide user definable keyboard short-cuts for any menu item
I've used two PHP email scripts and routing it through my SMTP server, when
I'm developing a asp.net site (running .net 3.5 SP 1) and using UrlRewriter.Net (
I'm trying to read an xml file into memory, add a node, then write

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.