📄 content.js
字号:
/* 广告 */
var tl = document.getElementById('tech_content_tl');
tl.innerHTML = '<a href="http://www.cnspeed.com/" title="数字引擎" target="_blank"><img src="http://ad.ddvip.com/2013_760X60.gif" width="760px" height="60px" border="0px"/></a><a href="http://www.itrenzheng.com/" target="_blank"><img src="http://ad.ddvip.com/itrenzheng.gif" width="760px" height="60px" border="0px"/></a>';
var ad_580x60 = document.getElementById('top_ad_580x60');
ad_580x60.innerHTML = '<a href="http://www.zgdata.com/stat.asp?siteKey=ddvip&pageNO=1&urlCode=6a644ad3899c17cdb5ed3ac7b09422d6" target="_blank"><img src="http://ad.ddvip.com/zgsj_468x60.gif" border="0" /></a>';
//固定漂浮广告
var adLeftSrc = ""
var adLeftFlash = "" //如果为FLASH,就填写FLASH
var adLeftHref = ""
var adLeftWidth = 100
var adLeftHeight = 100
var adRightSrc = "http://ad.ddvip.com/no1dns.gif"
var adRight_bSrc = ""
var adRightFlash = ""
var adRightHref = "http://www.no1dns.com/style/info/self6.asp"
var adRight_bHref = ""
var adRightWidth = 100
var adRightHeight = 100
var marginTop = 10
var marginLeft = 1
var navUserAgent = navigator.userAgent
function load(){
judge();
move();
}
function move() {
judge();
setTimeout("move();",80)
}
function judge(){
if (navUserAgent.indexOf("Firefox") >= 0 || navUserAgent.indexOf("Opera") >= 0) {
if (adLeftSrc != "") {document.getElementById("adLeftFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.body.clientHeight > document.documentElement.clientHeight)?document.documentElement.clientHeight:document.body.clientHeight) - adLeftHeight - marginTop + 'px';}
if (adRightSrc != "") {
document.getElementById("adRightFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.body.clientHeight > document.documentElement.clientHeight)?document.documentElement.clientHeight:document.body.clientHeight) - adRightHeight - marginTop + 'px';
document.getElementById("adRightFloat").style.left = ((document.body.clientWidth > document.documentElement.clientWidth)?document.body.clientWidth:document.documentElement.clientWidth) - adRightWidth - marginLeft + 'px';
}
}
else{
if (adLeftSrc != "") {document.getElementById("adLeftFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.documentElement.clientHeight == 0)?document.body.clientHeight:document.documentElement.clientHeight) - adLeftHeight - marginTop + 'px';}
if (adRightSrc != "") {
//document.getElementById("adRightFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.documentElement.clientHeight == 0 )?document.body.clientHeight:document.documentElement.clientHeight) - adRightHeight - 110 - marginTop + 'px';
document.getElementById("adRightFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.documentElement.clientHeight == 0 )?document.body.clientHeight:document.documentElement.clientHeight) - adRightHeight - marginTop + 'px';
document.getElementById("adRightFloat").style.left = ((document.documentElement.clientWidth == 0)?document.body.clientWidth:document.documentElement.clientWidth) - adRightWidth - marginLeft + 'px';
}
}
if (adLeftSrc != "") {document.getElementById("adLeftFloat").style.left = marginLeft + 'px';}
}
if (adLeftSrc != "") {
if (adLeftFlash == "flash") {
document.write("<div id=\"adLeftFloat\" style=\"position: absolute;width:" + adLeftWidth + ";\"><a href=\"" + adLeftHref +"\"><embed src=\"" + adLeftSrc + "\" quality=\"high\" width=\"" + adLeftWidth + "\" height=\"" + adLeftHeight + "\" type=\"application/x-shockwave-flash\"></embed></a></div>");
}
else{
document.write("<div id=\"adLeftFloat\" style=\"position: absolute;width:" + adLeftWidth + ";\"><a href=\"" + adLeftHref +"\" target=\"_blank\"><img src=\"" + adLeftSrc + "\" width=\"" + adLeftWidth + "\" height=\"" + adLeftHeight + "\" border=\"0\" \></a></div>");
}
}
if (adRightSrc != "") {
if (adRightFlash == "flash") {
document.write("<div id=\"adRightFloat\" style=\"position: absolute;width:" + adRightWidth + ";\"><a href=\"" + adRightHref +"\"><embed src=\"" + adRightSrc + "\" quality=\"high\" width=\"" + adLeftWidth + "\" height=\"" + adRightHeight + "\" type=\"application/x-shockwave-flash\"></a></embed></div>");
}
else{
//document.write("<div id=\"adRightFloat\" style=\"position: absolute;width:" + adRightWidth + ";\"><a href=\"" + adRightHref +"\" target=\"_blank\"><img src=\"" + adRightSrc + "\" width=\"" + adLeftWidth + "\" height=\"" + adRightHeight + "\" border=\"0\" \></a><br /><br /><a href=\"" + adRight_bHref +"\" target=\"_blank\"><img src=\"" + adRight_bSrc + "\" width=\"" + adLeftWidth + "\" height=\"" + adRightHeight + "\" border=\"0\" \></a></div>");
document.write("<div id=\"adRightFloat\" style=\"position: absolute;width:" + adRightWidth + ";\"><a href=\"" + adRightHref +"\" target=\"_blank\"><img src=\"" + adRightSrc + "\" width=\"" + adLeftWidth + "\" height=\"" + adRightHeight + "\" border=\"0\" \></a></div>");
}
}
load();
document.write('<script src="http://www230.clickeye.cn/common/clickeye.js"></script>');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -