Snap Builder Public Codes Library
Snap | Generators | Login | Browse | Search | Enter Code | Export Snap Builder Public Codes Library


Category: Javascript Codes Library >> Image Effects >> Preload Images

Code Snippet </> Info

Snippet Name: Preload Images

Description: Speed up pages by preloading images for mousehovers and/or for onClick div layers.

Compatible Browsers:
Chrome BrowserFirefox BrowserInternet Explorer BrowserOpera BrowserSafari Browser

Note: Insert as many preload image lines as needed.
var home-roll = new Image();
home src=""

Author: SnapBuilder <>

Last Modified: 2019-12-09 02:52:38

Language: javascript

Highlight Mode: javascript

Copy Codes: Use Free Notepad ++
Bookmark and Share

Snap HTML Code Editor:
Paste the source code, make changes and instantly see it in live preview.
Snap HTML Code Editor

  About Copying
Copied To Clipboard!

<html> <head> <title>Preload Images Javascript Code Snippet</title> <script language="javascript"> <!-- // Begin Preload Images // == This Script Free To Use Providing This Notice Remains == // // == This Script Has Been Found In The Free Public Codes Library == // // == NOTICE: Though This Material May Have Been In A Public Depository, Certain Author Copyright Restrictions May Apply == // --> var home = new Image(); home src="" var home-roll = new Image(); home src="" </script> </head> <body> [ YOUR CONTENT GOES HERE ] </body> </html>

[ Snippet Options ]


© 2002 -  Snap Builder Public Codes Library