Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I don't understand this error

Status
Not open for further replies.

jaschulz

Programmer
May 20, 2005
89
FR
I have been trying to study some code I found at:


for preloading images. The demo site described on the page above no longer exists, so I had to build my own from the article. I did that, and you can see it at:


Firebug gives the following error(s), when the page is loaded:

missing ) after formal parameters [Break on this error] function ImagePreloader(images, call-back) {\n ImagePreloader.js (line 1)

ImagePreloader is not defined

I cannot see why Firebug thinks a parenthesis is missing.

What am I missing?

Thanks,

James
 
Why is there a minus sign in one of the variable names: call-back?

Lee
 
Thanks, Lee. I don't know how I missed that.

JAS
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top