knappen/skriftfarve skift
Davs, jeg har en hjemmeeside ( http://offers.homepage.dk )og som i kan se for øjeblikket så skifter baggrunden på knapperne farve når musen kommer hen over, men jeg vil hellere have at skriftfarven skifter, hvordan gør jeg det. Her er hele koden på den side jeg har knapperne::::::::
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage Express 2.0">
<title>Links</title>
<bgsound
src="file:///C:/Dokumenter/Christoffer/Hjemmeside%201/musik.mid"
loop="infinite">
<style>
<!--
.initial2{color : lime; font-weight:bold;background-color:#02759B}
//-->
</style>
</head>
<body bgcolor="#000000" topmargin="0" leftmargin="0">
<script>
<!--
function skift(color){
var el=event.srcElement
if (el.tagName=="INPUT"&&el.type=="button")
event.srcElement.style.backgroundColor=color
}
function gaatil(url){
window.location=url
}
//-->
</script>
<form onmouseover="skift('lime')" onmouseout="skift('yellow')">
<p><font size="3"><input type="button" value="Forsiden"
class="initial2"
onclick="top.frames.tekst.location='forside.html'"
style="width: 125px" style="cursor: hand"></font></p>
</form>
<form onmouseover="skift('lime')" onmouseout="skift('yellow')">
<p><input type="button" value="Send SMS" class="initial2"
onclick="top.frames.tekst.location='sms.htm'"
style="cursor: hand" style="width: 125px"></p>
<p><input type="button" value="Ringetoner" class="initial2"
onclick="top.frames.tekst.location='ringetoner.htm'"
style="cursor: hand" style="width: 125px"></p>
<p><input type="button" value="Snydekoder" class="initial2"
onclick="top.frames.tekst.location='kodertil.htm'"
style="cursor: hand" style="width: 125px"></p>
<p><input type="button" value="Vittighed" class="initial2"
onclick="top.frames.tekst.location='vittighed.htm'"
style="cursor: hand" style="width: 125px"></p>
<p><input type="button" value="Lidt om mig" class="initial2"
onclick="top.frames.tekst.location='en.htm'"
style="cursor: hand" style="width: 125px"></p>
</form>
<form onmouseover="skift('lime')" onmouseout="skift('yellow')">
<p><input type="button" value="Billeder" class="initial2"
onclick="top.frames.tekst.location='billeder.htm'"
style="cursor: hand" style="width: 125px"></p>
</form>
<form onmouseover="skift('lime')" onmouseout="skift('yellow')">
<p><input type="button" value="Links" class="initial2"
onclick="top.frames.tekst.location='link.htm'"
style="cursor: hand" style="width: 125px"></p>
</form>
<form onmouseover="skift('lime')" onmouseout="skift('yellow')">
<p><input type="button" value="Skriv til mig"
class="initial2"
onclick="top.frames.tekst.location='sendmail.htm'"
style="cursor: hand" style="width: 125px"></p>
</form>
<form onmouseover="skift('lime')" onmouseout="skift('yellow')">
<p><input type="button" value="Gæstebog" class="initial2"
onclick="top.frames.tekst.location='http://users.cybercity.dk/cgi-bin/mybook.cgi?user=cft2173'"
style="cursor: hand" style="width: 125px"></p>
</form>
<form onmouseover="skift('lime')" onmouseout="skift('yellow')">
</form>
<form onmouseover="skift('lime')" onmouseout="skift('yellow')">
</form>
</body>
</html>
Altså istedet for at baggrunden skifter farve, så skal skriftfarven!!!!
