欢迎来到素材无忧网,按 + 收藏我们
登录 注册 退出 找回密码

discuz的右侧工具栏 scrolltop 修改

时间: 2019-05-29 11:11 阅读: 作者:素材无忧网

请问discuz的右侧工具栏(有回到顶部,返回板块),但是我想再添加点东西,可是我百度了,也从源码里找了好久,都没找到解决方法,请问可以教一下吗?

其实这一块的代码很好找到。
首先他要修改的地方就是返回顶部的按钮。
discuz的右侧工具栏 scrolltop 修改(图1) 
代码所在区域


discuz的右侧工具栏 scrolltop 修改(图2) 


完整代码:
  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>

版权声明: 本站资源均来自互联网或会员发布,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!

转载请注明: discuz的右侧工具栏 scrolltop 修改

标签:  
相关文章
模板推荐