⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adtest.js

📁 这是一个基于ADuC开发的一个LCD液晶屏显示程序
💻 JS
字号:
document.onclick=doDragStartUnionAd;
function doDragStartUnionAd() {
  var thisSrcElement = event.srcElement;
  var thisurl = "";
  var thisSrcElementTd = thisSrcElement;
  while (thisSrcElementTd.thisadSign != "xuedeziUnionAd" && thisSrcElementTd.parentElement !=null) {
    thisSrcElementTd = thisSrcElementTd.parentElement;
  }
    if ((thisSrcElement.tagName == "IMG" && thisSrcElementTd.thisadSign == "xuedeziUnionAd") || (thisSrcElement.tagName == "AREA" && thisSrcElementTd.thisadSign == "xuedeziUnionAd")) {
	 if (thisSrcElement.tagName == "IMG") {
	  thisSrcElement = thisSrcElement.parentElement;
	  thisurl = thisSrcElement.href;
	  thisSrcElement = thisSrcElement.parentElement;
	 }else{
	  thisurl = thisSrcElement.href;
	  thisSrcElement = thisSrcElement.parentElement.parentElement;
	 }
	 if (thisSrcElement.tagName == "TD") {
	   thisadid = thisSrcElement.id;
	   thisuname = thisSrcElement.thisusername;
	 }
	 if (thisurl != "") {
     thisurl = replaceStr(thisurl);
     window.open("/perweb/unionad/adtest_1.asp?uname="+ thisuname +"&thisadid="+ thisadid +"&tourl=" + thisurl,"clickadwindow");
	 return false;
    }
  }
  thisSrcElement = null;
  thisSrcElementTd = null;
}
function replaceStr(thisurlStr) {
  while (thisurlStr.indexOf("&") >= 0) {
    thisurlStr = thisurlStr.replace("&","--");
  }
  return thisurlStr;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -