I use this code stand alone and it works fine in both NS and IE. When I incorporate on another page with other functions I get the following error in NS ONLY......:
document.images
has no properties.
JavaScript Error:
document.images
JavaScript Error:
Code:
file:/D:/Documents%20and%20Settings/Desktop/Pics/Frame/2NetTree.html,
line 31:
the funtion is as follows:
<!--
if (document.images)
{
img1=new Image();
img1.src="Images/2PlayButtonU.jpg";
img2=new Image();
img2.src="Images/2PlayButtonD.jpg";
}
function change(imgNumb,imgFile)
{ if (document.images)
{ document.images[img]umb[/img].src = eval(imgFile + '.src'); }
}
//-->
</script>
[code]
PLease help...Thanks!
iza (Programmer) Sep 20, 2001
maybe because imgNumb > images.length
Not quite sure what you mean ?