You are here: irt.org | About | Feedback | 1517 [ previous next ]
Feedback on:
irt.org FAQ Knowledge Base Q120
Sent by
m.chung on July 21, 2000 at 00:15:43:
Comments:
Don't work too well, sometimes it leaves items highlighted when you move over them real quick.
However, using zIndex rather than hide and show works :
function mover(object) {
if (ie4) {
eval(object + '.className = "highlight"');
} else if (ns4) {
eval('document.layers["' + object + 'b"].zIndex=0');
eval('document.layers["' + object + 'a"].zIndex=1');
}
}
function mout(object) {
if (ie4) {
eval(object + '.className = "normal"');
} else if (ns4) {
eval('document.layers["' + object + 'a"].zIndex=0');
eval('document.layers["' + object + 'b"].zIndex=1');
}
}
function dLink(href, text, oname) {
if (ie4) {
document.write('<A HREF="'+href+'" onMouseOut="mout(\'' + oname + '\')" onMouseOver="mover(\''+ oname +'\')" ID="' + oname + '" class="normal">'+text+'</A>');
} else if (ns4) {
document.write('<LAYER left="5" NAME="' + oname + 'a" z-index=0><A HREF="'+href+'" onMouseOut="mout(\'' + oname + '\')" onMouseOver="mover(\'' + oname + '\')" CLASS="highlight">'+text+'</A></LAYER><LAYER left="5" NAME="' + oname + 'b" z-index=1><A HREF="'+href+'" onMouseOut="mout(\'' + oname + '\')" onMouseOver="mover(\'' + oname + '\')" CLASS="normal">'+text+'<\A></LAYER>');
} else {
document.write('<A HREF="'+href+'">'+text+'</A>');
}
document.write('<BR>');
}
Other feedback on 'irt.org FAQ Knowledge Base Q120' - show all