Could someone please tell me what's the right css code for:
this.style.color="red" in NS???
It works with ie.
this.color="red"; does not work either
I can't use id because I have a list of links, and they will all
have the same id, because the links are built from a database.
Anyone? Thanks alot in advance
part of the code:
<script language="javascript">
function linkColorOnmouseover(current)
{ if (IE)
current.style.color="red"; //colors the link in red onmouseover
else if (NS)
current.color="red"; //colors the link in red onmouseover
//This line does not effect using NS!!!
}
</script>
...
<body>
<a href="#" onmouseover="linkColorOnmouseover(this)" onclick="function2('bla')">The link</a>
</body>
this.style.color="red" in NS???
It works with ie.
this.color="red"; does not work either
I can't use id because I have a list of links, and they will all
have the same id, because the links are built from a database.
Anyone? Thanks alot in advance
part of the code:
<script language="javascript">
function linkColorOnmouseover(current)
{ if (IE)
current.style.color="red"; //colors the link in red onmouseover
else if (NS)
current.color="red"; //colors the link in red onmouseover
//This line does not effect using NS!!!
}
</script>
...
<body>
<a href="#" onmouseover="linkColorOnmouseover(this)" onclick="function2('bla')">The link</a>
</body>