opstod fejl på siden!!!
Hvorfor får jeg en "der opstod fejl på siden" når dette javascript køres?<html>
<head>
<title></title>
<style>
#sec1 {position: absolute; top: 575px; left:215px; visibility:hidden; z-index: 100;}
#sec2 {position: absolute; top: 575px; left:225px; visibility:hidden; z-index: 200;}
#sec3 {position: absolute; top: 575px; left:235px; visibility:hidden; z-index: 300;}
#sec4 {position: absolute; top: 575px; left:245px; visibility:hidden; z-index: 400;}
xmp {color:blue; background-color:PowderBlue;}
</style><script>
//the next 3 lines are browser detection for user-agent DOMS
ns4 = (document.layers) ? true:false //required for Functions to work
ie4 = (document.all) ? true:false //required for Functions to work
ng5 = (document.getElementById) ? true:false //required for Functions to work
function hideSec() {
if (ng5) document.getElementById('sec1').style.visibility = "hidden"
else if (ns4) document.sec1.visibility = "hide"
else if (ie4) sec1.style.visibility ="hidden"
if (ng5) document.getElementById('sec2').style.visibility = "hidden"
else if (ns4) document.sec2.visibility = "hide"
else if (ie4) sec2.style.visibility ="hidden"
if (ng5) document.getElementById('sec3').style.visibility = "hidden"
else if (ns4) document.sec3.visibility = "hide"
else if (ie4) sec3.style.visibility ="hidden"
if (ng5) document.getElementById('sec4').style.visibility = "hidden"
else if (ns4) document.sec4.visibility = "hide"
else if (ie4) sec4.style.visibility ="hidden"
}
function showSec(n) {
hideSec();
if (ng5) document.getElementById('sec' + n).style.visibility = "visible";
else if (ns4) document.layers["sec" + n].visibility = "show";
else if (ie4) document.all["sec" + n].style.visibility = "visible";
}
function showAllSec(n) {
if (ng5) document.getElementById('sec' + n).style.visibility = "visible";
else if (ns4) document.layers["sec" + n].visibility = "show";
else if (ie4) document.all["sec" + n].style.visibility = "visible";
}
</script>
<div id="sec1">
<img src="tabbar/enkeltfaneblade_gifs/tab_velkommen.gif">
</div>
<div id="sec2">
<img src="tabbar/enkeltfaneblade_gifs/tab_klinik.gif">
</div>
<div id="sec3">
<img src="tabbar/enkeltfaneblade_gifs/tab_bestil.gif">
</div>
<div id="sec4">
<img src="tabbar/enkeltfaneblade_gifs/tab_kontakt.gif">
</div>
</head>
<body>
<div align="left">
<div align="left">
<img src="tabbar/Tabbar.gif" width="800" height="33" border="0" usemap="#Map">
</div></div>
<map name="Map">
<area shape="rect" coords="1,4,72,30" href="java script://" onClick="showSec(1);parent.menubar.location.href = '../../pages/01_velkommen/01_00_frontpage/01_00_menubasic.html';parent.Hovedvindue.location.href = '../../pages/01_velkommen/01_00_frontpage/01_00_intro.html';return true;">
<area shape="rect" coords="77,4,148,30" href="java script://" onClick="showSec(2);parent.menubar.location.href = '../../pages/03_tandteam/03_00_frontpage/03_00_menubasic.html';parent.Hovedvindue.location.href = '../../pages/03_tandteam/03_00_frontpage/03_00_intro.html';return true;">
<area shape="rect" coords="152,4,222,30" href="java script://" onClick="showSec(3);parent.menubar.location.href = '../../pages/02_bestil/02_00_frontpage/02_00_menubasic.html';parent.Hovedvindue.location.href = '../../pages/02_bestil/02_00_frontpage/02_00_intro.html';return true;">
<area shape="rect" coords="227,4,297,30" href="java script://" onClick="showSec(4);parent.menubar.location.href = '../../pages/04_kontakt/04_00_frontpage/04_00_menubasic.html';parent.Hovedvindue.location.href = '../../pages/04_kontakt/04_00_frontpage/04_00_intro.html';return true;">
<area shape="rect" coords="302,4,373,30" href="java script://" onClick="showSec(4);parent.menubar.location.href = '../../pages/05_behandlinger/05_00_frontpage/05_00_menubasic.html';parent.Hovedvindue.location.href = '../../pages/05_behandlinger/05_00_frontpage/05_00_intro.html';return true;">
<area shape="rect" coords="378,4,448,30" href="java script://" onClick="showSec(4);parent.menubar.location.href = '../../pages/06_vejledning/06_00_frontpage/06_00_menubasic.html';parent.Hovedvindue.location.href = '../../pages/06_vejledning/06_00_frontpage/06_00_intro.html';return true;">
<area shape="rect" coords="453,4,524,30" href="java script://" onClick="showSec(4);parent.menubar.location.href = '../../pages/07_livsstil/07_00_frontpage/07_00_menubasic.html';parent.Hovedvindue.location.href = '../../pages/07_livsstil/07_00_frontpage/07_00_intro.html';return true;">
<area shape="rect" coords="528,4,599,30" href="java script://" onClick="showSec(4);parent.menubar.location.href = '../../pages/08_spoergsmaal/08_00_frontpage/08_00_menubasic.html';parent.Hovedvindue.location.href = '../../pages/08_spoergsmaal/08_00_frontpage/08_00_intro.html';return true;">
<area shape="rect" coords="604,4,674,30" href="java script://" onClick="showSec(4);parent.menubar.location.href = '../../pages/09_udstyr/09_00_frontpage/09_00_menubasic.html';parent.Hovedvindue.location.href = '../../pages/09_udstyr/09_00_frontpage/09_00_intro.html';return true;">
<area shape="rect" coords="679,4,749,30" href="java script://" onClick="showSec(4);parent.menubar.location.href = '../../pages/10_oekonomi/10_00_frontpage/10_00_menubasic.html';parent.Hovedvindue.location.href = '../../pages/10_oekonomi/10_00_frontpage/10_00_intro.html';return true;">
</map>
</body>
</html>
