Syntaksfejl!!!!
Jeg sidder med et script som laver en menubar. Når jeg afvikler koden, popper et vindue op med, at der er en syntaksfejl i linie 51 og linie 61.Hjælp mig til at finde fejlen.
Koden kommer nedenfor.
--------------Kode---------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Menu</title>
<style type='text/css'>
A.menu:link {color: #666666; text-decoration: none; font-size: 11pt;}
A.menu:visited {color: #000000; text-decoration: none; font-size: 11pt;}
A.menu:active {color: #666666; text-decoration: none; font-size: 11pt;}
A.menu:hover {color: #333333; text-decoration: none; font-size: 11pt;}
A.submenu:link {color: #666666; text-decoration: none;font-size: 11pt;}
A.submenu:visited {color: #000000; text-decoration: none;font-size: 11pt;}
A.submenu:active {color: #666666; text-decoration: none;font-size: 11pt;}
A.submenu:hover {color: #333333; text-decoration: none;font-size: 11pt;}
.menustruc {position: absolute; top: 4px; visibility: visible;}
.hvordan {position: absolute; top: 20px; visibility: hidden;}
</style>
<script type="text/javascript">function show(object) {
if (document.getElementById && document.getElementById(object) != null) {
document.getElementById(object).style.visibility='visible';
document.getElementById(object).style.display='block';
}
else if (document.layers && document.layers[object] != null)
document.layers[object].visibility = 'visible';
else if (document.all) {
document.all[object].style.zIndex = 100;
document.all[object].style.visibility = 'visible';
}
}
function hide(object) {
if (document.getElementById && document.getElementById(object) != null) {
document.getElementById(object).style.visibility='hidden';
document.getElementById(object).style.display='none';
}
else if (document.layers && document.layers[object] != null)
document.layers[object].visibility = 'hidden';
else if (document.all)
document.all[object].style.visibility = 'hidden';
}
if (document.getElementById) { document.write('<style>.hvordan {position:absolute;visibility:hidden;display:none}</style>'); }
</script>
<base target="Tekst">
</head>
<body leftmargin="0" rightmargin="0" topmargin="0" marginwidth="0" marginheight="0" link="#FFFFFF" vlink="#ffffff" alink="#0D6D93" bgcolor="#ffffff" bgproperties="fixed">
<div id="L4" class="menu">
<table width="700" nowrap cellspacing="0" cellpadding="0" border="0">
<tr>
-----------linie 51 start----------
<td align="center"><font face="Arial"><a class="menu" href="starttekst.html" onFocus="blur(" target="Tekst" onmouseover="hide('L2');return">Forside</a><img src="image/trans.gif" width="20" height="1" border="0"><a class="menu" href="hvad.html" onFocus="blur(" target="Tekst" onmouseover="hide('L2');return">Hvad</a><img src="image/trans.gif" width="20" height="1" border="0"><a class="menu" href="hvorfor.html" onFocus="blur(" target="Tekst" onmouseover="hide('L2');return">Hvorfor</a><img src="image/trans.gif" width="20" height="1" border="0"><a class="menu" href="hvordan.html" onFocus="blur(" target="Tekst" onmouseover="show('L2');return">Hvordan</a><img src="image/trans.gif" width="20" height="1" border="0"><a class="menu" href="links.html" onFocus="blur(" target="Tekst" onmouseover="hide('L2');return">Links</a>
---------------linie 51 slut----------------
</font>
</td>
</tr>
</table>
</div>
<div id="L2" class="hvordan">
<table width="700" cellspacing="0" cellpadding="0" border="0">
<tr>
<td height="20">
----------------linie 61 start---------------
<div align="left"><font face="Arial"><a class="submenu" href="virk-org.html" onFocus="blur(" target="Tekst">Virksomheder/organisationer</a><img src="image/trans.gif" width="20" height="1" border="0"><a class="submenu" href="konsulentvirksomheder.html" onFocus="blur(" target="Tekst">Konsulentvirksomheder</a><img src="image/trans.gif" width="20" height="1" border="0"><a class="submenu" href="uddannelsesinstitutioner.html" onFocus="blur(" target="Tekst">Uddannelsesinstitutioner</a><img src="image/trans.gif" width="20" height="1" border="0"><a class="submenu" href="apida-forskning.html" onFocus="blur(" target="Tekst">APIDA forskning</a></font>
-----------------linie 61 slut--------------
</div>
</td>
</tr>
</table>
</div>
</body>
</html>
--------------kode slut-------------
/Rullemarie
