Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rollover not working in Netscape

Status
Not open for further replies.

leon3rd

Programmer
Nov 13, 2000
1
GB
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='javascript:eek:ffText("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.
 
can you link to the actual page it is on..? that may help jared@aauser.com
 
Where are you catching the onMouseOver event on your page? What is the exact code?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top