Re: javascript question

by "Rossi Designs" <webmaster(at)rossidesigns.net>

 Date:  Wed, 3 May 2000 22:59:51 -0400
 To:  <pbabcock(at)bgsgroup.com>,
<hwg-languages(at)hwg.org>
 References:  felix
  todo: View Thread, Original
use the body onload event

Rossi Designs
PO Box 1084
Holly Hill, FL 32125-1084
Phone : (904) 226-8979
URL : http://rossidesigns.net
----- Original Message ----- 
From: Phil Babcock <pbabcock(at)bgsgroup.com>
To: <hwg-languages(at)hwg.org>
Sent: Wednesday, May 03, 2000 12:13 PM
Subject: javascript question


| HI all
| 
| I have a javascript function that preloads a bunch of images.  I have
| another function that I want to execute only when all of these images are
| fully downloaded.  How can I do this?
| 
| This is what I have:
| 
| function preload(){
| 
| image1 = new image();
| image1.src = "test.gif";
| file://etc for a  whole lot of images
| 
| do_this_function_after_preload_has_completed();
| 
| return true;
| }
| 
| However the second function is triggered right away, not after the images
| are all loaded.  Does it not process the function one line at a time,
| loading one image then the next then the next and finally doing the
| "do_this_function_after_preload_has_completed();" function?
| 
| 
| hope that makes sense
| 
| Phil Babcock
| Lead Web Designer
| BGS Group Inc.
| 
| 

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA