PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
Luke
The Ninja Space Mod
Posts: 6424 Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA
Post
by Luke » Fri Jul 07, 2006 5:23 pm
Is there are way to use PHP instead of javascript to preload/cache images for rollovers and that sort of thing?
printf
Forum Contributor
Posts: 173 Joined: Wed Jan 12, 2005 5:24 pm
Post
by printf » Fri Jul 07, 2006 9:12 pm
No, only client side scripting can fetch data and store it on your computer in the browsers cache!
pif!
Luke
The Ninja Space Mod
Posts: 6424 Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA
Post
by Luke » Fri Jul 07, 2006 9:31 pm
oh... thanks.
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Sat Jul 08, 2006 12:22 am
well.. there are a few tricks that don't require Javascript.. but they don't need PHP either. Just some clever HTML and CSS can do it.
Luke
The Ninja Space Mod
Posts: 6424 Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA
Post
by Luke » Sat Jul 08, 2006 3:58 pm
feyd wrote: well.. there are a few tricks that don't require Javascript.. but they don't need PHP either. Just some clever HTML and CSS can do it.
Really? Do you think you could point me in the right direction?
Ollie Saunders
DevNet Master
Posts: 3179 Joined: Tue May 24, 2005 6:01 pm
Location: UK
Post
by Ollie Saunders » Sat Jul 08, 2006 4:06 pm
Code: Select all
<img src="whatever.jpg" style="display:none" alt="whatever" />
won't be displayed but will load the image. so you can use whatever.jpg later without load.
Luke
The Ninja Space Mod
Posts: 6424 Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA
Post
by Luke » Mon Jul 10, 2006 7:41 pm
That's exremely cool. Thanks!