Skip to content

Instantly share code, notes, and snippets.

@rafeca
Created May 24, 2013 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafeca/5642586 to your computer and use it in GitHub Desktop.
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
<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