I've tried code from here http://www.webreference.com/programming/javascript/gr/column3/ but firebug says - "this.preload is not a function". Why? I thought that Function is some sort of Object.
+2
A:
You perhaps forgot to also include the bit of code, further down the page, where the preload function is defined on the ImagePreloader prototype.
Jonathan Feinberg
2009-10-23 13:37:14
Oh. Well, then the problem is that you've discovered a very subtle but long-standing bug in the JavaScript implementation of your browser. Well done!
Jonathan Feinberg
2009-10-23 13:52:52
Since this is your question, you can comment on the answers instead of using an answer as a comment.
random
2009-10-23 14:08:11
I tested it in FF 3.5, Safari, IE and every browser outputs the same error message
Yrgl
2009-10-23 14:09:06