按键盘上方向键 ← 或 → 可快速上下翻页,按键盘上的 Enter 键可回到本书目录页,按键盘上方向键 ↑ 可回到本页顶部!
————未阅读完?加入书签已便下次继续阅读!
'qid' : qid;
'area' : key;
'action': 'linkClick';
'text' : bute('href');
'host' : bute('href')。split('/')'2'
});
});
grid68。find( (/@/; '') )。attr('rel'; 'nofollo');
});
(document)。keydon(function(e){
if(y && yCode == 67){
var isStandard = Boolean();
selection = isStandard ? () : 。createRange();
text = (isStandard ? selection + '' : xt)。replace(/n+/g;'');
textLen = ;
d({
type: 2014;
page: 'question';
qid: xt('page')''qid'';
uid: xt('user')''id'';
action: 'ctrl+c';
text: (textLen 》 0 && textLen ');
var bigImg = ne Image();
d = function(){
('src';imgBigSrc);
if(sourceidth == dth){
('ikqb_img');
({
'idth':'120%'
};500);
}else{
({
'maxidth':dth》maxidth?maxidth:dth;
'maxHeight':
};500);
}
ddClass('img_sho');
('。ikqb_img_loading')。remove();
}
= imgBigSrc;
}
Default();
});
('#search…form')。submit(function(e) {
d({
type: 2014;
page: 'question';
position: 'searchbtn';
action: 'click'
});
Default();
});
});
//统计QB页用户名片的展现量、查看QB页用户名片的用户数
('。user…name')。on('mouseenter'; function (e) {
d({
'page': 'qb';
'type': 2060;
'action': 'hover';
'area': 'user…name'
});
})。on('click'; function (e) {
d({
'page': 'qb';
'type': 2060;
'action': 'click';
'area': 'user…name'
});
});
//“向TA求助”的点击量、点击用户数
('body')。on('click'; '。fixed…ask; 。fixed…ask…e'; function (e) {
d({
'page': 'qb';
'type': 2060;
'action': 'click';
'area': 'fixed…ask'
});
});
// “举报“下“描述不清”等三项的展现量(PV)、 “描述不清”等三项的点击总量、 “描述不清”等三项的点击用户数
('body')。on('mouseenter'; '。gt…accuse 。accuse…enter'; function (e) {
d({
'page': 'qb';
'type': 2060;
'action': 'hover';
'area': 'accuse…enter'
});
})。on('click'; '。gt…accuse a'; function (e) {
d({
'page': 'qb';
'type': 2060;
'action': 'click';
'area': 'gt…accuse…a'
});
});
// 新增分享打点统计
if (。QueryValue(f; 'sharesource')) {
d({
module: 'question';
page: 'qb';
project: 'ne…qb…share';
postion: 'ne…share';
action: 'vie…by…share…' + 。QueryValue(f; 'sharesource')
});
}
// 个人行家回答特型tooltip
var mavinTips = '';
var mavinTimeout = '';
('。mavin…reply…icon')。each(function (index) {
var me = this;
var mavinLevelTitle = (this)。attr('data…title');
var mavinMajor = (this)。attr('data…major');
var content = '
'' + mavinLevelTitle + ''已完成实名认证+行业认证';
if (mavinMajor == 1) {
content += '+专业认证';
}
content += '
';
(this)。mouseenter(function (e) {
('div'role=〃tooltip〃'')。hide();
clearTimeout(mavinTimeout'index');
mavinTimeout'index' = setTimeout(function () {
if (!mavinTips'index') {
mavinTips'index' = ne Tip({
'target': me;
'tooltipClass' : 'tip…hite';
'autoDispose': false;
'direction': 'top';
'content': content;
'position': {
my: 'left…20 top'
}
});
}
mavinTips'index'。sho();
}; 70);
})。mouseleave(function (e) {
mavinTimeout'index' = setTimeout(function () {
mavinTips'index' && mavinTips' index '。hide();
}; 70);
});
});
d = function () {
var sendLog = function() {
var is_topads_truely_sho = null; // 顶部网盟
var is_bottomangmeng_truely_sho = null; // 底部网盟为你推荐
var is_leftads_truely_sho = null; // 实际展示左下广告
var is_rightads_truely_sho = null; // 实际展示左下广告
// 顶部网盟广告 …… 从元素高度判断
if (xt('ads_log_toprequest')) {
if (('。left…top…ads')。height() == 0
|| ('。left…top…ads')。idth() == 0) {
is_topads_truely_sho = 0;
} else {
is_topads_truely_sho = 1;
}
} else {
is_topads_truely_sho = 0;
}
// 底部为你推荐网盟广告 …… 从iframe判断
if (xt('ads_log_bottomrequest')) {
if (('。gt…bottom…union')。find('iframe')。size() == 0) {
is_bottomangmeng_truely_sho = 0;
} else {
is_bottomangmeng_truely_sho = 1;
}
} else {
is_bottomangmeng_truely_sho = 0;
}
// 同步凤巢广告 …… 从元素高度判断
if (xt('ads_log_leftdon')) {
if (('#qbleftdon…container')。height() == 0
|| ('#qbleftdon…container')。idth() == 0) {
is_leftads_truely_sho = 0;
} else {
is_leftads_truely_sho = 1;
}
} else {
is_leftads_truely_sho = 0;
}
// 同步右侧广告,看是否存在dom以及是否展示
if (xt('ads_log_right')) {
if (('。idget…sma')。height() == 0
|| ('。idget…sma')。idth() == 0) {
is_rightads_truely_sho = 0;
} else {
is_rightads_truely_sho = 1;
}
} else {
is_rightads_truely_sho = 0;
}
// 得到浏览器信息
function getBroserType() {
if (。toLoerCase()。indexOf('se 2。x')》…1) {
return 'Sougo';
} else if (。toLoerCase()。indexOf('maxthon')》…1) {
return 'maxthon';
} else if (。toLoerCase()。indexOf('qqbroser')》…1) {
return 'qqbroser';
} else if (。toLoerCase()。indexOf('msie')》…1) {
return 'IE';
} else if (/chrome/(d+。d+)/()) {
return 'Chrome';
} else if (/firefox/(d+。d+)/()) {
return 'Firefox';
} else {
return 'other';
}
}
var brosert_type = getBroserType();
var adsLogParams = {
type: 2014;
page: 'question';
action: 'ads_block_info_hour';
is_topangmeng_should_sho: xt('ads_log_toprequest') ||