Bjoern Lindner: alink & vlink deaktivieren oder umgehen

Beitrag lesen

Mein Script sieht derzeit so aus:

<div id="prod" style="position: absolute; visibility: visible; z-index: 1; top: 20; left: 10; width: 100; height: 38">
<a href="kontakt.htm" onmouseover="showdiv(farb1)" onmouseout="hidediv(farb1)">
Produkte</a></div>

<div id="haend" style="position:absolute; visibility:visible; z-index:2; top:50px; left:10px; width:100px">
<h4 onmouseover="showdiv(farb2)" onmouseout="hidediv(farb2)">
Handler</h4></div>

<script language="JavaScript">

var isNS=(navigator.appName=="Netscape" && parseInt(navigator.appVersion)>=4);

var farb1 = (isNS) ? document.prod : document.all.prod.style;
var farb2 = (isNS) ? document.haend : document.all.haend.style;

farb1.color = "#FFFFFF";
farb2.color = "#FFFFFF";

function showdiv(div)
{
div.color="#FF0000";
}

function hidediv(div)
{
div.color="#FFFFFF";
}

function loadkont()
{
window.open=("kontakt.htm");
}

</script>