PreLoading Images?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

PreLoading Images?

Post by JellyFish »

Hi, I would like to know this simplest way to preload specified images before the page even starts to appear. The reason I need to do this is because I don't want these images to appear as if they are loading but rather look like they are an html border. :wink:

Sounds simple enough.

Thanks in advance.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Are you using DreamWeaver at all? I think there is a built in javascript that will preload mouseover images so that they appear instantly when a user mouses over them.

If not, try googling 'MM_Preload' and see what comes up. Find one of the page, view source and have a look at the JavaScript functions, the onload event in the body tag, and the mouseover events of the images themselve.
Post Reply