Webmonkey
Powered by Atomz.com



Quick Reference:

• Javascript Code Library
HTML Cheatsheet
Special Characters
Color Codes
Browser Chart
Stylesheet Guide
Unix Guide
Glossary
Domain Registries

Reference   JavaScript Code Library

If your page will be calling in images sometime after the page loads (for "rollover" effects, for example), it's important to preload the images so they'll appear instantly at the desired time instead of loading "as needed." The WM_preloadImages() function takes a list of images (which must be valid URLs, enclosed in quotes) as arguments and then caches them.

Usage: WM_preloadImages('image 1 URL', 'image 2 URL', 'image 3 URL', ...);

Example: <body onLoad="WM_preloadImages('header.gif','nav1.gif','foo.gif','scoob.gif');">

License: Webmonkey Public License

Cut, paste, and enjoy!


Feedback  |  Help  |  About Us  |  Contribute  |  Jobs
Advertise  |  Privacy Statement  |  Terms and Conditions

Copyright © 1994-2000 Wired Digital Inc., a Lycos Network site. All rights reserved.