menu virker ikke NS6
Min menu virker ikke NS6, hvad er der galt.Jeg sender hele koden:
---------------------------------------------
<HTML><HEAD>
<STYLE>
.menu {BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #000000 0px solid; BORDER-LEFT: #000000 0px solid; BORDER-RIGHT: #000000 0px solid; BORDER-TOP: #000000 0px solid; COLOR: #000000; FONT-FAMILY: geneva,arial; FONT-SIZE: 10px; FONT-WEIGHT: normal; PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px; POSITION: absolute; VISIBILITY: hidden; WIDTH: 127px; layer-background-color: #ffffff}
</STYLE>
</HEAD>
<BODY onload=init();>
<DIV class=menu id=testmenu></DIV>
<SCRIPT language=javascript> var _version = \'Pre 1.2\'; </SCRIPT>
<SCRIPT language=javascript1.2> var _version = \'1.2\'; </SCRIPT>
<SCRIPT language=javascript>
<!--
//do browser detect stuff
if (_version != \'1.2\') {window.onerror = new Function(\"return true;\");}
var isNS = (navigator.appName == \"Netscape\");
var isMacIE = ( (navigator.userAgent.indexOf(\"IE 4\") > -1) && (navigator.userAgent.indexOf(\"Mac\")>-1));
var layerRef = (isNS) ? \"document\" : \"document.all\";
var styleRef = (isNS) ? \"\" : \".style\";
var isDynamic = ( ((document.layers && document.layers[\'testmenu\']) || (document.all && document.all[\'testmenu\'])) && !isMacIE );
var activeMenu = 0;
function activateMenu(menuLayerRef, fraV, fraT) {
if (isDynamic && activeMenu != menuLayerRef) {
if (activeMenu) hideMenu(\"menu\"+activeMenu);
menuID = \"menu\" + menuLayerRef;
activeMenu = menuLayerRef;
if (isNS) {
document[menuID].top=fraT;
document[menuID].left=fraV;
} else {
document.all[menuID].style.pixelTop=fraT;
document.all[menuID].style.pixelLeft=fraV;}
showMenu(menuID)}}
function under(id, fraV, fraT) {
underid = \"under\" + id;
if (isNS) {
document[underid].top=fraT;
document[underid].left=fraV;
} else {
document.all[underid].style.pixelTop=fraT;
document.all[underid].style.pixelLeft=fraV;}
eval(underid + styleRef + \'.visibility = \"visible\"\');}
function showMenu(layerID){eval(layerRef + \'[\"\' + layerID + \'\"]\' + styleRef + \'.visibility = \"visible\"\');}
function hideMenu(layerID){eval(layerRef + \'[\"\' + layerID + \'\"]\' + styleRef + \'.visibility = \"hidden\"\');}
// check if there\'s a menu active
function turnOff() {if (activeMenu) {menuID = \"menu\" + activeMenu;hideMenu(menuID);activeMenu=0;}}
// kills menu on clickup
function init(){if (isDynamic) {if (isNS) {document.captureEvents(Event.MOUSEUP);}document.onmouseup = turnOff;}}
// this function needs to be called from the sub menus DIV
function hideMe() {if (activeMenu) {
menuID = \"menu\" + activeMenu;
hideMenu(menuID);
activeMenu = 0;}}
// Work-around Netscape resize bug
if (isDynamic && isNS) {
origWidth = innerWidth;
origHeight = innerHeight;}
function reDo() {if (innerWidth != origWidth || innerHeight != origHeight){location.reload();}}
if (isDynamic && isNS) {onresize = reDo;}
//-->
</SCRIPT>
<DIV class=menu id=menu1>
<table width=127 border=0 cellspacing=0 cellpadding=0>
<TBODY>
<tr bgcolor=#990000><td> <A class=m1 href=\'4\'>link1</a></td></tr>
<tr bgcolor=#990000><td> <A class=m1 href=\'4\'>link2</a></td></tr>
<tr bgcolor=#990000><td> <A class=m1 href=\'9\'>link3</a></td></tr>
</TBODY></table><br><br>
</DIV>
<A href=\"\" onmouseover=\"activateMenu(1,32,130);\">menu</a>
</BODY></HTML>
---------------------------------------------
Daddo
