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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Preloading images

Status
Not open for further replies.

Ramses1

Programmer
Feb 18, 2008
2
0
0
CA
I wanted to write a script that can preload all images in a table on a photo gallery page as it takes way too long for all of them to load one by one when you go to this page. I thought if i give an "onload" command to the home page, the photo gallery page would preload in cache, and populate, so when the user clicks on this page, all the images would already be in the table...Suggestions?
 
Suggestions?

Yup, go search google. Many of us could write out a solution and explain it to you line-by-line, but this exact script has been written about a bajillion times. You'll find plenty of options on google.

-kaht

Lisa, if you don't like your job you don't strike. You just go in every day and do it really half-assed. That's the American way. - Homer Simpson

[small]<P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <.</B>[/small]
 
Thanx kaht for your reply...I would not have asked the forum if I could've found it elsewhere. Don't know about you, but when I search "preload images" on Google, I don't get much in return...Some related code, but not at all what I need.I will keep searching.
 
Don't know about you, but when I search "preload images" on Google, I don't get much in return...

That's because you're leaving out one key element in your search terms:

[google]javascript preload images[/google]

That will give you boatloads of examples.

-kaht

Lisa, if you don't like your job you don't strike. You just go in every day and do it really half-assed. That's the American way. - Homer Simpson

[small]<P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <.</B>[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top