Click on another trigger business pass

Source: Internet
Author: User

<script>
$ (document). Ready (function () {
$ ("a"). Click (function () {
$ (this). attr (' href ', ' javascript:void (0) ');
GETSWT (' Gzbdfyjy ');
return false;
});
});
</script>


Global header JS, load to project all pages
var publicfloat= ' <script language= ' javascript ' src= ' http://image.gzbdfyjy.com/js/float.js ' ></script> ' ;
document.write (publicfloat);

JQ Load Detection
if (typeof (jquery) = = "undefined" | | typeof (jquery) = = "" | | typeof (jquery) ==null) {
document.write (' <script src= ' http://image.gzbdfyjy.com/js/jquery-1.11.3.min.js ' ><\/script> ');
(function () {
var JQ = document.createelement ("script");
JQ.SRC = "Http://image.gzbdfyjy.com/js/jquery-1.11.3.min.js";
var sj = document.getelementsbytagname ("script") [0];
Sj.parentNode.insertBefore (JQ, SJ);
})();
}

Browser identity
var browser={
Versions:function () {
var u = navigator.useragent, app = Navigator.appversion;
return {
Trident:u.indexof (' Trident ') >-1,//ie core
Presto:u.indexof (' presto ') >-1,//opera core
Webkit:u.indexof (' AppleWebKit ') >-1,//Apple, Google kernel
Gecko:u.indexof (' Gecko ') >-1 && u.indexof (' khtml ') = = -1,//Firefox kernel
Mobile:!! U.match (/applewebkit.*mobile.*/),//Whether it is a mobile terminal
Ios:!! U.match (/\ (i[^;] +;( U;)? Cpu.+mac OS x/),//ios terminal
Android:u.indexof (' Android ') >-1 | | U.indexof (' Linux ') >-1,//android terminal or UC Browser
Iphone:u.indexof (' iphone ') >-1,//whether for iphone or Qqhd browser
Ipad:u.indexof (' ipad ') >-1,//whether ipad
Webapp:u.indexof (' Safari ') = =-1//whether the Web should be program, no head with bottom
};
}(),
Language: (Navigator.browserlanguage | | navigator.language). toLowerCase ()
}


function Replacebody () {
if (!browser.versions.mobile &&!browser.versions.ipad) {
Document.writeln ("<frameset cols=\" 100%\ ">");
Document.writeln ("<frame src=\" http://public.gzbdfyjy.com/index.html\ "frameborder=\ ' 0\ ' marginwidth=\ ' 0px\ ' Scrolling=\ ' yes\ '/> ");
Document.writeln ("</frameset>");
}else{
Window.location.href= "http://image.gzbdfyjy.com/recopy_yd/";
/*document.writeln ("<frameset cols=\" 100%\ ">");
Document.writeln ("<frame src=\" http://image.gzbdfyjy.com/recopy_yd/index.html\ "frameborder=\ ' 0\ ' marginwidth= \ ' 0px\ ' scrolling=\ ' yes\ '/> ");
Document.writeln ("</frameset>"); */
}
}

Review page
SetTimeout (function () {
var domain = Document.domain;
if (Domain! = ' image.gzbdfyjy.com ' && domain! = ' mobile.gzbdfyjy.com ' && domain! = ' public.gzbdfyjy.com ') {
if (typeof jQuery = = ' undefined ') {
Replacebody ();
}else{
Jquery.getscript (' http://pv.sohu.com/cityjson?ie=gb2312 ', function () {
Console.log (returncitysn["CIP"]);
2016.5.16 Annotated if (returncitysn["CIP"]!= ' 60.194.2.178 ') {
Replacebody ();
//}
});
}
}
},100);

New Baidu Statistics
Document.writeln (' <script type= ' Application/javascript "src=" http://image.gzbdfyjy.com/js/new_public_baidu.js "Charset=" GBK "></script>");
Render with the highest version of IE
Document.writeln ("<meta http-equiv=\" x-ua-compatible\ "content =\" ie=edge,chrome=1\ "/>");

Click on another trigger business pass

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.