以前收藏的代码 -自动判断分辨率后跳转的JS

[ 2005-06-14 03:32:54 | 作者: Admin ] 字号: | |
<script language="JavaScript">
var url800x600="800.htm";
var url1024x768="1024.htm";
if ((screen.width == 800) && (screen.height == 600))
window.location.href=url800x600;
else if ((screen.width == 1024) && (screen.height == 768))
window.location.href=url1024x768;
else
window.location.href=url1024x768;
</script>
Share
评论Feed 评论Feed: http://www.85815.com/feed.asp?q=comment&id=304
UTF-8 Encoding 引用链接: http://www.85815.com/trackback.asp?id=304&key=
这篇日志没有评论.
发表
表情图标
[smile] [confused] [cool] [cry]
[eek] [angry] [wink] [sweat]
[lol] [stun] [razz] [redface]
[rolleyes] [sad] [yes] [no]
[heart] [star] [music] [idea]
UBB代码
转换链接
表情图标
悄悄话
用户名:   密码:   注册?
验证码 * 请输入验证码