onmouseover and onmouseout seem only to work half the time in a script i
wrote to fade between different opacities:
http://www.frostjedi.com/terra/dev/test.html
(works in firefox, but not in internet explorer).
I believe it's a bug. Simple as that. I made my own version of your script
(which "works"[1] in all browsers, by the way) and noticed that when the
opacity level reaches 100%, there is a brief flicker (though it doesn't
happen in IE). If the maximum value is reduced to 99%, this flicker
doesn't occur and the mouseout event fires normally.
On the demo page at
<URL:
http://www.mlwinter.pwp.blueyonder.co.uk/clj/yawnmoth/fade.html>, the
W3C image will go to 100% and the Firefox image to 99% (I've commented out
the line which limits the maximum to 99 for this test). Hopefully you'll
observe the difference.
To address the issue Kae mentioned (which I also noticed), the script uses
a hash table using the object references as the key and timer id as the
value.
also, the webpage doesn't validate because, i guess, the dns's used by
the w3c validation services aren't up-to-date and still show a generic
page.
It does now. In any case, the mark-up I used is Strict. You should note
that all modern pages should be written to the Strict DTD. The
Transitional DTD was only a temporary measure so that legacy pages could
be considered valid[2].
Mike
[1] Meaning: does something sensible. If the techniques attempted are
supported you'll have your fading images. If not, nothing visible will
happen and there will be no errors. Currently, IE6 and Gecko-based
browsers perform the fade.
[2] That's my hypothesis but I've seen others in HTML groups share the
same view.