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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:44:39+00:00 2026-05-23T13:44:39+00:00

In master page Script: $(.RightMenu).click(function(){ $(.FlashMenu).css(‘background-image’,’url(icon/PersonalPage/blueFlash30.png)’); $(‘.RightMenu’).css(‘background-image’,’url(icon/PersonalPage/Menu.png)’); $(this).css(‘background-image’,’url(icon/PersonalPage/MenuActive.png)’); $(this).css(‘background-repeat’,’repeat-x’); $(this).find(>:first-child).css(‘background-image’,’url(icon/PersonalPage/greenflash30.png)’); $(this).find(>:first-child).css(‘background-repeat’,’no-repeat’); }); $(.RightMenu).mouseover(function(){ $(‘.RightMenu’).css(‘background-image’,’url(icon/PersonalPage/Menu.png)’);

  • 0

In master page

Script:

         $(".RightMenu").click(function(){ 

                $(".FlashMenu").css('background-image','url(icon/PersonalPage/blueFlash30.png)');   
                $('.RightMenu').css('background-image','url(icon/PersonalPage/Menu.png)');                

                $(this).css('background-image','url(icon/PersonalPage/MenuActive.png)');
                $(this).css('background-repeat','repeat-x');

                $(this).find(">:first-child").css('background-image','url(icon/PersonalPage/greenflash30.png)');
                $(this).find(">:first-child").css('background-repeat','no-repeat');  



         });
         $(".RightMenu").mouseover(function(){ 

                $('.RightMenu').css('background-image','url(icon/PersonalPage/Menu.png)');                

                $(this).css('background-image','url(icon/PersonalPage/MenuOver.png)');
                $(this).css('width','150px');
                $(this).css('height','20px');
                $(this).css('background-repeat','repeat-x');                        

         });

Style:

    div.RightMenu
    {
        background-repeat: no-repeat;
        text-align: right;
        cursor: pointer;
        height: 20px;
        float: right;
        width: 150px;
        background-image: url(icon/PersonalPage/Menu.png);
        border: 1px solid #ede7da;
    }
    div.FlashMenu
    {
        background-image: url(icon/PersonalPage/blueFlash30.png);
        background-repeat: no-repeat;
        float: left;
        width: 30px;
        height: 20px;
    }

HTML:

<table>
   <tr>
     <td  valign="top" colspan="1" width="185px">
                <div id="ContentRightMenu" >
                    <div class="RightMenu">
                        Home
                        <div class="FlashMenu">
                        </div>
                    </div>
                    <div class="RightMenu">
                        About
                        <div class="FlashMenu">
                        </div>
                    </div>
                    <div class="RightMenu">
                        Product
                        <div class="FlashMenu">
                        </div>
                    </div>

         </tr>
 </table>

======================================================
1.

When the mouse moves over Div.RightMenu change its image (Menu.png==>MenuOver.png).

But when the mouse out from div.ContentRightMenu.one of the Div.RightMenucolors of the same color as the mouse over(MenuOver.png) stays in and not to be the first case(Menu.png)

2.

When me click on a Div.RightMenu gets its color from the default(Menu.png) will change with the new state(MenuActive.png) But when the mouse move is doing the color returns to its initial state(MenuActive.png==>Menu.png)

  • 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-23T13:44:39+00:00Added an answer on May 23, 2026 at 1:44 pm

    I think you will have to make use of the bind/unbind jQuery functions. Additionally you will have to make use of the mouseout event that developerdoug mentioned.

    function rightMenuClick()
    {
        $(".FlashMenu").css('background-image','url(icon/PersonalPage/blueFlash30.png)');   
        $(".RightMenu").css('background-image','url(icon/PersonalPage/Menu.png)');   
        $(".RightMenu").bind('mouseover', rightMenuMouseOver);
        $(".RightMenu").bind('mouseout', rightMenuMouseOut);                
        $(this).css('background-image','url(icon/PersonalPage/MenuActive.png)');
        $(this).css('background-repeat','repeat-x');
        $(this).find(">:first-child").css('background-image','url(icon/PersonalPage/greenflash30.png)');
        $(this).find(">:first-child").css('background-repeat','no-repeat');     
        $(this).unbind('mouseout');
        $(this).unbind('mouseover');
    }           
    function rightMenuMouseOut()
    {               
        $(this).css('background-image','url(icon/PersonalPage/Menu.png)');                              
    }           
    function rightMenuMouseOver()
    {           
        $(this).css('background-image','url(icon/PersonalPage/MenuOver.png)');              
    }                   
    $(".RightMenu").bind('click', rightMenuClick);       
    $(".RightMenu").bind('mouseover', rightMenuMouseOver);
    $(".RightMenu").bind('mouseout', rightMenuMouseOut);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am running this script within a content page on my ASP.net site. <script>
I have a master page to apply to all my pages, the master page
I have a master page with the following lines inside my <head> tags. <link
I have a web content form whose master page is a nested master page.
hii all this is my master page <%@ Master Language=C# AutoEventWireup=true CodeFile=OfficeApps.master.cs Inherits=master1 %>
I have this code in my master page in the head section: <head runat=server>
I have Update panel in Master page: <asp:ScriptManager id=CartScript runat=server></asp:ScriptManager> <asp:UpdatePanel id=CartBox runat=server updateMode=Conditional>
I've set a specific width to the body div in my Master Page and
I have an ASP.NET 4 web app. I am using a Master Page Site.Master.
one juvenile question , i am having a asp.net intranet application which is using

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.