Welcome visitor
* Login
* Register
It is currently July 19th, 2019, 2:11 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » JavaScript



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  preload images
PostPosted: August 15th, 2009, 1:16 am 

Posts: 26
what can i do to preload images before i use them?

i want to do this with javascript as you would with flash. Thanks.


Top
 Profile  
 
  Re: preload images
PostPosted: August 15th, 2009, 8:14 am 
User avatar

Posts: 79
create an image array and then just call the data from that array
imageArray[x] = new Image();
imageArray[x].src = pic.png;


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » JavaScript


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron