发信人: snowypeng()
整理人: snowypeng(2002-05-23 09:18:36), 站内信件
|
是分辩率吗?,要是分辩率的话可这样做:
这是个适合各种分辩率的判断客户机用哪个网页的JS
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function redirectPage() {
var url640x480 = "index640.asp";
var url800x600 = "index800.asp";
var url1024x768 = "index1024.asp";
if ((screen.width == 800) && (screen.height == 600))
window.location.href= url800x600;
else if ((screen.width == 1024) && (screen.height == 800))
window.location.href= url1024x800;
}
// End -->
</script>
【 在 minewdy (yangyang) 的大作中提到: 】
: 在WIN98/NT 下的IE5中,如何取得客户机的屏幕解析度?
-- snowypeng
ICQ:53255626 OICQ:285081
※ 来源:.月光软件站 http://www.moon-soft.com.[FROM: 202.109.246.73]
|
|