Can anyone help please...
I have created a simple rollover function, but it does not work with Netscape. The code for the rollover is:
function hitMe(myText){
var myText = myText;
var blackpix = "/images/black.gif";
document.images[myText].src = blackpix;
}
function offText(leaveText){
var leaveText =leaveText;
if (leaveText != keepMe) {
var clearPix = "/images/transparent.gif";
document.images[leaveText].src = clearPix;
}
}
it is being called by:
onMouseOver='javascript:hitMe("site"' onMouseOut='javascriptffText("site"'
The error message is
this.document.images[myText] has no properties.
All images are properly named, and it works fine in IE
Thanks for any help.
I have created a simple rollover function, but it does not work with Netscape. The code for the rollover is:
function hitMe(myText){
var myText = myText;
var blackpix = "/images/black.gif";
document.images[myText].src = blackpix;
}
function offText(leaveText){
var leaveText =leaveText;
if (leaveText != keepMe) {
var clearPix = "/images/transparent.gif";
document.images[leaveText].src = clearPix;
}
}
it is being called by:
onMouseOver='javascript:hitMe("site"' onMouseOut='javascriptffText("site"'
The error message is
this.document.images[myText] has no properties.
All images are properly named, and it works fine in IE
Thanks for any help.