I have got a standard bit of code that pre-loads the images to use on the page, and then a bit of code that will swap them when a thumbnail is clicked. The actual main image is positioned using a <DIV> tag with positioning elements on it. This all works fine in IE, but when i put it near to Netscape, it all goes wrong. It just stops working, its doesn't swap the image. I have taken the image out of the <DIV> and it works, but is not in the right place.
Is there anyway that I can get this to work in NS ??
This is the code that is being used:
Javascript:
function changePic(imgName) {
if (document.images) {
document['detail'].src = eval(imgName + ".src"
}
}
main Image code
<DIV id="wwbg1" style="position:absolute; width:200px; height:115px; z-index:3; left: 6px; top: 49px">
<IMG src="pixels/ww/ww0.jpg" width="269" height="304" name="detail">
</div>
Any help would be apreciated !!
Is there anyway that I can get this to work in NS ??
This is the code that is being used:
Javascript:
function changePic(imgName) {
if (document.images) {
document['detail'].src = eval(imgName + ".src"
}
}
main Image code
<DIV id="wwbg1" style="position:absolute; width:200px; height:115px; z-index:3; left: 6px; top: 49px">
<IMG src="pixels/ww/ww0.jpg" width="269" height="304" name="detail">
</div>
Any help would be apreciated !!