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?
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?