正文

让图片链接窗口自适应图片大小2006-06-25 12:13:00

【评论】 【打印】 【字体: 】 本文链接:http://blog.pfan.cn/aspcode/16180.html

分享到:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>让图片链接窗口自适应图片大小 - 51windows.Net</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><body><SCRIPT LANGUAGE="JavaScript"><!--function ShowImg(url){var hplus = 30if(window.navigator.userAgent.indexOf("SV1") != -1){ hplus = hplus + 20;} newwin = window.open("about:blank","","width=1,height=1,left=2,top=2") newwin.document.write ('<html><title>显示图片</title><head><meta http-equiv=Content-Type content="text/html; charset=gb2312"></head><body style="border:0px;margin:0px;" onkeydown=if(event.keyCode==27){window.close()}><center><img title="点击关闭窗口" onclick="window.close()" style="cursor:hand;" border="0" src="'+url+'" align="absmiddle" hspace="0" vspace="0" onload="self.resizeTo((this.offsetWidth+10),(this.offsetHeight+'+hplus+'));"></center></body></html>')}//--></SCRIPT><p><img border="0" width="180" src="http://www.51windows.net/51wfolder/2006_5_8/maotryp.jpg" style="cursor:hand;" onClick="ShowImg(this.src);return false;"></p><p><a href="http://www.51windows.net/51windows.404.gif" onClick="ShowImg(this.href);return false;">http://www.51windows.net/51windows.404.gif</a></p><p><a href="http://www.google.cn/intl/zh-CN/images/logo_cn.gif" onClick="ShowImg(this.href);return false;"><img border="0" src="http://www.google.cn/intl/zh-CN/images/logo_cn.gif"></a></p></body></html>

阅读(3217) | 评论(2)


版权声明:编程爱好者网站为此博客服务提供商,如本文牵涉到版权问题,编程爱好者网站不承担相关责任,如有版权问题请直接与本文作者联系解决。谢谢!

评论

loading...
您需要登录后才能评论,请 登录 或者 注册