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

 找回密码
 立即注册
搜索

[发布] 提供城市切换代码html,求能修改者!请看!

[复制链接]
国狼策略 发表于 2010-6-21 00:47:15 | 显示全部楼层 |阅读模式
插件发布
插件名称: 提供城市切换代码html
插件来源:
适用版本: Discuz! 7.0
语言编码: GBK简体 
最后更新时间:
插件作者: 提供城市切换代码html
插件简介: 提供城市切换代码html
本帖最后由 国狼策略 于 2010-6-21 00:49 编辑

我找到一个很不错的城市切换代码,但是谁能把他整合的DZ上,和19lou的那个很像呢?有没有什么简单的办法实现呢!高人请实验下吧~
弄好了给大家免费分享,谢谢了!


未命名11.jpg
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-loose.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  5. <title>仿19lou效果</title>
  6. <style type="text/css">
  7. *{ margin:0;padding:0;}
  8. body{ font:normal 12px Verdana, Arial, Helvetica, sans-serif; text-align:center;}
  9. #warpper{ position:absolute; left:500px; top:60px;}
  10. h5{ float:left;}
  11. a{ text-decoration:underline; cursor:pointer; font-weight:bold;}
  12. dl{ height:18px; line-height:18px; background:#f7f7f7; padding:0 10px;}
  13. dt,.normal{ float:left; padding:0 10px; border-right:1px solid #ccc; text-decoration:none; width:auto; cursor:pointer;}
  14. dt.over{ position:relative;border:1px solid #86e5f0; padding:0 10px 15px 10px; border-bottom:1px solid #caf1f1; margin:-1px 0 0 -1px; z-index:1000; color:#ff6026; text-decoration:underline; background:#caf1f1; height:12px; }
  15. li{ float:left; list-style-type:none; margin:5px 10px; width:120px;}
  16. dl dd{ position:absolute; width:200px; left:0;top:17px!important; border:1px solid #86e5f0; background:#caf1f1; filter:progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=120, color=#cccccc); padding:10px 0;}
  17. .block{ display:block;}
  18. .none{ display:none;}
  19. </style>
  20. <script language="javascript">
  21. function $(str){ return document.getElementById(str);}
  22. function $$(str){ return document.getElementsByTagName(str);}
  23. var timer;
  24. function changeMenu(thisObj,num){
  25.   if(thisObj.className=="over") return false;
  26.   hids(thisObj);
  27.   thisObj.className="over";
  28.   $("c"+(num+1)).className="block";
  29.   
  30.   $("c"+(num+1)).onmouseover=function(){clearTimeout(timer);}
  31.   $("c"+(num+1)).onmouseout=function(){timer=setTimeout(function(){hids(thisObj);},500)}
  32.   thisObj.onmouseout=function(){timer=setTimeout(function(){hids(thisObj);},3000)}
  33.   
  34. }
  35. function hids(thisObj){
  36.   clearTimeout(timer);
  37.   var tabObj=thisObj.parentNode.getAttribute("id");
  38.   var obj_dt=$(tabObj).getElementsByTagName("dt");
  39.   for(var i=0;i<obj_dt.length;i++){
  40.    obj_dt[i].className="normal";
  41.    $("c"+(i+1)).className="none";
  42.   }
  43. }
  44. </script>
  45. </head>
  46. <body>
  47. <dl id="warpper">
  48.   <dt>选择城市</dt>
  49.   <dd id="c1" class="none">
  50.    <ul>
  51.     <li><a href="#">北京</a> <a href="#">上海</a> <a href="#">南京</a> <a href="#">杭州</a> <a href="#">武汉</a> <a href="#">小日本</a> <a href="#">费力比</a>
  52. </Font>
  53. </li>
  54.    </ul>
  55.   </dd>
  56.   </dd>
  57. </dl>
  58. </body>
  59. </html>
复制代码


city.rar (1.28 KB, 下载次数: 1450)
回复

使用道具 举报

ilei365 发表于 2010-6-21 00:50:00 | 显示全部楼层
不会,帮顶了。
回复

使用道具 举报

lz49858007 发表于 2010-6-21 01:16:28 | 显示全部楼层
不需要这个呵呵`~~
回复

使用道具 举报

lemonlaucn 发表于 2010-8-2 17:23:18 | 显示全部楼层
回复

使用道具 举报

ju0760.com 发表于 2012-2-25 16:52:16 | 显示全部楼层
能详细说明 怎么使用  劳驾
回复

使用道具 举报

ju0760.com 发表于 2012-2-25 16:52:43 | 显示全部楼层
能详细说明 怎么使用  劳驾
回复

使用道具 举报

情深一往 发表于 2012-2-25 16:54:40 | 显示全部楼层
厉害!强~~~~没的说了!
回复

使用道具 举报

baidujhs 发表于 2012-7-2 20:47:55 | 显示全部楼层
现在已经弄好了吗?楼主
回复

使用道具 举报

创智传媒 发表于 2012-12-7 11:05:03 | 显示全部楼层
现在好了么啊 ?我也需要啊
回复

使用道具 举报

优化_陈松超 发表于 2012-12-7 11:11:14 | 显示全部楼层
不会,继续关注
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-11-23 02:06 , Processed in 0.147713 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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