Formatering af Hover tekst
Jeg vil forsøge at styrer formateringen af HOVER teksten med nedenstående kode, men det virker ikke efter hensigten.Det er specielt denne linie der volder problemer:
foer.style.hover.color = "#FF00FF";
*****************************************
<html>
<head>
<style type="text/css">
.menumab {
color: #FFFFFF;
background-color: #3366FF;
display: block;
width: 100%;
padding: 1px;
font-family: Arial;
font-size: 8pt;
text-decoration: none;
}
A.menumab:hover{
background-color: #99ACC8;
color: #FF00FF
}
A.menumab:active{
text-decoration: underline;
color: #FFFF00
}
</style>
<script type="text/javascript">
foer = null;
function highlight(lnk) {
if (foer){
foer.style.color = "#FFFFFF";
foer.style.fontWeight = "normal";
foer.style.hover.color = "#FF00FF";
}
lnk.style.color = "#FFFF00";
lnk.style.fontWeight = "bold";
foer = lnk;
}
</script>
</head>
<body>
<a class="menumab" href="http://www.eb.dk" onclick="highlight(this);" target="_Blank">1</a>
<a class="menumab" href="http://www.tv2.dk" onclick="highlight(this);" target="_Blank">2</a>
<a class="menumab" href="http://www.dr.dk" onclick="highlight(this);" target="_Blank">3</a>
</body>
</html>
