NS 4 js rollover problem

Howdy, I'm trying to get a crossbrowser rollover for multiple images at a time.
To do this, I wrote this code:
function changeImages() {
if (document.images && (preloadFlag == true))
for (var i=0; i<changeImages.arguments.length; i+=2)
if(document.GetElementById || document.all)
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
else document.placed[changeImages.arguments[i]].src = changeImages.arguments[i+1];

In the html itself, the function is called like:


From the code, you can tell I'm passing variable # of arguments to the function.
For some reason, NS 4X doesn't like the "document.placed" statement.
I am trying to get to the image tht has the name of "...arguments[i]" but am unable to traverse the NS DOM to find it.
Everything I try returns with an error.

Any help would be greatly appreciated

http://people.tamu.edu/~mateo/interface.html is the troublesome page
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!