Reply
Preloading Images WITH JavaScript - HELP!
Old 03-08-2005, 12:57 PM Preloading Images WITH JavaScript - HELP!
Junior Talker

Posts: 1
Good lord, I am about to cry...

I am trying to make a simple (or, so I thought) slideshow, which displays up to four images, about 30k each. As far as I can tell, this should be easy using the following method:

Code:
var newImg = new Image();
newImg.src = "images/testImg.jpg";
BUT! It would seem that IE has a prolem with this, and downloads the images again each time it is called for display. (I believe Netscape executes the script correctly.) This wouldn't be a problem with a 2 or 3k image, but since these images are 30k+, there is a slight lag time between clicking the "Next Image" button and displaying the image. I have read another way of doing this here, but I can't seem to get a handle on this example.

Can anyone help me? I am going crazy trying to figure this out!
richy240 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 03-10-2005, 05:49 PM
kline11's Avatar
King Spam Talker

Latest Blog Post:
Google Chrome web browser
Posts: 1,273
Name: John
Location: USA
You can generate the code to preload images for free here: http://www.searchbliss.com/webmaster..._generator.htm
This could help along with the code you have.
__________________
SearchBliss Web Tools
kline11 is offline
Reply With Quote
View Public Profile Visit kline11's homepage!
 
Reply     « Reply to Preloading Images WITH JavaScript - HELP!
 

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 1.29417 seconds with 13 queries