Jump to content


Photo

Preload Pictures


  • Please log in to reply
4 replies to this topic

#1 Orio

Orio
  • Staff Alumni
  • Advanced Member
  • 2,491 posts

Posted 31 May 2006 - 12:27 PM

Hello,
I am running this site: www.oriosriddle.com
Now, as you can see there, I have a few pictures that are "animated" with javascript onMouseOver & onMouseOut events.
So I used this preload script I found on the web to preload the pics shown on the onMouseOver.
But since then I get this "Done, but with errors on page" (with Internet Exlporer) on the bottom left corner.
Can someone tell me whats wrong? (Full code is in source code, But I can post it here if someone asks).
The pics do get preloaded, it's the error disturbing me.

Thank you,
Orio.
Think you're smarty?

(Gone until 20 to November)

#2 nogray

nogray
  • Members
  • PipPipPip
  • Advanced Member
  • 930 posts
  • LocationSan Francisco CA

Posted 31 May 2006 - 05:53 PM

take this

onload="Preload("gfx/start2.gif","gfx/hints2.gif","gfx/forums2.gif","gfx/info2.gif","gfx/feedback2.gif","gfx/ranking2.gif", "gfx/logo2.gif)"

out of the body tag

NoGray.com


#3 Orio

Orio
  • Staff Alumni
  • Advanced Member
  • 2,491 posts

Posted 01 June 2006 - 09:53 AM

So where should I put it? It's supposed to be in a tag, and as far as I know onload is put in the body tag.

Orio.
Think you're smarty?

(Gone until 20 to November)

#4 king arthur

king arthur
  • Members
  • PipPipPip
  • Advanced Member
  • 335 posts
  • LocationUK HQ

Posted 01 June 2006 - 11:28 AM

Just take it out and throw it away! You are already preloading the images in your javascript code inside your <head> section. I cannot see where Preload() is defined anyway?
Sir Isaac Newton said "If I have seen farther, it is by standing on the shoulders of giants". But it is not recorded as to whether he said it before or after he was hit on the head by a falling apple.

#5 Orio

Orio
  • Staff Alumni
  • Advanced Member
  • 2,491 posts

Posted 01 June 2006 - 11:49 AM

Thanks alot!
I just used a script I found on the web, and that's what they said to do...
Thank you, both!

Orio.
Think you're smarty?

(Gone until 20 to November)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users