Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

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

You are here: irt.org | FAQ | JavaScript | NotABug | Q1078 [ previous next ]

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

©2018 Martin Webb