多开几次都没有用,人家是特定时间才会有的广告。
[mw_shl_code=javascript,true]/**
*广告日志监控核心js类
*/
var statIdName = '__uzya';
var js = 'http://tracker.youzu.com/';
/**
*创建ajax通讯
*/
function createXMLHttpRequest() {
if (window.ActiveXObject) {
xmlHttp = new ActiveXObject('Microsoft.XMLHTTP');
} else if (window.XMLHttpRequest) {
xmlHttp = new XMLHttpRequest();
}
}
/**
* 设置cookieId
*/
function setCookie(c_name, value, expiredays) {
var exdate = new Date();
exdate.setDate(exdate.getDate() + expiredays);
document.cookie = c_name + "=" + escape(value) + ((expiredays == null) ? "" : ";expires=" + exdate.toGMTString()) + ";path=/;";
}
/**
* 获取cookieId
*/
function getCookie(c_name) {
if (document.cookie.length > 0) {
c_start = document.cookie.indexOf(c_name + "=");
if (c_start != -1) {
c_start = c_start + c_name.length + 1;
c_end = document.cookie.indexOf(";", c_start);
if (c_end == -1) {
c_end = document.cookie.length;
}
return unescape(document.cookie.substring(c_start, c_end));
}
}
return "";
}
/**
*获取URL来源
*/
function getRef(){
var ref = '';
if (document.referrer.length > 0) {
ref = document.referrer;
}
try {
if (ref.length == 0 && opener.location.href.length > 0) {
ref = opener.location.href;
}
} catch (e) {}
return ref;
}
/**
* 获取当前时间戳
*/
function getTimestamp() {
var d = new Date();
var timestamp = Date.parse(d) + d.getMilliseconds();
return timestamp;
}
/**
* 生成statId cookieId 时间戳 s_id 广告商ID g_id 游戏ID m_id 素材id ref 来源 随机数
*/
function genStatId() {
var cookieId = getTimestamp(); //访问时间
var ref = getRef(); //来源
cookieId = cookieId + "_"+ s_id + "_" + g_id + "_" + m_id + "_" + ref +"_" + Math.round(Math.random() * 300000000);
return cookieId;
}
/**
* 设置StatId
*/
function setStatId() {
var cookieId = genStatId();
setCookie(statIdName, cookieId, 365);
}
/**
* 获取StatId
*/
function getStatId() {
var statId = getCookie(statIdName);
if (statId != null && statId.length > 0) {
return statId;
} else {
setStatId();
return getStatId();
}
}
//处理cookie 信息
function splitCookie(value){
var arr = value.split("_");
return arr;
}
//获取分辨率
function screen(){ //高度 宽度
return window.screen.availHeight + ',' +window.screen.availWidth;
}
//统计数据类
var yz = {
begin : function () { //点击数据获取
var url = js+'t/';
var cookieInfo = splitCookie(getStatId());
//访问广告是半小时内的 都为新用户 0是新用户 1是老用户
var nowtime = getTimestamp();
var vtime = cookieInfo[0];
var ou = Math.round(nowtime/1000)-Math.round(vtime/1000) < 1800 ? 0 : 1;
//点击数据通讯 (计划ID 广告商ID 系列ID 渠道ID 关键词ID) 游戏ID 服务区ID 素材ID 新老用户
var data = "?t=begin&s_id=" + s_id + "&g_id=" + g_id + "&z_id=" + z_id + "&m_id=" + m_id +"&ou=" + ou ;
data += "&rand="+getTimestamp()+"&ip="+ip+"×tamp="+timestamp;
var urlAjax = url+data;
trace(urlAjax,function(){});
//createXMLHttpRequest();
//xmlHttp.open('GET', urlAjax,true);
// xmlHttp.send(null);
},
load : function () { //HTML页面加载完成
var url = js+'t/';
var loadtime = getTimestamp()-bt; //页面加载时间
var data = "?t=load&s_id=" + s_id + "&g_id=" + g_id + "&z_id=" + z_id + "&m_id=" + m_id + "&l_t=" +loadtime;
data += "&rand="+getTimestamp()+"&ip="+ip+"×tamp="+timestamp;
var urlAjax = url+data;
trace(urlAjax,function(){});
},
ra : function () { //广告点击追踪
var url = js+'t/';
var data = "?t=ra&s_id=" + s_id + "&g_id=" + g_id + "&z_id=" + z_id + "&m_id=" + m_id + "&cid=" + cid + "&adid=" + adid + "&mid=" + mid;
data += "&rand="+getTimestamp()+"&ip="+ip+"×tamp="+timestamp;
var urlAjax = url+data;
trace(urlAjax,function(){});
},
complete : function () { //素材加载完成
var url = js+'t/';
var loadtime = getTimestamp()-bt; //素材加载完成时间
var data = "?t=complete&s_id=" + s_id + "&g_id=" + g_id + "&z_id=" + z_id +"&m_id=" + m_id + "&l_t=" +loadtime;
data += "&rand="+getTimestamp()+"&ip="+ip+"×tamp="+timestamp;
var urlAjax = url+data;
trace(urlAjax,function(){});
var isclick = true;
document.onmousedown = function(event){
if(isclick){ //flash点击位置
var w = (window.innerWidth) ? window.innerWidth : (document.documentElement && document.documentElement.clientWidth) ? document.documentElement.clientWidth : document.body.offsetWidth;
var h = (window.innerHeight) ? window.innerHeight : (document.documentElement && document.documentElement.clientHeight) ? document.documentElement.clientHeight :document.body.offsetHeight;
var pageSize = w+"|"+h;
var event = event || window.event;
var pageX = event.clientX + document.body.scrollLeft + document.documentElement.scrollLeft;
var pageY = event.clientY + document.body.scrollTop + document.documentElement.scrollTop;
X = Math.floor(pageX-(w-m_width)/2) ;
var data = "?t=flash&s_id=" + s_id + "&g_id=" + g_id + "&z_id=" + z_id + "&m_id=" + m_id + "&x=" +X+"&y="+pageY;
data += "&rand="+getTimestamp()+"&ip="+ip+"×tamp="+timestamp;
var urlAjax = url+data;
trace(urlAjax,function(){});
isclick = false;
}
}
},
location : function(_url) {
var url = js+'t/';
var data = "?t=location&url="+encodeURIComponent(_url)+"&ip="+ip+"×tamp="+timestamp;
var urlAjax = url+data;
trace(urlAjax,function(){window.location.href = _url})
},
encode : function(pt,pw,callback) { // 注册完成通讯
var url = domain+'proxy.php';
var data = "?type=encode&pt=" + pt +"&pw="+pw;
var urlAjax = url+data;
var request = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("MSXML2.XMLHTTP.3.0");
request.open("GET", urlAjax, true);
request.onreadystatechange = function(){
if (request.readyState == 4 && request.status == 200){
if (request.responseText){
callback(request.responseText);
}
}
};
request.send();
}
}
function trace(u,c) {
var t,m=Math.round(Math.random()*9999),n=(new Date()).getTime()+'_'+m,i=window[n]=new Image();i.src=u;i.onerror=function(){window[n]=null;if(c)c&&c()};i.onload=i.onreadystatechange=function(e){if(!this.readyState||this.readyState==='loaded'||this.readyState==='complete'){if(c)c&&c();i.onload=i.onreadystatechange=null}}
}
[/mw_shl_code]
神奇的旺旺:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36 (zh-CN)
我勒个去啊!
我是骗子,不信就算了 |