";
window._bd_share_config = {
"common": {
bdText: contenttitle,
bdDesc: contenttitle,
bdUrl: location.href,
bdSnsKey: {
'tsina': '3154391214',
'qzone': '3154391214',
'weixin': '3154391214',
'tieba': '3154391214'
}
},
"share": {}
};
with(document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = '//b1.qikucdn.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)];
dfsj_jq(document).ready(function(){
dfsj_jq(".a4").click(function(){
dfsj_jq(".share").show();
});
setInterval(function () {
dfsj_jq(".share").hide();
}, 3500);
dfsj_jq(".share").hover(function(){
dfsj_jq(".share").show();
});
// 分享优化start
var clipboard = new ClipboardJS('.share-copy-link', {
text: function(trigger) {
return window.location.href;
}
});
clipboard.on('success', function(e) {
showDialog('复制成功', 'right');
e.clearSelection();
});
clipboard.on('error', function(e) {
showDialog('复制失败, 请重试');
});
var qrcode = new QRCode($(".QRCode-box")[0], {
text: window.location.href,
width: 85,
height: 85,
correctLevel: QRCode.CorrectLevel.L,
});
// 分享优化end
// 复制链接start
var actionClipboard = new ClipboardJS('.action-copy-link', {
text: function(trigger) {
var threadTitle = $(trigger).attr('data-thread-title');
return threadTitle+'\n'+window.location.href+'\n'+'(出处: 360社区)';
}
});
actionClipboard.on('success', function(e) {
showDialog('复制成功', 'right');
e.clearSelection();
});
actionClipboard.on('error', function(e) {
showDialog('复制失败, 请重试');
});
// 复制链接end
var contenttitle="'">";
var url=location.href;
dfsj_jq("a.share_qqone").click(function(){
var title = contenttitle;
var rLink = url;
var summary=contenttitle;
var site = "360社区";
var pic="";
shareQzone(title, rLink, summary, site, pic);
});
dfsj_jq("a.share_xinlang").click(function(){
var summary=contenttitle;
var site = "1874498659";
var pic="";
shareWeibo(summary+"@360社区", url, site, pic);
});
qqshare();
});
var qqshare=function() {
var p = {
url:location.href,
desc: contenttitle,
title: contenttitle,
summary:contenttitle,
pics: "",
site: '360社区',
};
var s = [];
for (var i in p) {
s.push(i + '=' + encodeURIComponent(p[i] || ''));
}
dfsj_jq(".share_qq").attr("href","//connect.qq.com/widget/shareqq/index.html?"+s.join('&'));
};
function shareQzone(title, url, summary, site, picurl) {
var top = window.screen.height / 2 - 250;
var left = window.screen.width / 2 - 300;
var shareqqzonestring='//sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?title='+title+'&url='+encodeURIComponent(url)+'&summary='+summary+'&site='+site+'&pics='+encodeURIComponent(picurl);
window.open(shareqqzonestring, 'newwindow', 'scrollbars=no,width=600,height=450,left=' + left + ',top=' + top + ',status=no,resizable=yes');
}
function shareWeibo(summary,url, site, picurl){
var top = window.screen.height / 2 - 250;
var left = window.screen.width / 2 - 300;
var sharesinastring='//service.weibo.com/share/share.php?title='+encodeURIComponent(summary)+'&url='+encodeURIComponent(url)+'&content=utf-8&sourceUrl='+encodeURIComponent(url)+'&pic='+encodeURIComponent(picurl)+'&appkey='+site;
window.open(sharesinastring,'newwindow','height=400,width=400,top=100,left=100');
}
(function(){
var postAct = document.getElementById("float_post_act");
var postActTop = postAct.offsetTop;
window.onscroll = function() {
var docTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
if (postActTop < (docTop + 10)) {
postAct.setAttribute("style", "position:fixed;padding-bottom: 20px;top: 10px; z-index:300;-o-box-shadow:0px 12px 16px rgba(240,240,240,0.8);-moz-box-shadow:0px 12px 16px rgba(240,240,240,0.8);-webkit-box-shadow:0px 12px 16px rgba(240,240,240,0.8);box-shadow:0px 12px 16px rgba(240,240,240,0.8);filter:progid:DXImageTransform.Microsoft.Shadow(color=#efefef, Direction=180,Strength=14);");
} else {
postAct.setAttribute("style", "position:static;padding-bottom:0;top:0;filter:default;");
}
}
})()
var flog = false;
var timers = null;
// dfsj_jq(".person-imgs>img").hover(function () {
// dfsj_jq(".personinfo-simple").fadeOut(100);
// dfsj_jq(".personinfo-hard").fadeIn(300);
// flog = false;
// },function () {
// if(timers){
// clearTimeout(timers);
// timers = null;
// }
// timers = setTimeout(function () {
// if(!flog){
// dfsj_jq(".personinfo-hard").fadeOut(100);
// dfsj_jq(".personinfo-simple").fadeIn(100);
// }
// },300)
// })
// dfsj_jq(".personinfo-hard").hover(function () {
// flog = true;
// },function () {
// if(timers){
// clearTimeout(timers);
// timers = null;
// }
// timers = setTimeout(function () {
// if(flog){
// dfsj_jq(".personinfo-hard").fadeOut(100);
// dfsj_jq(".personinfo-simple").fadeIn(100);
// }
// },300)
// })
评论
直达楼层