/    Sign up×
Community /Pin to ProfileBookmark

Image preload help please!

Would any of you happen to know why I get the ‘preloadImages id not defined’ error when I call upon this…

[code=html]preloadImages(“navsimagescontactglow.png”,”navsimagesfacilityglow.png”,”navs

imagesfaqglow.png”,”navsimagesgalleryglow.png”,”navsimageshomeglow.png”,”n

avsimageslocationglow.png’,’navsimagessubmitglow.png’,’navsimagestestimoni

alglow.png”,”servicesimagesbacklitglow.png”,”servicesimagesbannersglow.png”,

“servicesimagesboatsglow.png”,”servicesimagesbumperglow.png”,”servicesimage

scardsglow.png”,”servicesimageschannelglow.png”,”servicesimagesdigitalglow.

png”,”servicesimagesfloorglow.png”,”servicesimagesgiclee.png”,”servicesimag

eslaminationglow.png”,”servicesimageslogosglow.png”,”servicesimagesmagnetic

glow.png”,”servicesimagespoleglow.png”,”servicesimagespromoglow.png”,”servic

esimagesrealglow.png”,”servicesimagesvehicle.png”,”servicesimagesvinylglow

.png”,”servicesimageswallpaperglow.png”,”servicesimageswindowglow.png”,”serv

icesimageswrapsglow.png”);[/code]

Messy, I know. I just didn’t want to chance putting each image on it’s own line.

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@Logic_AliMar 27.2007 — Would any of you happen to know why I get the 'preloadImages id not defined' error when I call upon this...
[/QUOTE]
You have more than one instance of unmatched quotes, the first being: "navsimageslocationglow.png', but this may not be the cause of the error you get. If you still have a problem after fixing those errors, you'll need to show more code.
Copy linkTweet thisAlerts:
@HeliozentricauthorMar 27.2007 — Well the thing is even when I have...

[code=html]preloadImages("navsimagescontactglow.png");[/code]

I still get an error. I am not calling upon the function anywhere, so I am thinking there has to be something there I am not seeing.
Copy linkTweet thisAlerts:
@rootMar 27.2007 — how about posting the actual script and not how you are trying to use the function...

if you cant find the function, then that may be the issue...
Copy linkTweet thisAlerts:
@HeliozentricauthorMar 27.2007 — Yeah, when I tried this out I thought it was a default function that was built into javascipt.
Copy linkTweet thisAlerts:
@rootMar 27.2007 — If you search for an image preload routine on the internet or on this site, your bound to come across an example or couple of thousand!
Copy linkTweet thisAlerts:
@HeliozentricauthorMar 27.2007 — Well I have come across one, which I am guessing it is the most popular...

[code=html]
pic1 = new Image();
pic1.src="blah.jpg";
[/code]


Why I am hesitant to use that is because I am not sure if I call upon the SOURCE of that image later, will it download the image again, or use it from what I had preloaded. My logic tells me that in order for it to work correctly I would have to call upon it using the name I assigned to it... 'pic1'. If this isn't the case please let me know. =]
×

Success!

Help @Heliozentric spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.6,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...