Version: (using KDE KDE 3.3.2) Installed from: Debian testing/unstable Packages OS: Linux Animated GIFs never generate an "OnLoad" event. With a static image, this code will show the dialog: <html><body> <img src="static.gif" onload="alert('done')"> </body></html> With a dynamic image, the dialog never happens: <html><body> <img src="dynamic.gif" onload="alert('done')"> </body></html> The problem also occurs if the image object is created manually with JavaScript: img = new Image(); img.src = "dynamic.gif"; img.onload = function() { alert('done'); };
Confirmed with 3.5 SVN r575787
It appears it will fire in konqueror if animations are disabled, or set to only show one loop. Other browsers fire onload once for every loop of the animations. I have a patch to fix it.
It seems to be fixed on KDE 4: The "onload" event is fired one time (probably when the image is loaded). Personally I prefer that the event is loaded only one time, not at each loop :)
Closing as fixed as of comment #3.