Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



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

Posts: 1
Trades: 0
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
 
 
Register now for full access!
Old 03-10-2005, 06:49 PM
kline11's Avatar
SearchBliss Web Tools

Posts: 1,728
Name: John
Location: USA
Trades: 0
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.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
kline11 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Preloading Images WITH JavaScript - HELP!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.10385 seconds with 12 queries