Makes no sense.
You call the function thus:
buttons = CALC_GLBS.preLoad(document, list);
and then in the preLoad function you use
which of course means you are then using
So far as I know, document.length is meaningless in any browser.
The real reason it works is because you are using unneeded code.
would be sufficient.
Not to ask a silly question, but WHY are you doing
if ( document.images )
??? There are no modern browsers that don't support images. That makes less sense than people who do
if ( document.getElementById )
Anyway, the thing you haven't shown us in either post is where in the heck you are getting the list or array that you pass to argument b
in the preLoad function.
And, finally, I don't understand why you want to invoke the over
function on EVERY image button just because ONE of them was rolled over. Is there really a purpose in this?