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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T23:39:24+00:00 2026-06-04T23:39:24+00:00

is there is any jquery function that makes trigger a function when the mouse

  • 0

is there is any jquery function that makes trigger a function when the mouse enter the first quarter of the screen ?

what i am actually doing is show and hide a div when the mouse move over another div both are at the same position (overlap ) , it show and hide my content but the button are disabled because the show_hide div is over the menu div , i set the z-index of the show hide div to -1 and every time the mouse move over the menu div keeps blinking

<div id="menu" style ="width : 100% ; height:50px ;text-align : center ;  background: rgba(51, 102, 255, 0.2); position : absolute  ; top:0 ; display : none" >
            <div id="pre" style ="height:100% ; width: 50px ;  float :left ; left:0  "><a href="facebook.com"><img src="External_Files/images/left.png" style="margin-top:25%" /></a></div>
            <div id="menuContent" style="width:90% ; height:50px ;  position:absolute; margin-left :60px ; border : 2px solid red; overflow-x: scroll; " ><a href="facebook.com">mina</a> </div>
            <div id="next" style ="height:100% ; width: 50px ;  float :right ; right:0 ; text-align : center  "><a href="#"><img src="External_Files/images/right.png" /></a></div>
            </div>
            <div id="show_hide" style ="width : 100% ; height:70px ; position : absolute ; top:0" ></div>

and this is the jquery code :

 $(document).ready(function(){
    $("#show_hide").hover(
        function(){
            $("#menu").show() ;

        },
        function(){
            $("#menu").hide() ; 

        }
    );
  • 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-04T23:39:26+00:00Added an answer on June 4, 2026 at 11:39 pm

    The hover() event is really just using mouseenter() and mouseleave(). This should work:

     $(document).ready(function(){
        $("#show_hide").mouseenter(
            function(){
                $("#menu").show();
            }
        );
        $("#menu").mouseleave(
            function(){
                $(this).hide();
            }
        );
    });
    

    If you want to keep the html structured the way it is, then you will want to hide your #menu div when you leave it.

    An alternative way to make it work is to contain the #menu div within the #show_hide div. If you do that instead, then your original jquery will work.

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

Sidebar

Related Questions

Is there any way in JQUERY to trigger a function when a checkbox has
Hi I was wondering if there is any jquery function around which can take
Is there any way I can get jQuery to perform a function when you
Is there a universal function for jquery to detect any changes on the site
Is there any jQuery plugin that applies paging, allows users to select the page
is there any jquery or any script, that when u click on one link,
I was wondering if there was any jQuery library that will allow us to
There is a bug in jQuery 1.4.2 that makes change event on select-element getting
Is there any jquery plugin for implementing iGoogle style dashboard? So basically drag n
Is there any jQuery plugin for progressive light glow effect like this ?

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.