28 lines
645 B
JavaScript
28 lines
645 B
JavaScript
var Statistics = {
|
|
trigger: function(type, value1, value2, extra) {
|
|
if (!arguments[1]) {
|
|
value1 = '';
|
|
}
|
|
if (!arguments[2]) {
|
|
value2 = '';
|
|
}
|
|
if (!arguments[3]) {
|
|
extra = '';
|
|
}
|
|
|
|
var statBase = 'http://liebao.tjweb.ijinshan.com/click/__infoc.gif',
|
|
param = $.param({
|
|
actionname: 'liebao_80',
|
|
ver: baseInfo.getInstance().info.version,
|
|
type: String(type),
|
|
value1: String(value1),
|
|
value2: String(value2),
|
|
_t: new Date().getTime()
|
|
}),
|
|
img = document.createElement('img');
|
|
|
|
img.style.display = 'none';
|
|
img.src = statBase + '?' + param + '&' + extra;
|
|
document.body.appendChild(img);
|
|
}
|
|
}; |