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!

netscape mac image swapping problem

Status
Not open for further replies.

TechDude

Programmer
Jul 20, 2000
62
US
Hi All,

I'm using the following code to swap images on an exclusively netscape 4.x page.
document.navsystem.activesublink.src= "images/spacer.gif";
document.navsystem.activesublink=document.navsystem.navlayers.layernames[layernum].document.images[link_num];
document.navsystem.activesublink.src= "images/closed.gif";

on netcscape 4.x pc it works fine, but on netscape 4.x mac, the new image won't appear
unless I put an alert in the code like this:

document.navsystem.activesublink.src= "images/spacer.gif";
document.navsystem.activesublink=document.navsystem.navlayers.layernames[layernum].document.images[link_num];
document.navsystem.activesublink.src= "images/closed.gif";
alert("anything you want here")

when the alert pops up, the images swap like they should

any ideas why this is happening?



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top