即<img src="http://www.test.com/test.gif">这个图片地址是否存在.如果不存在,隔几秒重新探测此图片,如果地址有效则,提示地址有效 <script language=javascript>function IsExist(url)...{ x = new ActiveXObject("Microsoft.XMLHTTP") x.open("HEAD",url,false) x.send() return x.status==200}alert(IsExist("http://www.test.com/test.gif"))</script><SCRIPT language="javascript">var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");xmlhttp.Open("GET", "http://community.youkuaiyun.com/images/优快云_logo.GIF", false);xmlhttp.Send();alert(xmlhttp.responseText);</SCRIPT><img src="http://www.test.com/test.gif" onerror="alert('该图片不存在!');">