discuz的右侧工具栏 scrolltop 修改

时间:2018-12-21 11:55作者:网友投稿
请问discuz的右侧工具栏(有回到顶部,返回板块),但是我想再添加点东西,可是我百度了,也从源码里找了好久,都没找到解决方法,请问可以教一下吗?

其实这一块的代码很好找到。
首先他要修改的地方就是返回顶部的按钮。
 
代码所在区域


 


完整代码:
  1. <div id="scrolltop">
            <!--{if $_G[fid] && $_G['mod'] == 'viewthread'}-->
            <span><a href="forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$_G[tid]&extra=$_GET[extra]&page=$page{if $_GET[from]}&from=$_GET[from]{/if}" onclick="showWindow('reply', this.href)" class="replyfast" title="{lang fastreply}"><b>{lang fastreply}</b></a></span>
            <!--{/if}-->
            <span hidefocus="true"><a title="{lang scrolltop}" onclick="window.scrollTo('0','0')" class="scrolltopa" ><b>{lang scrolltop}</b></a></span>
            <!--{if $_G[fid]}-->
            <span>
                    <!--{if $_G['mod'] == 'viewthread'}-->
                    <a href="forum.php?mod=forumdisplay&fid=$_G[fid]" hidefocus="true" class="returnlist" title="{lang return_list}"><b>{lang return_list}</b></a>
                    <!--{else}-->
                    <a href="forum.php" hidefocus="true" class="returnboard" title="{lang return_forum}"><b>{lang return_forum}</b></a>
                    <!--{/if}-->
            </span>
            <!--{/if}-->
    </div>
    <script type="text/javascript">_attachEvent(window, 'scroll', function () { showTopLink(); });checkBlind();</script>


免责声明:本站所有文章和图片均来自用户分享和网络收集,文章和图片版权归原作者及原出处所有,仅供学习与参考,请勿用于商业用途,如果损害了您的权利,请联系网站客服处理。