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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[发布] 多城市切换模版

[复制链接]
shixuan 发表于 2011-6-28 16:07:09 | 显示全部楼层 |阅读模式
大家有没有做过像19楼多城市切换的模版

shwxyuan 发表于 2011-6-28 16:18:21 | 显示全部楼层
www.hnxwz.com帮顶起
回复

使用道具 举报

tong3jie 发表于 2011-6-28 16:55:04 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

freeman3c 发表于 2011-6-28 16:58:23 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

Iisluo.com 发表于 2011-6-28 17:22:57 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

ccmaple 发表于 2011-6-28 17:26:40 | 显示全部楼层
路过
回复

使用道具 举报

楚狂人 发表于 2011-6-29 10:12:11 | 显示全部楼层
没看到过 好像19楼是多个论坛吧
回复

使用道具 举报

烦,烦,烦 发表于 2011-6-29 10:37:21 | 显示全部楼层
本帖最后由 烦,烦,烦 于 2011-6-29 10:39 编辑

http://0523ol.com/portal.php演示

X2.0版本的,打开:/template/default/common/header.htm (非默认风格,则修改风格中的header.htm)
搜索从下代码:
  1. <h2><!--{if !isset($_G['setting']['navlogos'][$mnid])}--><a href="./" title="$_G['setting']['bbname']">{$_G['style']['boardlogo']}</a><!--{else}-->$_G['setting']['navlogos'][$mnid]<!--{/if}--></h2>
复制代码
下面加入

  1. <!--城市切换_开始-->
  2. <style type="text/css">
  3. #city *{ margin:0;padding:0; z-index:1000000; top:0;left:0px; float:left;}
  4. #warpper{ position: relative; z-index:1000000; margin-top:20px;}
  5. #city { font:normal 12px Verdana, Arial, Helvetica, sans-serif; text-align:center; z-index:1000000;}
  6. #city a{ cursor:pointer; color:#666}
  7. #city dl{ height:18px; line-height:18px; padding:0 10px;}
  8. #city dt,.normal{ float:left; padding:0 10px 0 0 ; border-right:0px solid #ccc; text-decoration:none; width:auto; cursor:pointer; color:#0066FF; font-weight:bold;}
  9. #city dt.over{ position:relative;padding:0 10px 0px 0px; z-index:1000001;color:#0066FF; font-weight:bold; height:20px; }
  10. #city li{ float:left; list-style-type:none; margin:0px 5px; width:160px;}
  11. #city #c1 li a{ float:left; list-style-type:none; margin:0px 3px; 0 0 }
  12. #city dl dd{ position:absolute; width:160px; left:0;top:20px!important; border:1px solid #bbb; background:#fff; filter:progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=120, color=#cccccc); padding:3px 0;}
  13. .block{ display:block;}
  14. .none{ display:none;}
  15. </style>
  16. <script language="javascript">
  17. function $(str){ return document.getElementById(str);}
  18. function $$(str){ return document.getElementsByTagName(str);}
  19. var timer;
  20. function changeMenu(thisObj,num){
  21. if(thisObj.className=="over") return false;
  22. hids(thisObj);
  23. thisObj.className="over";
  24. $("c"+(num+1)).className="block";
  25. $("c"+(num+1)).onmouseover=function(){clearTimeout(timer);}
  26. $("c"+(num+1)).onmouseout=function(){timer=setTimeout(function(){hids(thisObj);},500)}
  27. thisObj.onmouseout=function(){timer=setTimeout(function(){hids(thisObj);},3000)}
  28. }
  29. function hids(thisObj){
  30. clearTimeout(timer);
  31. var tabObj=thisObj.parentNode.getAttribute("id");
  32. var obj_dt=$(tabObj).getElementsByTagName("dt");
  33. for(var i=0;i<obj_dt.length;i++){
  34. obj_dt[i].className="normal";
  35. $("c"+(i+1)).className="none";
  36. }
  37. }
  38. </script>
  39. <div id="city">
  40. <dl id="warpper">
  41. <dt onMouseOver="changeMenu(this,0);">[去其他县市]</dt>
  42. <dd id="c1" class="none">
  43. <ul>
  44. <li><a href="#">暂未开放</a>
  45. </li>
  46. </ul>
  47. </dd>
  48. </dl>
  49. </div>
  50. <!--城市切换_结束-->
复制代码
回复

使用道具 举报

106585 发表于 2011-6-30 11:55:20 | 显示全部楼层
谢谢··
回复

使用道具 举报

和你一起飞1 发表于 2011-8-21 14:02:14 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-10-5 19:13 , Processed in 0.098919 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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