July 25th, 2001, 01:52 PM
This works in IE but does nothing in Netscape (no action, no error). The annoying thing about it is that an exactly equivalent statement works to perform rollovers on the page. Here is that code:
eval( "document.images[ '" + window.currentPage + "' ].src = window." + window.currentPage + "_on.src;" );
The part of the statement that is
eval( "document.images[ '" + slice + "' ].src = window." + slice + "_" + dir + ".src;" );
in the second statement is hardwired as in the first statement.
+ "_" + dir + ".src;"
Is this just (yet another) case of Netscape being arbitrarily defective?
July 25th, 2001, 02:26 PM