小语教师验证| 初语教师验证|扬州教师验证|快速获积分| 宣传获积分 微信宣传得积分| 积分换VIP |积分来源
唐老师网站
唐老师网站提供免费义务教育阶段语文教学资源库服务。有希望合作者,请联系我们。 合作内容:1.资源共同开发、宣传、使用。2.网络与语文教学结合技术支持。3.宣传推荐学校、机构、个人及产品。4.为本站用户提供免费产品或服务。5.其他合作内容。

TOP

浏览器检测代码
2013-07-29 13:48:33 来源:唐老师网站 作者: 【 】 浏览:3488次 吐槽:0
最近浏览过的会员: (查看更多)


<script language="java script">
<!--
function createcodes(entry)
{
line="<script>version=parseInt(navigator.appVersion); browser='OTHER'; if (navigator.appName=='Netscape'){browser='NS'+version;} if (navigator.appName=='Microsoft Internet Explorer'){browser='MSIE'+version;} if (navigator.appVersion.indexOf('MSIE 3')>0) {browser='MSIE3';}";
with (document.detectform)
{
 if (MSIE3.value!="") {line=line+"if (browser=='MSIE3') {window.location='"+MSIE3.value+"'}";}
 if (MSIE4.value!="") {line=line+"if (browser=='MSIE4') {window.location='"+MSIE4.value+"'}";}
 if (MSIE5.value!="") {line=line+"if (browser=='MSIE5') {window.location='"+MSIE5.value+"'}";}
 if (NS3.value!="") {line=line+"if (browser=='NS3') {window.location='"+NS3.value+"'}";}
 if (NS4.value!="") {line=line+"if (browser=='NS4') {window.location='"+NS4.value+"'}";}
 if (NS5.value!="") {line=line+"if (browser=='NS5') {window.location='"+NS5.value+"'}";}
 if (OTHER.value!="") {line=line+"if (browser=='OTHER') {window.location='"+OTHER.value+"'}";}

}
line=line+"</script>"

entry.code.value=line;
}
//-->
</script>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0" align="CENTER" valign="TOP">
  <tr>
    <td colspan=3 bgcolor="#6C6C6C"></td>
  </tr>
  <tr>
    <td height="3"></td>
    <TABLE align="CENTER">
      <tr>
        <td>
          <form name="detectform">
            <table align="center">
              <tr>
                <td></td>
                <td>
                  <div align="center">
                    <center>
                      <table border="1" width="100%">
                        <tr>
                          <td bgcolor="#CCCCDD" colspan="2"  width="100%">
                            <p>请输入各项连接
                          </td>
                        </tr>
                        <tr align="center">
                          <td bgcolor="#FFFFFF" colspan=2 align=left> </td>
                        </tr>
                        <tr align="center">
                          <td bgcolor="#EEEEFF" colspan="">BROWSER</td>
                          <td bgcolor="#EEEEFF" colspan="">PAGE-URL</td>
                        </tr>
                        <tr align="center">
                          <td bgcolor="#E4E4E4" colspan=""><font color="#000000" size="2"> MSIE
                            3 </font></td>
                          <td bgcolor="#E4E4E4" colspan="">
                            <input type="text" name="MSIE3" size="25" value="http://www.yahoo.com">
                          </td>
                        </tr>
                        <tr align="center">
                          <td bgcolor="#E4E4E4" colspan=""><font color="#000000" size="2"> MSIE
                            4 </font></td>
                          <td bgcolor="#E4E4E4" colspan="">
                            <input type="text" name="MSIE4" size="25" value="http://www.yahoo.com">
                          </td>
                        </tr>
                        <tr align="center">
                          <td bgcolor="#E4E4E4" colspan=""><font color="#000000" size="2"> MSIE
                            5 </font></td>
                          <td bgcolor="#E4E4E4" colspan="">
                            <input type="text" name="MSIE5" size="25" value="http://www.yahoo.com">
                          </td>
                        </tr>
                        <tr align="center">
                          <td bgcolor="#E4E4E4" colspan=""><font color="#000000" size="2">NETSCAPE
                            3</font></td>
                          <td bgcolor="#E4E4E4" colspan="">
                            <input type="text" name="NS3" size="25" value="http://www.yahoo.com">
                          </td>
                        </tr>
                        <tr align="center">
                          <td bgcolor="#E4E4E4" colspan=""><font color="#000000" size="2">NETSCAPE
                            4</font></td>
                          <td bgcolor="#E4E4E4" colspan="">
                            <input type="text" name="NS4" size="25" value="http://www.yahoo.com">
                          </td>
                        </tr>
                        <tr align="center">
                          <td bgcolor="#E4E4E4" colspan=""><font color="#000000" size="2">NETSCAPE
                            5</font></td>
                          <td bgcolor="#E4E4E4" colspan="">
                            <input type="text" name="NS5" size="25" value="http://www.yahoo.com">
                          </td>
                        </tr>
                        <tr align="center">
                          <td bgcolor="#E4E4E4" colspan=""><font color="#000000" size="2">OTHER
                            BROWSERS</font></td>
                          <td bgcolor="#E4E4E4" colspan="">
                            <input type="text" name="OTHER" size="25" value="http://www.yahoo.com">
                          </td>
                        </tr>
                        <tr align="center">
                          <td colspan="2" bgcolor="#C0C0C0" align="left">
                           
                              <input
              type="button" value="代码生成" name="B1" onClick="createcodes(this.form)" class="pt9">
                              <br>
                              <input type="reset" value="清除重选" name="B2" class="pt9">
                          </td>
                        </tr>
                      </table>
                    </center>
                  </div>
                </td>
                <td></td>
              </tr>
            </table>
          
            <table align="center">
              <tr>
                <td>
                  <table border="1" align="center">
                    <tr>
                      <td bgcolor="#CCCCDD" colspan="2">
                        <p>生成的代码如下:
                      </td>
                    </tr>
                   
                    <tr>
                    <tr>
                      <td bgcolor="#EEEEFF">
                        <div align="center">
                          <center>
                            <p>拷贝如下代码</p>
                          </center>
                        </div>
                      </td>
                    </tr>
                    <tr>
                      <td bgcolor="#EEEEEE">
                        <div align="center">
                          <center>
                            <p>
                              <textarea name="code" cols="45" rows="20" wrap="PHYSICAL" class="pt9">选择上面的项目生成代码

