Moin...: Linkeffekt

Beitrag lesen

So habs fertig, ich hoffe, dass dir das besser gefällt...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<head>
<title>Farbe ändern</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<script type="text/javascript">

var g=16, geschwindigkeit_in_ms=50, hex=new Array("0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F");

function umfaerben()
{
 if (g>0) document.getElementById("bla").style.color="#FF"+hex[g-1]+hex[g-1]+hex[g-1]+hex[g-1];

if (g>0) g--;
 zaehler=window.setTimeout("umfaerben();",geschwindigkeit_in_ms);
}

function normalfaerben()
{
 document.getElementById("bla").style.color="#000000";
 if (zaehler) window.clearTimeout(zaehler);

g=16;
}

</script>

<body>
 <a id="bla" href="#" onMouseOver="umfaerben();" onMouseOut="normalfaerben();">Moin, was geht???</a>
</body>

Viele Grüße Chris (Moin)...