富贵资源网 Design By www.hznty.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.hznty.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
富贵资源网 Design By www.hznty.com
暂无评论...
《魔兽世界》大逃杀!60人新游玩模式《强袭风暴》3月21日上线
暴雪近日发布了《魔兽世界》10.2.6 更新内容,新游玩模式《强袭风暴》即将于3月21 日在亚服上线,届时玩家将前往阿拉希高地展开一场 60 人大逃杀对战。
艾泽拉斯的冒险者已经征服了艾泽拉斯的大地及遥远的彼岸。他们在对抗世界上最致命的敌人时展现出过人的手腕,并且成功阻止终结宇宙等级的威胁。当他们在为即将于《魔兽世界》资料片《地心之战》中来袭的萨拉塔斯势力做战斗准备时,他们还需要在熟悉的阿拉希高地面对一个全新的敌人──那就是彼此。在《巨龙崛起》10.2.6 更新的《强袭风暴》中,玩家将会进入一个全新的海盗主题大逃杀式限时活动,其中包含极高的风险和史诗级的奖励。
《强袭风暴》不是普通的战场,作为一个独立于主游戏之外的活动,玩家可以用大逃杀的风格来体验《魔兽世界》,不分职业、不分装备(除了你在赛局中捡到的),光是技巧和战略的强弱之分就能决定出谁才是能坚持到最后的赢家。本次活动将会开放单人和双人模式,玩家在加入海盗主题的预赛大厅区域前,可以从强袭风暴角色画面新增好友。游玩游戏将可以累计名望轨迹,《巨龙崛起》和《魔兽世界:巫妖王之怒 经典版》的玩家都可以获得奖励。