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.
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