如何检测浏览者机子的分辨率,请高手赐教! 只能检测分辨率,不能做到自动更改浏览者机子的分辨率<script>alert("您电脑的分辨率是"+screen.width+"*"+screen.height);</script>你可以根据分辨率而让页面自动转向到不同的页面 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 对,就是用js脚本<script language="Javascript">{ var YSize = screen.availHeight; var XSize = screen.availWidth ; if (XSize == 1024){ document.write("你是1024的分辨率<p> </p><p> </p>"); }}</script> <script LANGUAGE="JavaScript"><!-- Beginvar url800x600 = "index800.asp";var url1024x768 = "index1024.asp";if ((screen.width == 800) && (screen.height == 600))top.location.href= url800x600;else if ((screen.width == 1024) && (screen.height == 768))top.location.href= url1024x768;else top.location.href= url800x600;// End --></script> 急求 windows server 2003 上面同时运行ASP 与PHP? [发布]代码辅助工具,将文件批量从x(gb2312,big5,euc....utf-8...)编码转到x(gb2312,big5,euc....utf-8...)编码。 为什么我的phpwind全都是乱码 关于undefined index,undefined variable等的疑问 请问有没有带用户认证的PHPMyAdmin? 一个php中使用session的问题 非常遗憾1地告诉大家,在6个月内所有的WEB程序员将失业 关于微网站的疑问 php 的二维数组 求一sql语句。。 怎么在linux下配好php?
{ var YSize = screen.availHeight;
var XSize = screen.availWidth ;
if (XSize == 1024){
document.write("你是1024的分辨率<p> </p><p> </p>");
}
}
</script>
<!-- Begin
var url800x600 = "index800.asp";
var url1024x768 = "index1024.asp";
if ((screen.width == 800) && (screen.height == 600))
top.location.href= url800x600;
else if ((screen.width == 1024) && (screen.height == 768))
top.location.href= url1024x768;
else top.location.href= url800x600;// End -->
</script>