作者:蕾仔 出处:未知加入时间:2005-11-23 11:45:50
其实很简单..
例如目录下有 index.html,800X600.htm,1024X768.htm,1152X864.htm
index.html 代码如下
-------------------------------------------------------------------------------
<script language="JavaScript">
<!--
{
if ((screen.width == 800) && (screen.height == 600))
location.href=' 800X600.htm '
else if ((screen.width == 1024) && (screen.height == 768))
location.href=' 1024X768.htm '
else if ((screen.width == 1152) && (screen.height == 864))
location.href=' 1152X864.htm '
}
// -->
</script>
-------------------------------------------------------------------------------
这样它就会到不同分辨率的显示器,而打开不同的网页了