Reply
Preloading Images w/o JavaScript
Old 03-04-2005, 11:24 PM Preloading Images w/o JavaScript
Phaedrus's Avatar
Ultra Talker

Posts: 271
Location: CA
Something rather pointless which I figured out...

After a couple hours of trouble trying to preload images with JavaScript, I figured out that I can do the same thing just by including the images with no display:

<img src="whatever" style="display:none" />

So I guess that's a good way to preload images for people with JavaScript disabled, not that there's that many.
__________________
Free Teacher Websites
Phaedrus is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 03-05-2005, 04:16 PM
kline11's Avatar
King Spam Talker

Posts: 1,248
Name: John
Location: USA
You can generate the preload images javascript code here for free.
http://www.searchbliss.com/webmaster..._generator.htm

The <img src="whatever" style="display:none" /> will just take up space and SE's may frown on it (hidden images) but this is a guess.
kline11 is offline
Reply With Quote
View Public Profile Visit kline11's homepage!
 
Old 03-06-2005, 12:49 AM
Phaedrus's Avatar
Ultra Talker

Posts: 271
Location: CA
Oh, no it's not that... I know how to preload images... I just have a comlex app with spaghetti code and include files and it was that stuff that was making it a headache to preload with javascript. So I just figured out a way that worked in my specific situation.
__________________
Free Teacher Websites
Phaedrus is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Preloading Images w/o JavaScript
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11816 seconds with 13 queries