FLASH游戏 | 站长工具 | 技术学院 忙鱼网 怕笑网 
积木网
浏览器 | 鼠标 | 状态栏 | 脚本 | 综合 | CSS | applet | 页面导航 | 页面背景 | 按钮特效 | 代码生成类 | 文字 | 时间日期 | 图形图象 | 网页
推荐: PHP5中文在线手册 | Smarty中文手册(模板引擎) | css2样式表中文手册 | ASP开发手册 | JScript开发手册
积木网 >> 特效代码 >> 脚本

进入页面时,系统会根据你所使用的浏览分辨率进行应的导航

来源:互联摘选 日期:2002年02月01日 21:56:15
有什么问题请到<a href='/bbs/forums.php?fid=21'>论坛</a>中发表<br> <!--# 特效来源:http://www.webjx.com/js --> <!-- 把如下代码加入<body>区域中 --> <table width=300 border=1 bordercolor=#000000> <tr> <td> 现在的电脑性能越来越好,好多人已经开始使用1024*768分辨率了,但是经常发生网页浏览不正常的情况,这个脚本可根据分辨率自动进行导航,在特定场合是非常有用的,你好好看看吧!!! <script language="JavaScript1.2"> function ScreenGoToURL(Big,Medium) { var screen_height = screen.height; var screen_width = screen.width; var buffer = (document.all || document.layers ||documentGetElementByID) ? 30 : 48; if (screen_height >= 768) { screen_width = 1024; screen_height = 768; var window_width = 1024-12; var window_height = 768-buffer; var window_top = 0; var window_left = 0; window.open(Big,'','resizable=no,status=yes,width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + ''); } else { screen_width = 800; screen_height = 600; var window_width = 800-12; var window_height = 600-buffer; var window_top = 0; var window_left = 0; window.open(Medium,'','resizable=no,status=yes,width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + ''); } } </script> <BODY onLoad="ScreenGoToURL('1024x768.html','800x600.html')"> </td> </tr> </table>
被阅读 0 次 本文现有评论 0
打印】 【收藏此页】 【关闭

强烈推荐

热门知识

最新文章

合作伙伴:网乐宽频 | 北京画廊
站长 服务邮箱:GimooHr(#)Gmail.Com 站长交流群:6412338 联系站长QQ号:36147437
Copyright © 2008 Gimoo.NetInc. all rights reserved 京ICP备05050695号