DX1.5 一键推荐腾讯微博(去除无用附加标题版)
/template/default/forum/viewthread_node.htm 查找<em class="xg2">{lang readperm_thread} $_G</em><!--{/if}-->下面添加 <span class="pipe">|</span><a href="javascript:void(0)" onclick="postToWb();"><font color="#6633FF">转播到腾讯微博</font></a>
<script type="text/javascript">
function postToWb(){
var _t = encodeURI("【论坛推送】$_G(By:$post)");
var _url = encodeURI(document.location);
var _appkey = encodeURI("appkey");//你从腾讯获得的appkey
var _pic = encodeURI('');//(列如:var _pic='图片url1|图片url2|图片url3....)
var _site = 'http://www.lanyudongli.com';//你的网站地址
var _u = 'http://v.t.qq.com/share/share.php?title='+_t+'&url='+_url+'&appkey='+_appkey+'&site='+_site+'&pic='+_pic;
window.open( _u,'转播到腾讯微博', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no' );}
</script>其中 var _site = 'http://www.lanyudongli.com';//你的网站地址替换成自己的网址
页:
[1]