|
COMMENTS: This changes the link color when the mouse is placed over it. It only works in IE4 (not netscape). If it's viewed in Netscape then the link appears normal. The color of the links are set in your body tag. The color you want the link to change to when the mouse moves on it is highlighted in the script below. Copy the script and put it in your source code just under the head. Here is a demo. Help. You can change is it has a line under it or not too. They are also highlighted in the code below
You should have something like this in your head, if not, copy this and change the colors accordingly.
<body bgcolor="#005A96" link="orange" vlink="orange" alink="00FF95">
<!--HERE-->
<SCRIPT LANGUAGE="JScript">
<!--
ua=navigator.userAgent;
v=navigator.appVersion.substring(0,1);
if ((ua.lastIndexOf("MSIE")!=-1) && (v!='1') && (v!='2') && (v!='3')) {
document.body.onmouseover=makeCool;
document.body.onmouseout=makeNormal;
}
function makeCool() {
src = event.toElement;
if (src.tagName == "A") {
src.oldcol = src.style.color;
src.style.color = "white";
}
}
function makeNormal() {
src=event.fromElement;
if (src.tagName == "A") {
src.style.color = src.oldcol;
}
}
//-->
</script>
<style type="text/css">
<!--
A:link {text-decoration: line} A:visited {text-decoration: none}
A:active {text-decoration: none}
-->
</style>
<!--END HERE-->
|
|