Created
May 24, 2013 10:19
-
-
Save rafeca/5642586 to your computer and use it in GitHub Desktop.
Fallback of a:hover for Netscape 4.0 . This has been retrieved from my personal page from 1999
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script language="JScript"> | |
<!-- | |
ua=navigator.userAgent; | |
v=navigator.appVersion.substring(0,1); | |
if ((ua.lastIndexOf("MSIE")!=-1) && (v='4')) { | |
document.onmouseover = highlight; | |
document.onmouseout = unhighlight; | |
} | |
function highlight() { | |
src = event.toElement; | |
if (src.tagName == "A") { | |
src.oldcol = src.style.color; | |
src.style.color = "#FF0000"; | |
} | |
} | |
function unhighlight() { | |
src=event.fromElement; | |
if (src.tagName == "A") { | |
src.style.color = src.oldcol; | |
} | |
} | |
//--> | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment