All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
Linux系统下Apache服务器设置与优化_php资料_编程技术
AJAX技术在PHP开发中的简单应用_php资料_编程技术
HTML网页制作基础教程(2):标记的写法_[Html教程]
通过web.config设置数据库连接串_[Asp.Net教程]
C#教程:创建Web服务
Delphi动态按钮的窗体界面
让Apache支持ASP.NET-Apache,ASP.NET_.net资料_编程技术
在C#中使用存储过程_[Asp.Net教程]
ASP.NET,2.0客户端回调的实现分析_[Asp.Net教程]
浅谈当下网页设计趋势_优化技巧_seo学堂
Reading number is top 10 pictures
In 2013 hercules Arnold classic1
2012 national geographic daily picture7
2012 national geographic daily picture9
为什么别人说你是疯子
黑社会大哥相亲
恶搞漫画1
2013中国四川省高考作文
Sora aoi possession of boudoir1
Take you to walk into the most true north Korea rural4
Soldier saw beauty after the reaction
Download software ranking
Unix video tutorial5
Love the forty days
电车之狼R
linux初级教程
WebService在.NET中的实战应用教学视频 → 第5集
艳兽都市
The cock of the Grosvenor LTD handsome
变速齿轮3.26
WebService在.NET中的实战应用教学视频 → 第3集
C#编程思想
归海一刀 published in(发表于) 2014/3/20 5:15:15 Edit(编辑)
判断远程图片是否存在_[XML教程]

判断远程图片是否存在_[XML教程]

判断远程图片是否存在_[XML教程]























收集了几种判断远程图片是否存在的方法




js判断:








判断远程图片是否存在,不存在的话替换成设计家园的logo,代码如下:




onerror="javascript:this.src='/images/logo1.gif'">

asp判断:




<%
url= "/images/logo1.gif"
'on error resume next
Set xmlHttp = Server.CreateObject("Microsoft.XMLHTTP")
xmlHttp.open "get ",url,false
xmlHttp.send
if xmlHttp.Status <> 200 then
response.write "不存在"
else
response.write "存在"
end if
%>




设计家园 收集整理









































添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.