[thelist] JavaScript rollover problem in IE4,5

Eric Engelmann eric at geonetric.com
Sat, 14 Aug 1999 11:33:36 -0500


When you put a number in here for imgName:

document.images[imgName].src

its using the image index array instead of the name.

Name the images something that isn't a number (a,b,c,d) which works
perfectly.

- Eric


--------------

function rotate(state,imageName) {
        if (document.images) {
		      document.images[imageName].src = eval(state + ".src");
        }

<a href="#" target="_top" onMouseOver="rotate('on','a');"
onMouseOut="rotate('off','a');">
	<img src="b_arrow_off.gif" name="a" width="14" height="19" border="0">
	<img src="b_ssg.gif" alt="Softbank Facilities" border="0" width="136"
height="19">
</a><br>