JavaScript - Problem with mousemove and mouseout

Asked By Sagar P
23-Jun-08 06:42 AM

Hello All,

I am currently working on Menus in asp.net 2.0.

I have make it by using DIV tag. I am just displaying a DIV tag on mouse move of main menu. And on mouseout i am just hiding that DIV tag. Its working fine.

But the problem comes when user moves into DIV that DIV hides as mouseout of mainmenu gets fired. For that i called same function on mousemove of DIV tag also. But mousemove of DIV tag gets fired first ans then mousout of main menu resulting hiding of DIV tag.

So how to solve this problem.

 Thanks in advance.

Sujit.

Reply  Reply

21-Sep-09 08:01 AM

Hi,

1)As you are using Asp.net 2.0 you can use standard menu control provided by .net framework:

The ASP.NET Menu control allows you to develop both statically and dynamically displayed menus for your ASP.NET Web pages. You can configure the contents of the Menu control directly in the control, or you can specify the contents by binding the control to a data source.

Without writing any code, you can control the appearance, orientation, and content of an ASP.NET Menu control. In addition to the visual properties exposed by the control, the control supports ASP.NET control skins and themes.

<asp:Menu
        id="Menu1"
        Runat="server">
        <Items>
            <asp:MenuItem Text="Home" NavigateUrl="Home.aspx" />
            <asp:MenuItem Text="Products" NavigateUrl="Products.aspx" />
            <asp:MenuItem Text="Services" NavigateUrl="Services.aspx" />
            <asp:MenuItem Text="About" NavigateUrl="About.aspx" />
        </Items>
    </asp:Menu>

2)we can have adapter for menu also check this link

http://www.asp.net/CSSAdapters/Menu.aspx

bye

Create New Account
help
how to keep scrollbar for repeater in asp.net? how to keep scrollbar for repeater in asp.net? Place repeater control inside a div tag <div style = "width:980px; overflow:scroll; height:500px"> <repeater> < / div> You need to keep the repeater control inside a div tag, which will add the
DIV> tag I have a div tag on my asp.net page. It encompasses a couple of server side controls. But this div tag does not have the runat = server attribute attached to it. i.e it is a
How to make the div tag corner rounded .NET Framework Hi everyone, i want to make the div tag corner rounded for desiging a website in asp.net. to give the page a look how v will do that in asp.net 2.0. thanks Gourav Singhal singhal.gourav@gmail.com ASP.NET Discussions ASP.NET (1
how to call div tag id from createuserwizard Control in code behind ASP.NET Hi All, I am Using Div Tag Inside the createuserwizard Control, how to call div tag id from createuserwizard Control in code behind in asp.net using c#???? For Example, For
ASP.NET 4.0 FAQ Part-1 This FAQ is about the new and enhanced features of ASP.NET 4.0 along with other technical details. It discusses all the New features in ASP.NET 4.0 and some of the features of Visual Studio 2010. It can be kept as a handbook for referring new features of ASP.NET 4.0. It is given in simpler manner without digging more into details and hence