ÍøÂçѧԺ w3popÉçÇø ÍøÂç×ÊÔ´ ITÐÂÎÅ

w3pop.com :: ÍøÂçѧԺ :: HTML DOM :: HTML DOM completeÊôÐÔ

»áÔ±µÇ½

ÕʺÅ

ÃÜÂë

»Ø´ð

¼ÇסÃÜÂë

Íü¼ÇÃÜÂë? ×¢²á

HTML DOM completeÊôÐÔ


×÷Õß:w3pop.com ·­Òë/ÕûÀí:w3pop.com ·¢²¼:2007-04-28 ä¯ÀÀ:1658 :: ::

Definition and Usage
¶¨ÒåÓëÓ÷¨

The complete property returns whether or not the browser has finished loading the image.
completeÊôÐÔ¿ÉÒÔ·µ»ØÍ¼Æ¬ÊÇ·ñÒѾ­¼ÓÔØÍê±Ï

If the image is finished loaded it returns true, otherwise it returns false.
Èç¹û¼ÓÔØÍê±Ï¾Í·µ»Øtrue,·ñÔò¾ÍÊÇfalse

Syntax
Óï·¨

imageObject.complete


Example
¾ÙÀý

The following example checks if the image is finished loaded on body onload:
ÏÂÃæ¾ÙÀýÖÐÎÒÃǽ«¼ì²éͼƬÔÚbody onloadʱÊÇ·ñ¼ÓÔØÍê±Ï£º

<html>
<head>
<script type="text/javascript">
function alertComplete()
{
alert(document.getElementById("compman").complete)
}
</script>
</head>

<body onload="alertComplete()">
<img id="compman" src="compman.gif" alt="Computerman"
width="107" height="98" />
</body>
</html>


Try-It-Yourself Demos
³¢ÊÔÓëÑÝʾ

Check if the image is finished loaded
¼ì²éͼƬÊÇ·ñ¼ÓÔØÍê±Ï

ÆÀÂÛ (0) All