Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q1078 Netscape 2 and Internet Explorer 3 gives error on image rollover

irt.org | Knowledge Base | JavaScript | NotABug | Q1078 [ previous next ]

Q1078 Netscape 2 and Internet Explorer 3 gives error on image rollover

Symptom: Moving the mouse over an image that is supposed to change gives a JavaScript error instead.

Affects: NS 2.x MSIE 3.x

Reason: The Image array used to manipulate images already loaded is not supported by JavaScript 1.0.

Workaround: Test the availability of the images array:
1. in the link: onMouseover="if (document.images) dotheswap();">
2. in the script: if (document.images) { // Here we can preload
3. in the functions: if (!document.images) return; // leave if not supported


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.