相思资源网 Design By www.200059.com
复制代码 代码如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
</head>
<body>
<script type="text/javascript">
function browserinfo() {
var Browser_Name = navigator.appName;
var Browser_Version = parseFloat(navigator.appVersion);
var Browser_Agent = navigator.userAgent;
var Actual_Version, Actual_Name;
var is_IE = (Browser_Name == "Microsoft Internet Explorer"); //判读是否为ie浏览器
var is_NN = (Browser_Name == "Netscape"); //判断是否为netscape浏览器
var is_op = (Browser_Name == "Opera"); //判断是否为Opera浏览器
if (is_NN) {
//upper 5.0 need to be process,lower 5.0 return directly
if (Browser_Version >= 5.0) {
if (Browser_Agent.indexOf("Netscape") != -1) {
var Split_Sign = Browser_Agent.lastIndexOf("/");
var Version = Browser_Agent.lastIndexOf(" ");
var Bname = Browser_Agent.substring(0, Split_Sign);
var Split_sign2 = Bname.lastIndexOf(" ");
Actual_Version = Browser_Agent.substring(Split_Sign + 1, Browser_Agent.length);
Actual_Name = Bname.substring(Split_sign2 + 1, Bname.length);
}
if (Browser_Agent.indexOf("Firefox") != -1) {
var Split_Sign = Browser_Agent.lastIndexOf("/");
var Version = Browser_Agent.lastIndexOf(" ");
Actual_Version = Browser_Agent.substring(Split_Sign + 1, Browser_Agent.length);
Actual_Name = Browser_Agent.substring(Version + 1, Split_Sign);
}
if (Browser_Agent.indexOf("Safari") != -1) {
if (Browser_Agent.indexOf("Chrome") != -1) {
var Split_Sign = Browser_Agent.lastIndexOf(" ");
var Version = Browser_Agent.substring(0, Split_Sign); ;
var Split_Sign2 = Version.lastIndexOf("/");
var Bname = Version.lastIndexOf(" ");
Actual_Version = Version.substring(Split_Sign2 + 1, Version.length);
Actual_Name = Version.substring(Bname + 1, Split_Sign2);
}
else {
var Split_Sign = Browser_Agent.lastIndexOf("/");
var Version = Browser_Agent.substring(0, Split_Sign); ;
var Split_Sign2 = Version.lastIndexOf("/");
var Bname = Browser_Agent.lastIndexOf(" ");
Actual_Version = Browser_Agent.substring(Split_Sign2 + 1, Bname);
Actual_Name = Browser_Agent.substring(Bname + 1, Split_Sign);
}
}
}
else {
Actual_Version = Browser_Version;
Actual_Name = Browser_Name;
}
}
else if (is_IE) {
var Version_Start = Browser_Agent.indexOf("MSIE");
var Version_End = Browser_Agent.indexOf(";", Version_Start);
Actual_Version = Browser_Agent.substring(Version_Start + 5, Version_End)
Actual_Name = Browser_Name;
if (Browser_Agent.indexOf("Maxthon") != -1 || Browser_Agent.indexOf("MAXTHON") != -1) {
var mv = Browser_Agent.lastIndexOf(" ");
var mv1 = Browser_Agent.substring(mv, Browser_Agent.length - 1);
mv1 = "遨游版本:" + mv1;
Actual_Name += "(Maxthon)";
Actual_Version += mv1;
}
}
else if (Browser_Agent.indexOf("Opera") != -1) {
Actual_Name = "Opera";
var tempstart = Browser_Agent.indexOf("Opera");
var tempend = Browser_Agent.length;
Actual_Version = Browser_Version;
}
else {
Actual_Name = "Unknown Navigator"
Actual_Version = "Unknown Version"
}
/*------------------------------------------------------------------------------
--Your Can Create new properties of navigator(Acutal_Name and Actual_Version) --
--Userage: --
--1,Call This Function. --
--2,use the property Like This:navigator.Actual_Name/navigator.Actual_Version;--
------------------------------------------------------------------------------*/
navigator.Actual_Name = Actual_Name;
navigator.Actual_Version = Actual_Version;
/*---------------------------------------------------------------------------
--Or Made this a Class. --
--Userage: --
--1,Create a instance of this object like this:var browser=new browserinfo;--
--2,user this instance:browser.Version/browser.Name; --
---------------------------------------------------------------------------*/
this.Name = Actual_Name;
this.Version = Actual_Version;
}
browserinfo();
// document.write("你使用的浏览器是:"+navigator.userAgent);
//document.write("<br>");
// document.write("你使用的浏览器是:"+navigator.Actual_Name+",版本号:"+navigator.Actual_Version);
function closewin() {
var type = "";
var ua = navigator.userAgent;
if (ua.indexOf("MSIE") >= 0) {
type = "MSIE";
if (navigator.Actual_Version == "7.0") {
type += "7";
}
else if (navigator.Actual_Version == "6.0") {
type += "6";
}
}
else if (ua.indexOf("Firefox") >= 0) {
type = "FF";
}
if (type == "MSIE6") {
window.opener = null;
window.close();
}
else if (type == "MSIE7") {
window.open('', '_top');
window.top.close();
}
else if (type == "FF") {
window.open('', '_parent', '');
window.close();
}
}
window.onload = function() {
closewin();
}
</script>
<input type="button" value="没有提示关闭" onclick="closewin()" />
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
</head>
<body>
<script type="text/javascript">
function browserinfo() {
var Browser_Name = navigator.appName;
var Browser_Version = parseFloat(navigator.appVersion);
var Browser_Agent = navigator.userAgent;
var Actual_Version, Actual_Name;
var is_IE = (Browser_Name == "Microsoft Internet Explorer"); //判读是否为ie浏览器
var is_NN = (Browser_Name == "Netscape"); //判断是否为netscape浏览器
var is_op = (Browser_Name == "Opera"); //判断是否为Opera浏览器
if (is_NN) {
//upper 5.0 need to be process,lower 5.0 return directly
if (Browser_Version >= 5.0) {
if (Browser_Agent.indexOf("Netscape") != -1) {
var Split_Sign = Browser_Agent.lastIndexOf("/");
var Version = Browser_Agent.lastIndexOf(" ");
var Bname = Browser_Agent.substring(0, Split_Sign);
var Split_sign2 = Bname.lastIndexOf(" ");
Actual_Version = Browser_Agent.substring(Split_Sign + 1, Browser_Agent.length);
Actual_Name = Bname.substring(Split_sign2 + 1, Bname.length);
}
if (Browser_Agent.indexOf("Firefox") != -1) {
var Split_Sign = Browser_Agent.lastIndexOf("/");
var Version = Browser_Agent.lastIndexOf(" ");
Actual_Version = Browser_Agent.substring(Split_Sign + 1, Browser_Agent.length);
Actual_Name = Browser_Agent.substring(Version + 1, Split_Sign);
}
if (Browser_Agent.indexOf("Safari") != -1) {
if (Browser_Agent.indexOf("Chrome") != -1) {
var Split_Sign = Browser_Agent.lastIndexOf(" ");
var Version = Browser_Agent.substring(0, Split_Sign); ;
var Split_Sign2 = Version.lastIndexOf("/");
var Bname = Version.lastIndexOf(" ");
Actual_Version = Version.substring(Split_Sign2 + 1, Version.length);
Actual_Name = Version.substring(Bname + 1, Split_Sign2);
}
else {
var Split_Sign = Browser_Agent.lastIndexOf("/");
var Version = Browser_Agent.substring(0, Split_Sign); ;
var Split_Sign2 = Version.lastIndexOf("/");
var Bname = Browser_Agent.lastIndexOf(" ");
Actual_Version = Browser_Agent.substring(Split_Sign2 + 1, Bname);
Actual_Name = Browser_Agent.substring(Bname + 1, Split_Sign);
}
}
}
else {
Actual_Version = Browser_Version;
Actual_Name = Browser_Name;
}
}
else if (is_IE) {
var Version_Start = Browser_Agent.indexOf("MSIE");
var Version_End = Browser_Agent.indexOf(";", Version_Start);
Actual_Version = Browser_Agent.substring(Version_Start + 5, Version_End)
Actual_Name = Browser_Name;
if (Browser_Agent.indexOf("Maxthon") != -1 || Browser_Agent.indexOf("MAXTHON") != -1) {
var mv = Browser_Agent.lastIndexOf(" ");
var mv1 = Browser_Agent.substring(mv, Browser_Agent.length - 1);
mv1 = "遨游版本:" + mv1;
Actual_Name += "(Maxthon)";
Actual_Version += mv1;
}
}
else if (Browser_Agent.indexOf("Opera") != -1) {
Actual_Name = "Opera";
var tempstart = Browser_Agent.indexOf("Opera");
var tempend = Browser_Agent.length;
Actual_Version = Browser_Version;
}
else {
Actual_Name = "Unknown Navigator"
Actual_Version = "Unknown Version"
}
/*------------------------------------------------------------------------------
--Your Can Create new properties of navigator(Acutal_Name and Actual_Version) --
--Userage: --
--1,Call This Function. --
--2,use the property Like This:navigator.Actual_Name/navigator.Actual_Version;--
------------------------------------------------------------------------------*/
navigator.Actual_Name = Actual_Name;
navigator.Actual_Version = Actual_Version;
/*---------------------------------------------------------------------------
--Or Made this a Class. --
--Userage: --
--1,Create a instance of this object like this:var browser=new browserinfo;--
--2,user this instance:browser.Version/browser.Name; --
---------------------------------------------------------------------------*/
this.Name = Actual_Name;
this.Version = Actual_Version;
}
browserinfo();
// document.write("你使用的浏览器是:"+navigator.userAgent);
//document.write("<br>");
// document.write("你使用的浏览器是:"+navigator.Actual_Name+",版本号:"+navigator.Actual_Version);
function closewin() {
var type = "";
var ua = navigator.userAgent;
if (ua.indexOf("MSIE") >= 0) {
type = "MSIE";
if (navigator.Actual_Version == "7.0") {
type += "7";
}
else if (navigator.Actual_Version == "6.0") {
type += "6";
}
}
else if (ua.indexOf("Firefox") >= 0) {
type = "FF";
}
if (type == "MSIE6") {
window.opener = null;
window.close();
}
else if (type == "MSIE7") {
window.open('', '_top');
window.top.close();
}
else if (type == "FF") {
window.open('', '_parent', '');
window.close();
}
}
window.onload = function() {
closewin();
}
</script>
<input type="button" value="没有提示关闭" onclick="closewin()" />
</body>
</html>
标签:
浏览器,无提示关闭
相思资源网 Design By www.200059.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
相思资源网 Design By www.200059.com
暂无遨游,飞飞,IE,空中网 浏览器无提示关闭方法的评论...
稳了!魔兽国服回归的3条重磅消息!官宣时间再确认!
昨天有一位朋友在大神群里分享,自己亚服账号被封号之后居然弹出了国服的封号信息对话框。
这里面让他访问的是一个国服的战网网址,com.cn和后面的zh都非常明白地表明这就是国服战网。
而他在复制这个网址并且进行登录之后,确实是网易的网址,也就是我们熟悉的停服之后国服发布的暴雪游戏产品运营到期开放退款的说明。这是一件比较奇怪的事情,因为以前都没有出现这样的情况,现在突然提示跳转到国服战网的网址,是不是说明了简体中文客户端已经开始进行更新了呢?