Title: Javascript listen to mouse event failed
Last modified: August 21, 2016

---

# Javascript listen to mouse event failed

 *  [wing2go](https://wordpress.org/support/users/wing2go/)
 * (@wing2go)
 * [12 years ago](https://wordpress.org/support/topic/javascript-listen-to-mouse-event-failed/)
 * I tried to show and hide the navigation-menu by detecting the mouse events, but
   failed.
 * i.e.
    In my javascript, I have
 * jQuery(“#elevatorButton”).click(function () {
 *  jQuery(“#navigation-menu”).show(“slide”, { direction: “left” }, 1000);
    return
   false;
 *  });
 *  jQuery(“#navigation-menu”).mouseleave(function () {
 *  jQuery(“#navigation-menu”).hide(“slide”, { direction: “left” }, 1000);
 *  return false;
    });
 * [https://wordpress.org/plugins/page-scroll-to-id/](https://wordpress.org/plugins/page-scroll-to-id/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [12 years ago](https://wordpress.org/support/topic/javascript-listen-to-mouse-event-failed/#post-4952149)
 * Can’t really say what’s happening or what the issue is, but is the `#elevatorButton`
   a link handled by the Page scroll to id?
    Can’t really help unless I see the 
   page in action (don’t even know if this issue is related to the plugin at all).

Viewing 1 replies (of 1 total)

The topic ‘Javascript listen to mouse event failed’ is closed to new replies.

 * ![](https://ps.w.org/page-scroll-to-id/assets/icon-256x256.png?rev=1401043)
 * [Page scroll to id](https://wordpress.org/plugins/page-scroll-to-id/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/page-scroll-to-id/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/page-scroll-to-id/)
 * [Active Topics](https://wordpress.org/support/plugin/page-scroll-to-id/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/page-scroll-to-id/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/page-scroll-to-id/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [malihu](https://wordpress.org/support/users/malihu/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/javascript-listen-to-mouse-event-failed/#post-4952149)
 * Status: not resolved