Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

论坛顶部导航条

[复制链接]
iskys 发表于 2011-4-16 21:32:49 | 显示全部楼层 |阅读模式
本帖最后由 iskys 于 2011-4-17 20:12 编辑

感谢7楼的朋友!
打开header.html文件,找到以下代码:
<!--{if empty($topic) || $topic[useheader]}-->
在下面加入以下代码:

  1. <div class="top_bar">
  2. <div class="top_bar_right">
  3. <!--{if $_G['uid']}-->
  4. <strong><a href="home.php?mod=space&uid=$_G[uid]" class="vwmy" target="_blank" title="{lang visit_my_space}">{$_G[member][username]}</a></strong>
  5. <!--{if $_G['group']['allowinvisible']}--><span id="loginstatus" class="xg1"><a href="member.php?mod=switchstatus" title="{lang login_switch_invisible_mode}" onClick="ajaxget(this.href, 'loginstatus');doane(event);"><!--{if $_G['session']['invisible']}-->{lang login_invisible_mode}<!--{else}-->{lang login_normal_mode}<!--{/if}--></a></span><!--{/if}-->
  6. <span class="pipe">|</span><span id="usercredit" class="showmenu" onMouseOver="showMenu(this.id);"><a href="{lang'>http://www.dsu.cc/home-spacecp-ac-credit.html">{lang credits}</a></span>
  7. <span class="pipe">|</span><span id="usersetup" class="xg1 showmenu" onMouseOver="showMenu(this.id);"><a href="home.php?mod=spacecp">{lang setup}</a></span><span class="pipe">|</span>
  8. <a href="{if $_G['uid']}home.php{else}javascript:;{/if}" id="qmenu" onMouseOver="showMenu(this.id)">{lang my_center}</a>
  9. <span class="pipe">|</span><a href="home.php?mod=space&do=notice" id="myprompt"{if $_G[member][newprompt]} class="new"{/if}>{lang remind}<!--{if $_G[member][newprompt]}-->($_G[member][newprompt])<!--{/if}--></a><span id="myprompt_check"></span>
  10. <span class="pipe">|</span><a href="home.php?mod=space&do=pm" id="pm_ntc"{if $_G[member][newpm]} class="new"{/if}>{lang pm_center}<!--{if $_G[member][newpm]}-->($_G[member][newpm])<!--{/if}--></a>
  11. <!--{if $_G['group']['allowmanagearticle'] || $_G['group']['allowdiy'] || in_array($_G['uid'], $_G['setting']['ext_portalmanager'])}--><span class="pipe">|</span><a href="portal.php?mod=portalcp">{lang portal_manage}</a><!--{/if}-->
  12. <!--{if $_G['uid'] && $_G['group']['radminid'] > 1}--><span class="pipe">|</span><a href="forum.php?mod=modcp&fid=$_G[fid]" target="_blank">{lang forum_manager}</a><!--{/if}-->
  13. <!--{if $_G['uid'] && ($_G['group']['radminid'] == 1 || $_G['member']['allowadmincp'])}--><span class="pipe">|</span><a href="admin.php" target="_blank">{lang admincp}</a><!--{/if}-->
  14. <span class="pipe">|</span><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>
  15. <!--{elseif !empty($_G['cookie']['loginuser'])}-->
  16. <strong><a id="loginuser">$_G['cookie']['loginuser']</a></strong>
  17. <span class="pipe">|</span><a href="member.php?mod=logging&action=login" onClick="showWindow('login', this.href);hideWindow('register');">{lang activation}</a>
  18. <span class="pipe">|</span><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>
  19. <!--{else}-->
  20. <a href="member.php?mod={$_G[setting][regname]}" onClick="showWindow('register', this.href);hideWindow('login');">$_G['setting']['reglinkname']</a>
  21. <span class="pipe">|</span><a href="member.php?mod=logging&action=login" onClick="showWindow('login', this.href);hideWindow('register');">{lang login}</a>
  22. <!--{/if}-->
  23. </div>
  24. <div class="top_bar_left">
  25. <a href="#">论坛首页</a><span class="pipe">|</span>
  26. <a href="#">商业源码</a><span class="pipe">|</span>
  27. <a href="#">PSD素材</a><span class="pipe">|</span>
  28. <a href="#">插件下载</a><span class="pipe">|</span>
  29. <a href="#">模板风格</a><span class="pipe">|</span>
  30. <a href="#">网页代码</a><span class="pipe">|</span>
  31. <a href="#" id="new_plugin" onMouseOver="showMenu(this.id)" class="showmenu">最近更新插件</a><span class="pipe">|</span>

  32. </div>
  33. </div>
  34. <div id="usercredit_menu" class="p_pop" style="display: none; zoom: 1;width:110px;">
  35. <ul><!--{eval $upgradecredit = $_G['uid'] && $_G['group']['grouptype'] == 'member' && $_G['group']['groupcreditslower'] != 999999999 ? $_G['group']['groupcreditslower'] - $_G['member']['credits'] : false;}-->
  36. <li> <a href="home.php?mod=spacecp&ac=credit">{lang credits}: $_G[member][credits]</a><!--{loop $_G['setting']['extcredits'] $extcreditid $extcredit}--><!--{if empty($extcredit['hiddeninheader'])}--> </li> <li><a href="home.php?mod=spacecp&ac=credit" id="hcredit_$extcreditid">{$extcredit[img]}$extcredit[title]: <!--{echo getuserprofile('extcredits'.$extcreditid);}--></a> {$extcredit[unit]}<!--{/if}--><!--{/loop}--> </li> <li> <a href="home.php?mod=spacecp&ac=usergroup"{if $upgradecredit !== 'false'} id="g_upmine" class="xi2" onMouseOver="showMenu({'ctrlid':this.id, 'pos':'21'});"{/if}>{lang usergroup}: $_G[group][grouptitle]</a></li>
  37. </div>
  38. <div id="new_plugin_menu" class="p_pop" style="display: none; zoom: 1;">
  39. <ul><li><a href="http://www.dsu.cc/thread-29576-1-1.html">快捷回复 1.5</a></li>
  40. <li><a href="http://www.dsu.cc/thread-35703-1-1.html">打卡机(签到简洁版) 2.3</a></li>
  41. <li><a href="http://www.dsu.cc/thread-27298-1-1.html">每日签到 3.0</a></li>
  42. </ul>
  43. </div>
