📄 content.js
字号:
document.writeln("<script type=\"text\/javascript\" src=\"http:\/\/js.tongji.cn.yahoo.com\/11826\/ystat.js\"><\/script><noscript><a href=\"http:\/\/tongji.cn.yahoo.com\"><img src=\"http:\/\/img.tongji.cn.yahoo.com\/11826\/ystat.gif\"\/><\/a><\/noscript>");
/* 广告 */
var tl = document.getElementById('tech_content_tl');
tl.innerHTML = '<a href="http://www.zzy.cn/count.php?id=58" target="_blank"><img src="http://ad.ddvip.com/zzy_760-60.gif" border="0" /></a><a href="http://www.1stchina.com" target="_blank"><img src="http://ad.ddvip.com/1stchina.gif" border="0" /></a><a href="http://www.linkwww.com/" target="_blank"><img src="http://down.ddvip.com/images/ad/760-609.gif" border="0" /></a><a href="http://www.itrenzheng.com/" target="_blank"><img src="http://ad.ddvip.com/itrenzheng.gif" width="760px" height="60px" border="0px"/></a><a href="http://www.enkj.com/"><img src="http://ad.ddvip.com/enkj.gif" alt="" border="0" /></a>';
var ad_580x60 = document.getElementById('top_ad_580x60');
ad_580x60.innerHTML = '<a href=\"http:\/\/www.zhhzw.com\" target=\"_blank\"><img src=\"http:\/\/ad.ddvip.com\/zhhzw.gif\" border=\"0\" \/><\/a>';
//固定漂浮广告
function $(id) {
return document.getElementById(id);
}
function scrollBanner(timer, moveNumber) {
function move(o) {
var st = document.documentElement.scrollTop + o.t;
var sl = document.documentElement.scrollLeft + (o.c == 0 ? o.a : document.documentElement.clientWidth - o.a - o.offsetWidth);
var tc = st - o.offsetTop, lc = sl - o.offsetLeft;
with (o.style) {
top = o.offsetTop + (tc != 0 ? tc / Math.abs(tc) : 0) * Math.min(Math.abs(tc), moveNumber) + "px";
left = o.offsetLeft + (lc != 0 ? lc / Math.abs(lc) : 0) * Math.min(Math.abs(lc), moveNumber) + "px";
}
if (o.person) {
with (o.person.style) {
top = o.offsetTop + "px";
left = o.offsetLeft + o.offsetWidth - o.person.offsetWidth + "px";
}
}
}
var hidden = function() {
var o = this.parent;
window.clearInterval(o.interval);
o.parentNode.removeChild(o);
this.parentNode.removeChild(this);
}
this.add = function (to, t, a, c, lo) {
/*
to为object对象
t为距离顶端距离
当c = 0的时候,a为距离左边的距离
当c != 0的时候,a为距离右边的距离
lo为关闭按钮
*/
var div, exec = function () {
move(to);
};
to.person = lo;
to.t = t;
to.a = a;
to.c = c;
with (to.style) {
position = "absolute";
display = "block";
top = document.documentElement.scrollTop + t;
left = document.documentElement.scrollLeft + (c == 0 ? a : document.documentElement.clientWidth - a - to.offsetWidth);
}
if ("undefined" != typeof lo) {
with (lo.style) {
position = "absolute";
display = "block";
}
lo.onmousedown = hidden;
lo.parent = to;
}
exec();
to.interval = window.setInterval(exec, timer);
};
}
window.onload = function () {
var b = new scrollBanner(10,50);
b.add($("lwca"), 500, 10, 0, $("lwc_ca"));
//b.add($("rwca"), 330, 10, 1, $("rwc_ca"));
//b.add($("lwc"), 390, 10, 0, $("lwc_c"));
//b.add($("rwc"), 230, 10, 1, $("rwc_c"));
b = null;
}
document.writeln("<link href=\"/a_dir_d/pf.css\" rel=\"stylesheet\" type=\"text\/css\" \/>");
document.writeln("<div id=\"lwc\" ><\/div >");
//document.writeln("<div id=\"rwc\" ><\/div >");
//document.writeln("<input class=\"close\" id=\"lwc_c\" type=\"button\" value=\" \" \/ >");
//document.writeln("<input class=\"close\" id=\"rwc_c\" type=\"button\" value=\" \" \/ > ");
document.writeln("");
document.writeln("<div id=\"lwca\" ><a href=\"http://www.no1dns.com/style/info/hezu.asp\" target=\"_blank\"><img src=\"http://ad.ddvip.com/no1dns.gif\" width=\"100\" height=\"100\" border=\"0\" \/><\/a><\/div >");
//document.writeln("<div id=\"rwca\" ><\/div >");
document.writeln("<input class=\"close\" id=\"lwc_ca\" type=\"button\" value=\" \" \/ > ");
//document.writeln("<input class=\"close\" id=\"rwc_ca\" type=\"button\" value=\" \" \/ > ");
document.writeln("<script language=\'javascript\'>");
document.writeln("\/\/随机显示的广告代码");
document.writeln("var random = {");
document.writeln(" ad_num : 1,");
document.writeln(" init : function(){");
document.writeln(" n = (Math.floor(Math.random()*random.ad_num+1));");
document.writeln(" switch(n){");
document.writeln(" case 1:");
document.writeln(" document.writeln(\'<script type=\\\"text\\\/javascript\\\"><!--\');");
document.writeln(" document.writeln(\'wauee_mid = 13226;\');");
document.writeln(" document.writeln(\'wauee_channel = 1;\');");
document.writeln(" document.writeln(\'wauee_pid = 15;\');");
document.writeln(" document.writeln(\'wauee_cid = 212;\');");
document.writeln(" document.writeln(\'wauee_width = 200;\');");
document.writeln(" document.writeln(\'wauee_height = 130;\');");
document.writeln(" document.writeln(\'wauee_resource = \\\"200_130_56257\\\";\');");
document.writeln(" document.writeln(\'\\\/\\\/--><\\\/script>\');");
document.writeln(" document.writeln(\'<script type=\\\"text\\\/javascript\\\" src=\\\"http:\\\/\\\/stat.wauee.com\\\/kaokaoni\\\/njs\\\/rightfloat.js\\\"><\\\/script>\');");
document.writeln(" break;");
document.writeln(" }");
document.writeln(" }");
document.writeln("}");
document.writeln("random.init();");
document.writeln("<\/script>");
document.writeln('<script src="http://www230.clickeye.cn/common/clickeye.js"></script>');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -