media12
Feb 28th 2009, 7:28 am
When I run this script on my localhost, it works great with both IE7 and Firefox3. But when I've uploaded it to my site, it only works with IE, and not Firefox.
The script should just hide the DIV after 2 seconds.
<html>
<head>
<SCRIPT language="JavaScript">
<!--
function Hidenn() {
setTimeout("HideMenus()",2000);
}
function HideMenus() {
menuss1.style.visibility = 'hidden';
}
//-->
</SCRIPT>
</head>
<body>
<a href="#" onclick="Hidenn();">Link 1 </a>
<div id="menuss1">hddhdhdhd</div>
</body>
</html>
Any suggestions on how I could fix this?
The script should just hide the DIV after 2 seconds.
<html>
<head>
<SCRIPT language="JavaScript">
<!--
function Hidenn() {
setTimeout("HideMenus()",2000);
}
function HideMenus() {
menuss1.style.visibility = 'hidden';
}
//-->
</SCRIPT>
</head>
<body>
<a href="#" onclick="Hidenn();">Link 1 </a>
<div id="menuss1">hddhdhdhd</div>
</body>
</html>
Any suggestions on how I could fix this?