dinger2121
Programmer
Hello,
I am using the following code to create a menu drop down (see below)
The code works fine. I then tried changing the text to a hyperlink, and the drop down is delayed. That is the only thing that changed - adding a <A> tag around the text to make it a hyperlink.
Does anyone have any idea why that might be happening?
Thanks
function document.onmouseover()
{
var eSrc = window.event.srcElement;
if ("clsMenuBarItem" == eSrc.className)
{
eSrc.style.color = "White";
var eMenu = document.all[eSrc.id.replace("tdMenuBarItem","divMenu")];
if (eOpenMenu && eOpenMenu != eMenu)
{
CloseMenu(eOpenMenu);
}
if (eMenu)
{
OpenMenu(eSrc,eMenu);
}
}
else if (eOpenMenu && !eOpenMenu.contains(eSrc) && !divMenuBar.contains(eSrc))
{
CloseMenu(eOpenMenu);
}
}
I am using the following code to create a menu drop down (see below)
The code works fine. I then tried changing the text to a hyperlink, and the drop down is delayed. That is the only thing that changed - adding a <A> tag around the text to make it a hyperlink.
Does anyone have any idea why that might be happening?
Thanks
function document.onmouseover()
{
var eSrc = window.event.srcElement;
if ("clsMenuBarItem" == eSrc.className)
{
eSrc.style.color = "White";
var eMenu = document.all[eSrc.id.replace("tdMenuBarItem","divMenu")];
if (eOpenMenu && eOpenMenu != eMenu)
{
CloseMenu(eOpenMenu);
}
if (eMenu)
{
OpenMenu(eSrc,eMenu);
}
}
else if (eOpenMenu && !eOpenMenu.contains(eSrc) && !divMenuBar.contains(eSrc))
{
CloseMenu(eOpenMenu);
}
}