有用+1
F.use(['/static/common/lib/tangram/base/base.js','/static/common/ui/nslog/nslog.js'],function(baidu,nslog){baidu.dom.ready(function(){var a = Math.ceil(1.2);window.bds_config = {'snsKey': {'tsina': '3417820038','tqq': '801199450'},'bdComment': ' '};if(window.shareLemmaUrl){document.getElementById('bdshell_js').src = "http://baike.baidu.com/cms/s/baiduShare/shell_v2.js?t=" + new Date().getHours();}else{document.getElementById('bdshell_js').src = "http://share.baidu.com/static/js/shell_v2.js?t=" + new Date().getHours();}var ele = baidu("#bdshareside");if (ele[0] && baidu.ie && baidu.ie <= 7) {baidu.setStyle(ele, "position", "absolute");ele[0].style.setExpression("top", "eval((document.documentElement||document.body).scrollTop+" + 270 + ") + 'px'");}window.curShare;var url = location.href;baidu(".bk_title_body #bdshare .shareIcon a").click(function(){nslog(location.href, 9067);});baidu("#bdshareside #bdshare .shareIcon a").click(function(){nslog(location.href, 9068);});var sharetime = setInterval(function(){if(baidu("#bdshare_m")[0]) {clearInterval(sharetime);baidu("#bdshare_m li a").click(function(){if(curShare == 'top') {nslog(location.href, 9067);}else if (curShare == 'side') {nslog(location.href, 9068);}});}}, 2000);var sharetime2 = setInterval(function(){if(baidu("#bdshare_pop")[0]) {clearInterval(sharetime2);baidu("#bdshare_pop li a").click(function(){if(curShare == 'top') {nslog(location.href, 9067);}else if (curShare == 'side') {nslog(location.href, 9068);}});}}, 2000);function updateShareIcon(class1, class2, text) {var ele = baidu(class1);ele.attr("class", class2);ele.html(text);}function updateShare() {updateShareIcon("ul .bds_mshare", "bds_douban db", "豆瓣网");updateShareIcon("ul .bds_qzone", "bds_tieba bdtb", "百度贴吧");updateShareIcon("ul .bds_tsina", "bds_tsohu shwb", "搜狐微博");updateShareIcon("ul .bds_tqq", "bds_kaixin001 kxw", "开心网");}baidu(".bk_title_body .bds_more").mouseover(function(){window.curShare = 'top';});baidu("#bdshareside #bdshare .bds_more").mouseover(function(){window.curShare = 'side';});});});