[prev in list] [next in list] [prev in thread] [next in thread]
List: kfm-devel
Subject: onLoad event for images called like crazy
From: David Faure <david () mandrakesoft ! com>
Date: 2001-08-25 11:52:09
[Download RAW message or body]
Check out http://xml.apache.org
All images have an onLoad event calling a JS method called rolloverLoad. For instance \
: <IMG alt="http://xml.apache.org/" border="0" height="20" hspace="0" name="xml" \
onLoad="rolloverLoad('xml','resources/button-xml-hi.gif','resources/button-xml-lo.gif');" \
src="resources/button-xml-lo.gif" vspace="0" width="96">
rolloverLoad is defined as
function rolloverLoad(name,on,off) {
rolloverImagesOn[name]=new Image();
rolloverImagesOn[name].src=on;
rolloverImagesOff[name]=new Image();
rolloverImagesOff[name].src=off;
}
This only loads some other images into an array of images, it's unrelated
to the images on the page.
For some reason, though, rolloverLoad keeps getting called, leading to a very high \
CPU usage. So I think this is some problem with the onLoad event for images....
--
David FAURE, david@mandrakesoft.com, faure@kde.org
http://perso.mandrakesoft.com/~david/, http://www.konqueror.org/
KDE, Making The Future of Computing Available Today
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic