无法加载图片信息处理

<IMG src="http://www.72color.com/themes/garland/style/garland/logo.png" onerror="javascript:this.src='http://www.163.com/images/neteaselogo.gif'">

<img alt="" src="logso.png" />
<img alt="" src="logso.png" />
<img alt="" src="logso.png" />
<img alt="" src="logso.png" />
<img alt="" src="logso.png" />
<img alt="" src="http://dysns.com/uploads/ads/0707021011243369.jpg" />

<img alt="" src="logso.png" />
<script type="text/javascript">
function imgerror(){
var imgx=document.getElementsByTagName("img");
for (var i=0;i<imgx.length;i++){
imgx[i].onerror
=function() {this.src='http://www.163.com/images/neteaselogo.gif';};
}
}
imgerror();
</script> 


posted @ 2010-10-14 15:08  DODUI  阅读(213)  评论(0编辑  收藏  举报