这句话可以放在if()里面吗?即 if(onload Fires immediately after the browser loads the <IMG>. ) {}
…… 在Image元素的onload的事件中处理。
if it is loaded, its readyState will be "complete":<img src="http://www.csdn.net/images/ad/dby2001_468_60.gif" onreadystatechange="checkstate()"><script> function checkstate() { alert(event.srcElement.tagName + ":" + event.srcElement.readyState); }</script>
if(onload Fires immediately after the browser loads the <IMG>. ) {}
在Image元素的onload的事件中处理。
function checkstate()
{
alert(event.srcElement.tagName + ":" + event.srcElement.readyState);
}</script>