document.write("
"); document.write("
"); document.write(""); document.write("
"); document.write("
"); document.write("
"); // initFloatTips(); !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?a(require("jquery")):a(jQuery)}(function(a){function b(a){return h.raw?a:encodeURIComponent(a)}function c(a){return h.raw?a:decodeURIComponent(a)}function d(a){return b(h.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(g," ")),h.json?JSON.parse(a):a}catch(b){}}function f(b,c){var d=h.raw?b:e(b);return a.isFunction(c)?c(d):d}var g=/\+/g,h=a.cookie=function(e,g,i){if(void 0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e&&e===q){l=f(r,g);break}e||void 0===(r=f(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}}); function stops(){ return false; } document.oncontextmenu=stops; //console.log($.cookie('ID')) // 鑾峰彇cook 鐪嬫湁娌℃湁鍊? undefined灏辨槸娌℃湁寮硅繃锛? 寮硅繃鐨勬病鏈変笉鐢ㄨ烦杞櫥褰? var linkWx = ['https://www.sirenji.com/weixin/2020jiazhao/', 'https://www.sirenji.com/weixin/yangfeiji/']; //生成0或1的随机数 var num = Math.random(); console.log(num); //获取1-10之间的随机数 var num = Math.floor(Math.random() * 10) + 1; console.log(num); if(num%2 ==0) { lastlink = linkWx[0] $('.QQbox-link').attr('src','https://www.sirenji.com/images/pc_right_jiazhao.png') } else { lastlink = linkWx[1] $('.QQbox-link').attr('src','https://www.sirenji.com/images/pc_right_yang.png') } $('.close_div2').click(function(){ $('.mask2').hide() $('.open_Tk').hide() }) $('.QQbox-link').click(function(){ window.open(lastlink) }) $('.closeQQ').click(function(){ $('.QQbox').hide() }) function OnlineOver(){ document.getElementById("divMenu").style.display = "none"; document.getElementById("divOnline").style.display = "block"; document.getElementById("divQQbox").style.width = "145px"; } function OnlineOut(){ document.getElementById("divMenu").style.display = "block"; document.getElementById("divOnline").style.display = "none"; } function hideMsgBox(theEvent){ //theEvent用来传入事件,Firefox的方式   if (theEvent){   var browser=navigator.userAgent; //取得浏览器属性   if (browser.indexOf("Firefox")>0){ //如果是Firefox    if (document.getElementById('divOnline').contains(theEvent.relatedTarget)) { //如果是子元素    return; //结束函式 } } if (browser.indexOf("MSIE")>0){ //如果是IE if (document.getElementById('divOnline').contains(event.toElement)) { //如果是子元素 return; //结束函式 } } } /*要执行的操作*/ document.getElementById("divMenu").style.display = "block"; document.getElementById("divOnline").style.display = "none"; }