·用户注册
·用户登陆
·用户中心
首页
+
网络学院
+
网页特效
+
实用工具
+
网络资源
+
字体下载
+
娱乐世界
+
时尚前沿
+
图片中心
+
动漫天地
+
金石社区
图形
-
网页设计
-
优化
-
动易
-
动网
-
HTML
-
PSD
-
FLASH模板
-
插件
-
杀毒
-
系统工具
-
FLASH音乐
-
FLASH游戏
-
美女
您现在的位置:
金石网
>>
网页特效
>>
代码生成
>> 特效正文
浏览器检测脚本生成器
『 更新时间:2002-9-15 』『 字体:
变小
变大
』『 作者:未知 | 来源:网络 』
把如下代码加入<body>区域中: 把如下代码加入<body>区域中: <script> function go(){ document.forms[1].scriptfield.value="<script>\n//BrowserCheck浏览器检测脚本生成器\n//Steven http://www.kingsnet.biz\n" document.forms[1].scriptfield.value=document.forms[1].scriptfield.value+"if ("+document.forms[0].version.value+"<=parseFloat(navigator.appVersion)){if (navigator.appName.indexOf('"+document.forms[0].browser.options[document.forms[0].browser.selectedIndex].value+"')!=-1){if (4<=parseFloat(navigator.appVersion)){if ("+document.forms[0].width.value+"<=screen.width){if ("+document.forms[0].height.value+"<=screen.height){if ("+document.forms[0].depth.value+"<=screen.colorDepth){}else{error()}}else{error()}}else{error()}}}else{error()}}else{error()}" if (document.forms[0].em.options[document.forms[0].em.selectedIndex].value=="popup"){ // document.forms[1].scriptfield.value=document.forms[1].scriptfield.value+'window.alert("本站推荐使用 '+document.forms[0].browser.options[document.forms[0].browser.selectedIndex].value+"版本"+document.forms[0].version.value+'以上。最佳分辨率 '+document.forms[0].width.value+'x'+document.forms[0].height.value+' pix. '+document.forms[0].depth.value+' 位色。您现在使用 "+navigator.appName+" "+navigator.appVersion+",您的显示器属性和颜色数无法检测。")}' document.forms[1].scriptfield.value=document.forms[1].scriptfield.value+'function error(){if(parseFloat(navigator.appVersion)<4.00){window.alert("本站推荐使用 '+document.forms[0].browser.options[document.forms[0].browser.selectedIndex].value+" "+document.forms[0].version.value+'以上。最佳分辨率 '+document.forms[0].width.value+'x'+document.forms[0].height.value+' pix.'+document.forms[0].depth.value+'位色。您现在使用 "+navigator.appName+" "+navigator.appVersion+",您的显示器属性和颜色数无法检测。")}else{window.alert("本站推荐使用 '+document.forms[0].browser.options[document.forms[0].browser.selectedIndex].value+" "+document.forms[0].version.value+'以上。最佳分辨率 '+document.forms[0].width.value+'x'+document.forms[0].height.value+' pix. '+document.forms[0].depth.value+' 位色。您现在使用 "+navigator.appName+" "+navigator.appVersion+", 分辨率"+screen.width+"x"+screen.height+" and "+screen.colorDepth+" 位色")}}\n</sc'+'ript>'} else{ // document.forms[1].scriptfield.value=document.forms[1].scriptfield.value+'document.write("本站推荐使用 '+document.forms[0].browser.options[document.forms[0].browser.selectedIndex].value+" "+document.forms[0].version.value+'以上。最佳分辨率'+document.forms[0].width.value+'x'+document.forms[0].height.value+' pix.'+document.forms[0].depth.value+' 位色。您现在使用 "+navigator.appName+" "+navigator.appVersion+",您的显示器属性和颜色数无法检测。")}else{error()}}' // document.forms[1].scriptfield.value=document.forms[1].scriptfield.value+'function error(){document.write("本站推荐使用 '+document.forms[0].browser.options[document.forms[0].browser.selectedIndex].value+" "+document.forms[0].version.value+'以上。最佳分辨率'+document.forms[0].width.value+'x'+document.forms[0].height.value+' pix. '+document.forms[0].depth.value+' 位色。您现在使用 "+navigator.appName+" "+navigator.appVersion+", 分辨率"+screen.width+"x"+screen.height+" and "+screen.colorDepth+" 位色")}\n</sc'+'ript>'} document.forms[1].scriptfield.value=document.forms[1].scriptfield.value+'function error(){if(parseFloat(navigator.appVersion)<4.00){document.write("本站推荐使用 '+document.forms[0].browser.options[document.forms[0].browser.selectedIndex].value+" "+document.forms[0].version.value+' 以上。最佳分辨率'+document.forms[0].width.value+'x'+document.forms[0].height.value+' pix. '+document.forms[0].depth.value+' 位色。您现在使用 "+navigator.appName+" "+navigator.appVersion+",您的显示器属性和颜色数无法检测。")}else{document.write("本站推荐使用 '+document.forms[0].browser.options[document.forms[0].browser.selectedIndex].value+" "+document.forms[0].version.value+' or higher, 分辨率'+document.forms[0].width.value+'x'+document.forms[0].height.value+' pix. '+document.forms[0].depth.value+' 位色。您现在使用 "+navigator.appName+" "+navigator.appVersion+", 分辨率"+screen.width+"x"+screen.height+" and "+screen.colorDepth+" 位色")}}\n</sc'+'ript>'} } // )} </script> <table border="0" width="100" bgcolor="#9BADB8"> <tr> <td style="border-left: 5px groove; border-right: 5 groove; border-top:5 groove; border-bottom: 5 groove" align="center" height="646"> <form method="POST"> <table border="0" width="443"> <tr> <td width="123" align="right"><font color="#000000" face="Arial"><strong><br> Browser</strong></font></td> <td width="310" align="left" valign="bottom"><font color="#000000" face="Arial"><br> <select name="browser" size="1" style="font-family: MS Sans Serif, Arial"> <option value="Microsoft Internet Explorer" selected>Microsoft Internet Explorer</option> <option value="Netscape">Netscape Navigator</option> </select> </font></td> </tr> <tr> <td width="123" align="right"><font color="#000000" face="Arial"><strong>Browser version</strong></font></td> <td width="310" align="left"><font face="Arial"> <input type="text" name="version" size="5" value="4.0"></font></td> </tr> <tr> <td width="123" align="right"><font color="#000000" face="Arial"><strong>Screen width</strong></font></td> <td width="310" align="left"><font color="#000000" face="Arial"> <input type="text" name="width" size="5" value="800"> pixels</font></td> </tr> <tr> <td width="123" align="right"><font color="#000000" face="Arial"><strong>Screen height</strong></font></td> <td width="310" align="left"><font color="#000000" face="Arial"> <input type="text" name="height" size="5" value="600"> pixels</font></td> </tr> <tr> <td width="123" align="right" valign="top"><font color="#000000" face="Arial"><strong>Screen depth</strong></font></td> <td width="310" align="left"><font color="#000000" face="Arial"> <input type="text" name="depth" size="5" value="32"> bit <br> <small><small>(32 bit colors 32 bit, for 16 bit colors 16 bit, for 256 colors 8 bit and for 16 colors 4 bit)</small></small></font></td> </tr> <tr> <td width="123" align="right"><font color="#000000" face="Arial">代码生成方式</font></td> <td width="310" align="left"> <font color="#000000" face="Arial"> <select name="em" size="1" class="pt9"> <option value="popup">Alert pop-up message</option> <option value="doc">Display error line in document</option> </select> </font></td> </tr> <tr> <td width="123" align="right"><font face="Arial"></font></td> <td width="310" align="left"><font color="#000000" face="Arial"> <input type="button" value="生成代码" name="make" onClick="go()" class="pt9"> </font></td> </tr> </table> </form> <form method="POST"> <table border="0" width="431"> <tr valign="top"> <td width="425" height="363"> 将如下代码加入HTML的<HEAD> 区: <div align="center"> <center> <p><font color="#000000"> <input type="button" value="选择代码" name="selectbutton" onClick="document.forms[1].scriptfield.focus();document.forms[1].scriptfield.select()" class="pt9"> <br> <textarea rows="15" name="scriptfield" cols="60" class="pt9" wrap="VIRTUAL"></textarea> </td> </tr> </talbe> </td> </tr> </table>
【点击数:】【
发表评论
】【
加入收藏
】【
告诉好友
】【
打印此文
】【
关闭窗口
】
相
关文章
您的姓名:
评分等级:
1分
2分
3分
4分
5分
评论内容:
1、严禁发表危害国家安全、政治、黄色淫秽等内容的评论。
2、用户需对自己在使用金石网服务过程中的行为承担法律责任。
3、本站管理员有权保留或删除评论内容。
4、评论内容只代表网友个人观点,与本网站立场无关。
检测浏览器去过站点
浏览器检测生成器
网
友评论
|
设为首页
|
加入收藏
|
联系我们
|
版权申明
|
友情链接
|
站点地图
|
网站帮助
|
网站留言
|
广告服务
|
Copyright © 2001-2008
K
ings
N
et.biz All Rights Reserved. 金石工作室 版权所有