Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loadPics Performance

Status
Not open for further replies.

Shilohcity

Technical User
Jul 12, 2000
136
GB
Hi there

I have a site which uses a drop down menu populated by images and roll over images. I preload the roll over images on every page and was wondering if anybody knew of any performance issues with this. Here is the code I use:


picNames = new Array( newArray defined here.)

loadPics = new Array()

for(i=0; i < picNames.length; i++) {
loadPics = new Image;
loadPics.src = picNames;
}

Does the browser load from the cache or the server? I havent picked upa any major issues but I am just testing at present.

All replies and comments appreciated.

Justin. X-) &quot;Creativity is the ability to introduce order into the randomness of nature.&quot; Eric Hoffer

Visit me at
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top