Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trouble with IE blocking ActiveX

Status
Not open for further replies.

Hameedullah

Programmer
Aug 12, 2002
29
0
0
AU
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

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.
 
You can change your local security settings to stop this. Once the code is uploaded to a web server, however (I am assuming you are getting the error with a local file), the warning will probably go - unless you have modified your security settings from the default.

Hope this helps,
Dan



[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
That makes sense....

Thanks!

You are either the slave of what made men or what men made.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top