TradeNurkicNow
piss
- Joined
- Sep 16, 2008
- Messages
- 5,197
- Likes
- 679
- Points
- 113
Anyone wanna help me tackle this problem?
I have basic programming knowledge (vb, actionscript, html), and I'm fuddling my way through javascript in writing my new website.
So, the problem I have is with the .onLoad handler. I know that it is generally used i the <body> tag, or on images/documents in the <head> tag.
I want to have an array of images load, then have the function fire, as in:
imagesLoaded = new Array[]
imagesLoaded[1] = image1.jpg;
imagesLoaded[2] = image2.jpg;
imagesLoaded[3] = image3.jpg;
imagesLoaded.onLoad = someFunction();
So, it works. However, it works too fast, and doesn't recognize that the images aren't loaded yet. It seems to fire as soon as it knows the array exists, but not when the contents of the array are loaded.
Any gurus wanna help out? Thanks
				
			I have basic programming knowledge (vb, actionscript, html), and I'm fuddling my way through javascript in writing my new website.
So, the problem I have is with the .onLoad handler. I know that it is generally used i the <body> tag, or on images/documents in the <head> tag.
I want to have an array of images load, then have the function fire, as in:
imagesLoaded = new Array[]
imagesLoaded[1] = image1.jpg;
imagesLoaded[2] = image2.jpg;
imagesLoaded[3] = image3.jpg;
imagesLoaded.onLoad = someFunction();
So, it works. However, it works too fast, and doesn't recognize that the images aren't loaded yet. It seems to fire as soon as it knows the array exists, but not when the contents of the array are loaded.
Any gurus wanna help out? Thanks

 
	 
 
		 
 
		 
 
		