Hameedullah
Programmer
I have build a very primitive dropdown menu that is displayed onMouseOver and goes hidden onMouseOut.
It works fine, except the fact that IE gives an active x warning once the page is loaded. There are other websites that have similar kind-a stuff but doesn't get blocked. Can anyone tell me what should I do to get passed the IE warning. Here is the javascript code
... and
Any help would be appreciated...
You are either the slave of what made men or what men made.
It works fine, except the fact that IE gives an active x warning once the page is loaded. There are other websites that have similar kind-a stuff but doesn't get blocked. Can anyone tell me what should I do to get passed the IE warning. Here is the javascript code
Code:
function displayMenu() {
elem = document.getElementById("inv_menu1");
if (document.all) {
elem.style.top = 165;
} else {
elem.style.top = 170;
}
elem.style.visibility = "visible";
}
function hideMenu() {
elem = document.getElementById("inv_menu1");
elem.style.visibility = "hidden";
}
... and
Code:
<a href="#" onMouseOver="displayMenu();" onMouseOut="hideMenu();"><img src="images/unn_17.jpg" width="94" height="39" alt="" border="0"></a>
<div id="inv_menu1" onMouseOver="displayMenu();" onMouseOut="hideMenu();";">
<div id="inv_menu"><a href="1">Item 1</a> <a href="2">Item 2</a> <a href="3">Item 3</a>
<a href="4">Item 4</a> <a href="5">Item 5</a></div>
</div>
Any help would be appreciated...
You are either the slave of what made men or what men made.