相关搜索
中搜索:浏览器检测代码
中搜索:浏览器检测代码
中搜索:浏览器检测代码
34
Tags:浏览器 检测 代码 分享网友:admin
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【吐槽】 【关闭】 【返回顶部
分享到QQ空间
分享到: 
上一篇你的检测值 下一篇离开网页进入主页 代码

坚持党对教育事业的全面领导,坚持把立德树人作为根本任务,坚持优先发展教育事业.

相关栏目

最新文章

内容加载中,请稍候...

图片主题

内容加载中,请稍候...

热门文章

内容加载中,请稍候...

推荐文章

内容加载中,请稍候...

相关文章

内容加载中,请稍候...

贡献者排行榜(感谢“唐老师们”)

您正在浏览:浏览器检测代码 需要更多请站内搜索,还是没有请免费向我们索取。
唐老师网站**********************一线语文教师互动分享***************部编版统编语文
关于本站 ----广告服务---版权申明---联系我们---网站地图 --
本网大部分资源来源于会员上传,除本网组织的资源外,版权归原作者所有,如有侵犯版权,请立刻和本网联系并提供证据,本网将在三个工作日内改正。
Copyright © 2009 - 2013 520yuwen. All Rights Reserved 工信部备案苏ICP备05032846-1号
站长:唐桂荣

苏公网安备 32100302010062号

本站与www.yz110.com同为“唐老师网站”旗下网站。