复制代码

将CSS文件放至head间!或放在论坛后台=>全局=>优化=>其他头部信息

  1. <style>
  2. .top_bar{position:fixed;top:0;background:#FAF5F5;border-bottom:1px solid #CDCDCD;padding:5px 15px; margin-bottom:15px;height:18px;line-height:18px;font-size:12px;width:100%;z-index:80;}.top_bar_right{float:right;padding-right:20px;}
  3. .top_bar .new{background-repeat:no-repeat;padding:0 0 2px 20px;color:red;font-weight:bolder;}
  4. .pipe{margin:0 5px;color:#CCC;}
  5. </style>
复制代码

马鞍山潮人网 发表于 2011-4-16 21:33:37 | 显示全部楼层
回复

使用道具 举报

 楼主| iskys 发表于 2011-4-16 21:34:18 | 显示全部楼层
回复 马鞍山潮人网 的帖子

这位大哥,你会么。。。
回复

使用道具 举报

马鞍山潮人网 发表于 2011-4-16 21:35:14 | 显示全部楼层
回复 iskys 的帖子

我建议你等X2
X2可以自己DIY
回复

使用道具 举报

zxy280 发表于 2011-4-17 18:20:26 | 显示全部楼层
我这样子的可以么?
CEC志愿者之家www.ceczyz.com
回复

使用道具 举报

xixqq 发表于 2011-4-17 18:49:27 | 显示全部楼层
回复

使用道具 举报

likangliang 发表于 2011-4-17 20:02:24 | 显示全部楼层
本帖最后由 likangliang 于 2011-4-17 20:04 编辑

打开header.html文件,找到以下代码:
<!--{if empty($topic) || $topic[useheader]}-->
在下面加入以下代码:
  1. <div class="top_bar">
  2. <div class="top_bar_right">
  3. <!--{if $_G['uid']}-->
  4. <strong><a href="home.php?mod=space&uid=$_G[uid]" class="vwmy" target="_blank" title="{lang visit_my_space}">{$_G[member][username]}</a></strong>
  5. <!--{if $_G['group']['allowinvisible']}--><span id="loginstatus" class="xg1"><a href="member.php?mod=switchstatus" title="{lang login_switch_invisible_mode}" onClick="ajaxget(this.href, 'loginstatus');doane(event);"><!--{if $_G['session']['invisible']}-->{lang login_invisible_mode}<!--{else}-->{lang login_normal_mode}<!--{/if}--></a></span><!--{/if}-->
  6. <span class="pipe">|</span><span id="usercredit" class="showmenu" onMouseOver="showMenu(this.id);"><a href="http://www.dsu.cc/home-spacecp-ac-credit.html">{lang credits}</a></span>
  7. <span class="pipe">|</span><span id="usersetup" class="xg1 showmenu" onMouseOver="showMenu(this.id);"><a href="home.php?mod=spacecp">{lang setup}</a></span><span class="pipe">|</span>
  8. <a href="{if $_G['uid']}home.php{else}javascript:;{/if}" id="qmenu" onMouseOver="showMenu(this.id)">{lang my_center}</a>
  9. <span class="pipe">|</span><a href="home.php?mod=space&do=notice" id="myprompt"{if $_G[member][newprompt]} class="new"{/if}>{lang remind}<!--{if $_G[member][newprompt]}-->($_G[member][newprompt])<!--{/if}--></a><span id="myprompt_check"></span>
  10. <span class="pipe">|</span><a href="home.php?mod=space&do=pm" id="pm_ntc"{if $_G[member][newpm]} class="new"{/if}>{lang pm_center}<!--{if $_G[member][newpm]}-->($_G[member][newpm])<!--{/if}--></a>
  11. <!--{if $_G['group']['allowmanagearticle'] || $_G['group']['allowdiy'] || in_array($_G['uid'], $_G['setting']['ext_portalmanager'])}--><span class="pipe">|</span><a href="portal.php?mod=portalcp">{lang portal_manage}</a><!--{/if}-->
  12. <!--{if $_G['uid'] && $_G['group']['radminid'] > 1}--><span class="pipe">|</span><a href="forum.php?mod=modcp&fid=$_G[fid]" target="_blank">{lang forum_manager}</a><!--{/if}-->
  13. <!--{if $_G['uid'] && ($_G['group']['radminid'] == 1 || $_G['member']['allowadmincp'])}--><span class="pipe">|</span><a href="admin.php" target="_blank">{lang admincp}</a><!--{/if}-->
  14. <span class="pipe">|</span><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>
  15. <!--{elseif !empty($_G['cookie']['loginuser'])}-->
  16. <strong><a id="loginuser">$_G['cookie']['loginuser']</a></strong>
  17. <span class="pipe">|</span><a href="member.php?mod=logging&action=login" onClick="showWindow('login', this.href);hideWindow('register');">{lang activation}</a>
  18. <span class="pipe">|</span><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>
  19. <!--{else}-->
  20. <a href="member.php?mod={$_G[setting][regname]}" onClick="showWindow('register', this.href);hideWindow('login');">$_G['setting']['reglinkname']</a>
  21. <span class="pipe">|</span><a href="member.php?mod=logging&action=login" onClick="showWindow('login', this.href);hideWindow('register');">{lang login}</a>
  22. <!--{/if}-->
  23. </div>
  24. <div class="top_bar_left">
  25. <a href="#">论坛首页</a><span class="pipe">|</span>
  26. <a href="#">商业源码</a><span class="pipe">|</span>
  27. <a href="#">PSD素材</a><span class="pipe">|</span>
  28. <a href="#">插件下载</a><span class="pipe">|</span>
  29. <a href="#">模板风格</a><span class="pipe">|</span>
  30. <a href="#">网页代码</a><span class="pipe">|</span>
  31. <a href="#" id="new_plugin" onMouseOver="showMenu(this.id)" class="showmenu">最近更新插件</a><span class="pipe">|</span>


  32. </div>
  33. </div>
  34. <div id="usercredit_menu" class="p_pop" style="display: none; zoom: 1;width:110px;">
  35. <ul><!--{eval $upgradecredit = $_G['uid'] && $_G['group']['grouptype'] == 'member' && $_G['group']['groupcreditslower'] != 999999999 ? $_G['group']['groupcreditslower'] - $_G['member']['credits'] : false;}-->
  36. <li> <a href="home.php?mod=spacecp&ac=credit">{lang credits}: $_G[member][credits]</a><!--{loop $_G['setting']['extcredits'] $extcreditid $extcredit}--><!--{if empty($extcredit['hiddeninheader'])}--> </li> <li><a href="home.php?mod=spacecp&ac=credit" id="hcredit_$extcreditid">{$extcredit[img]}$extcredit[title]: <!--{echo getuserprofile('extcredits'.$extcreditid);}--></a> {$extcredit[unit]}<!--{/if}--><!--{/loop}--> </li> <li> <a href="home.php?mod=spacecp&ac=usergroup"{if $upgradecredit !== 'false'} id="g_upmine" class="xi2" onMouseOver="showMenu({'ctrlid':this.id, 'pos':'21'});"{/if}>{lang usergroup}: $_G[group][grouptitle]</a></li>

  37. </div>
  38. <div id="new_plugin_menu" class="p_pop" style="display: none; zoom: 1;">
  39. <ul><li><a href="http://www.dsu.cc/thread-29576-1-1.html">快捷回复 1.5</a></li>
  40. <li><a href="http://www.dsu.cc/thread-35703-1-1.html">打卡机(签到简洁版) 2.3</a></li>
  41. <li><a href="http://www.dsu.cc/thread-27298-1-1.html">每日签到 3.0</a></li>
  42. </ul>
  43. </div>
复制代码
将CSS文件放至head间!或放在论坛后台=>全局=>优化=>其他头部信息
  1. <style>

  2. .top_bar{position:fixed;top:0;background:#FAF5F5;border-bottom:1px solid #CDCDCD;padding:5px 15px; margin-bottom:15px;height:18px;line-height:18px;font-size:12px;width:100%;z-index:80;}.top_bar_right{float:right;padding-right:20px;}
  3. .top_bar .new{background-repeat:no-repeat;padding:0 0 2px 20px;color:red;font-weight:bolder;}
  4. .pipe{margin:0 5px;color:#CCC;}
  5. </style>
复制代码
更新缓存就ok
不知道你要的是这个不   这个是顶部导航代码!
呵呵  这个就是仿的代码!你试一试  呵呵  8090辣妈论坛 www.8090lama.com  

回复

使用道具 举报

 楼主| iskys 发表于 2011-4-17 20:09:24 | 显示全部楼层
回复 likangliang 的帖子

不错!
回复

使用道具 举报

zhanyong 发表于 2011-4-17 20:18:31 | 显示全部楼层
谢谢分享。我也去看看呢。
回复

使用道具 举报

a8604386 发表于 2011-4-18 10:31:49 | 显示全部楼层
做个记号
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-12-5 10:16 , Processed in 0.030504 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表