本帖最后由 zharpoon 于 2014-12-12 13:02 编辑
修改后的样式:喜欢的拿去{:soso_e113:}
教程:修改viewthread_node.htm文件
376行左右,找到(不同的模板可能内容不同)
- <!--{if $lastmod['magicname']}--><div class="modact"><a href="misc.php?action=viewthreadmod&tid=$tid" title="{lang thread_mod}" onclick="showWindow('viewthreadmod', this.href);return false;">{lang magics_logs}</a></div><!--{/if}-->
复制代码 在下面增加:
- <div align="center"><a href="javascript:(function(){window.open('http://v.t.sina.com.cn/share/share.php?title='+encodeURIComponent(document.title)+'&url='+encodeURIComponent(location.href)+'&source=bookmark','_blank');})()" ><img src="/images/sina.png" alt="转播到新浪微博" ></a>
- <a href="javascript:void(0)" onclick="postToWb();return false;" ><img src="/images/tx.png" alt="转播到腾讯微博" ></a>
- <script type="text/javascript">
- function postToWb(){
- var _t = encodeURI(document.title);
- var _url = encodeURIComponent(document.location);
- var _appkey = encodeURI("appkey");//你从腾讯获得的appkey
- var _pic = encodeURI('');//(例如:var _pic='图片url1|图片url2|图片url3....)
- var _site = '';//你的网站地址
- var _u = 'http://v.t.qq.com/share/share.php?url='+_url+'&appkey='+_appkey+'&site='+_site+'&pic='+_pic+'&title='+_t;
- window.open( _u,'', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no' );
- }
- </script>
- <a href="javascript:void(window.open('http://apps.hi.baidu.com/share/?url='+encodeURIComponent(document.location.href)));"><img src="/images/baidu.gif" alt="转播到百度空间" ></a>
- <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();" ><img src="/images/kaixin.gif" alt="转播到开心网" ></a>
- <a href="javascript:void((function(s,d,e){if(/renren\.com/.test(d.location))return;var f='http://share.renren.com/share/buttonshare?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="/images/renren.gif" alt="转播到人人网" ></a>
- <a href="javascript:void(function(){var d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:'',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()"><img src="/images/fw2douban_s.png" alt="转播到豆瓣网" ></a></div>
复制代码
|