请问,在B/S中,能不能自动识别用户用的分辨率(是800*600还是1024*768)?

walter8888 2004-01-12 03:35:03
请问,在B/S中,能不能自动识别用户用的分辨率(是800*600还是1024*768)?
这样有些格式我才好做。
谢谢!
...全文
63 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
walter8888 2004-01-15
  • 打赏
  • 举报
回复
多谢chenyg2000(icerain).
YuLimin 2004-01-12
  • 打赏
  • 举报
回复
function ResizeWindows()
{
if(document.layers)
{
width = screen.availWidth - 10;
height = screen.availHeight - 20;
}
else
{
var width = screen.availWidth;
var height = screen.availHeight;
}
self.resizeTo(width,height);
self.moveTo(0,0);
}
csdnjerry 2004-01-12
  • 打赏
  • 举报
回复
都按800的来做,1024的就居中,效果也不错。
用帧来控制。
chenyg2000 2004-01-12
  • 打赏
  • 举报
回复
<script>
if(screen.width=="800"){

location.href = "800.htm";

}
else if(screen.width=="1024"){

location.href = "1024.htm";

}
else{

location.href = "other.htm";

}
</script>

535

社区成员

发帖
与我相关
我的任务
社区描述
企业开发 Exchange Server
社区管理员
  • 消息协作社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