...

View Full Version : .complete ?



Tails
03-01-2003, 07:37 PM
The source of a script had a some lines like this:

playster=new Image()
playster.src="play2.gif"
if(playster.complete == false)
{setTimeout("checkload()",100)}

What is .complete? I searched and found no prototypes assigned or external scripts. So that must mean that .complete has some kind of official meaning in javascript?

Graeme Hackston
03-01-2003, 07:43 PM
http://www.devguru.com/Technologies/ecmascript/quickref/image.html

Tails
03-01-2003, 07:45 PM
Cool, so detecting if an image has been preloaded is as simple as an IF statement?

Graeme Hackston
03-01-2003, 07:50 PM
I haven't checked preloading with it but it is true when the image is loaded

Tails
03-01-2003, 08:16 PM
Thanks, I'll see what it can do.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum