本帖最后由 JAYSIR 于 2017-3-7 14:12 编辑
比如这个网站
http://lol.qq.com/v/go.shtml?id= ... lient.videopromo.r0
不知道为什么点不开上传文件,用临时网盘代替
百度网盘百度网盘
有兴趣的可以看看这个脚本内的代码,txt文本也报毒
以下为代码
window.onload = function () {
var adTotal = 0, adStartTotal = 0, adObj = {}, adStatus = {}, adLink = {
zan: 'http://c.u38sn2a.com/s/1/1840/26098.html?uid=410938&ext=15eUMCD+40%3bd9%27%22%7buPmcs%29%27xuVe%60p%22%21%7cpQ%60ap%2a~tpShes%2fyttYghg%28~syLjck.%21ot',
cai: 'http://jxqy.51wan.com/?jingjipaihang=2949636117',
left: 'http://c.u38sn2a.com/s/1/1840/31332.html?uid=410938&ext=6af%3aB73%40%409I6bkvodpyl%22m%7bldvqi~fup_qlj~o%7bj_stq+nnhcysqulsgilvl~nscc',
right: 'http://jxqy.51wan.com/?jingjipaihang=2949636117',
default: 'http://c.u38sn2a.com/s/1/1840/31332.html?uid=410938&ext=6af%3aB73%40%409I6bkvodpyl%22m%7bldvqi~fup_qlj~o%7bj_stq+nnhcysqulsgilvl~nscc'
};
$(function () {
$('object,embed').each(function (index, element) {
var noAd = $(element).attr('no-ad');
if (noAd == '1') {
return false;
}
adTotal++;
var key = ('ct_' + Math.round(Math.random() * 10000)) + Math.round(Math.random() * 10000);
$(element).attr('ct_key', key);
adObj[key] = new Countdown($(element));
});
if (adStartTotal < adTotal) {
scrollHandler();
}
$(window).bind("scroll", scrollHandler);
$('[ad-click]').click(function () {
var type = $(this).attr('ad-click');
if (typeof type == 'undefined' || type == '') {
type = 'default';
}
var status_flg = adStatus[String(type)] ? adStatus[String(type)] : 0;
if (status_flg == 1 || navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i)) {
return false;
}
var link = adLink[type];
window.open(link);
adStatus[String(type)] = 1;
});
});
//滚动处理
function scrollHandler() {
if (adStartTotal >= adTotal) {
return false;
}
$('object,embed').each(function (index, element) {
var top = $(element).offset().top;
var hh = $(element).outerHeight();
if (($(window).scrollTop() + $(window).height()) >= top && $(window).scrollTop() <= (top + hh)) {
var countdown = adObj[$(element).attr('ct_key')];
if (countdown && !countdown.isStart()) {
countdown.start();
adStartTotal++;
}
}
});
}
//倒计时
function Countdown($jq) {
var isStart = false, timer;
var $banner = $("<div style='position: absolute; z-index: 20; margin-top: 0px; margin-left: 101px; width: 640px; display: block;background:#000' class='countdown_before_video_ad'><iframe width='640' height='480' frameborder='0' scrolling='no' marginwidth='0' marginheight='0' src='http://img.xa9t.com/html/click/10938_1541.html' style='margin-left:20px;' id='video_ad1'></iframe></div><div style='position: absolute; z-index: 25; margin-top: 10px; margin-left: 608px; width: 116px; font-size: 14px; height: 34px; padding-right: 7px; padding-left: 10px; background: rgba(0, 0, 0, 0.6) none repeat scroll 0% 0% ! important; color: white;' class='countdown_zi'>广告剩余: <font color='red' class='countdown_time'>10</font> 秒</div>");
this.start = function () {
if (isStart) {
return false;
}
isStart = true;
$jq.before($banner);
start();
};
this.isStart = function () {
return isStart;
}
function start() {
var time = parseInt($banner.find('.countdown_time').html())
|