代码语言
.
CSharp
.
JS
Java
Asp.Net
C
MSSQL
PHP
Css
PLSQL
Python
Shell
EBS
ASP
Perl
ObjC
VB.Net
VBS
MYSQL
GO
Delphi
AS
DB2
Domino
Rails
ActionScript
Scala
代码分类
文件
系统
字符串
数据库
网络相关
图形/GUI
多媒体
算法
游戏
Jquery
Extjs
Android
HTML5
菜单
网页交互
WinForm
控件
企业应用
安全与加密
脚本/批处理
开放平台
其它
【
JS
】
判断是否低于IE6的版本
作者:
CSDN
/ 发布于
2012/1/11
/
926
<div><span style="color: rgb(0,0,255)"><!</span><span style="color: rgb(255,0,255)">DOCTYPE html</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">html</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">head</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">script </span><span style="color: rgb(255,0,0)">src</span><span style="color: rgb(0,0,255)">="http://code.jquery.com/jquery-latest.js"</span><span style="color: rgb(0,0,255)">></</span><span style="color: rgb(128,0,0)">script</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">script</span><span style="color: rgb(0,0,255)">></span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)"> $(</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,255)">function</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">() { </span><span style="background-color: rgb(245,245,245); color: rgb(0,0,255)">if</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)"> (($.browser.msie </span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">&&</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)"> $.browser.version </span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)"><=</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)"> </span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">"</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">6.0</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">"</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">) </span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">||</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)"> </span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">!</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">$.browser.msie) { alert(</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">"</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">invalid browser! it will be shutdown after 5s!</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">"</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">); </span><span style="background-color: rgb(245,245,245); color: rgb(0,0,255)">var</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)"> count </span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">=</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)"> </span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">5</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">; </span><span style="background-color: rgb(245,245,245); color: rgb(0,0,255)">var</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)"> decreasement </span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">=</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)"> </span><span style="background-color: rgb(245,245,245); color: rgb(0,0,255)">function</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">() { </span><span style="background-color: rgb(245,245,245); color: rgb(0,0,255)">if</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)"> (count </span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">></span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)"> </span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">0</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">) { $(</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">"</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">#msg</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">"</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">).html(</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">"</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)"><h1></span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">"</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)"> </span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">+</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)"> count </span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">+</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)"> </span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">"</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)"></h1></span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">"</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">); count </span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">--</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">; setTimeout(decreasement, </span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">1000</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)">); } </span><span style="background-color: rgb(245,245,245); color: rgb(0,0,255)">else</span><span style="background-color: rgb(245,245,245); color: rgb(0,0,0)"> { window.close(); } }; decreasement(); } }); </span><span style="color: rgb(0,0,255)"></</span><span style="color: rgb(128,0,0)">script</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)"></</span><span style="color: rgb(128,0,0)">head</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">body</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)"><</span><span style="color: rgb(128,0,0)">div </span><span style="color: rgb(255,0,0)">id</span><span style="color: rgb(0,0,255)">="msg"</span><span style="color: rgb(0,0,255)">></</span><span style="color: rgb(128,0,0)">div</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)"></</span><span style="color: rgb(128,0,0)">body</span><span style="color: rgb(0,0,255)">></span><span style="color: rgb(0,0,0)"> </span><span style="color: rgb(0,0,255)"></</span><span style="color: rgb(128,0,0)">html</span><span style="color: rgb(0,0,255)">></span></div>
试试其它关键字
是否低于IE6
同语言下
.
Jquery搜索框获取回车事件
.
H5页面添加倒计时,然后自动跳转
.
通过user-agent判断h5页面是在哪个手机App(QQ、微信
.
nginx 禁止未绑定的域名访问
.
JavaScript 获取按键,并屏蔽系统 Window 事件
.
H5之只允许微信浏览器打开,禁止从外部浏览器访问
.
微信打开网址添加在浏览器中打开提示的办法
.
实现JS复制、粘贴,Chrome/Firefox下可用
.
video视频播放,play()、pause()、duration时长、onen
.
HTML5实现MP3上传前的预览和播放时长的获取
可能有用的
.
实现测量程序运行时间及cpu使用时间
.
C#实现的html内容截取
.
List 切割成几份 工具类
.
SQL查询 多列合并成一行用逗号隔开
.
一行一行读取txt的内容
.
C#动态修改文件夹名称(FSO实现,不移动文件)
.
c# 移动文件或文件夹
.
c#图片添加水印
.
Java PDF转换成图片并输出给前台展示
.
网站后台修改图片尺寸代码
CSDN
贡献的其它代码
(
27
)
.
xml操作类
.
完全无组件,不用调用Excel.exe 导出数据到Excel
.
DropDownList手动构造一个下拉树形
.
判断是否低于IE6的版本
.
javascript 鼠标拖拉画图
.
取汉字首字母
.
字符串格式化通用类
.
mssql海量高效分页存储过程
.
.net 获取远程IP 得到省市
.
javascript 模仿windows拖动 封装类
Copyright © 2004 - 2024 dezai.cn. All Rights Reserved
站长博客
粤ICP备13059550号-3