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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[修改] 【x2.0】Logo右侧广告位/推广链接,将2.0的顶部空白处利用起来!

  [复制链接]
中国小马哥 发表于 2015-2-22 07:40:38 | 显示全部楼层
<!--城市切换_开始,www.LQ168.com-->
<style type="text/css">
#city *{ margin:0;padding:0; z-index:1000000; top:0;left:0px; float:left;}
#warpper{ position: relative; z-index:1000000; margin-top:20px;}
#city { font:normal 12px Verdana, Arial, Helvetica, sans-serif; text-align:center; z-index:1000000;}
#city a{ cursor:pointer; color:#666}
#city dl{ height:18px; line-height:18px; padding:0 0px;}
#city dt,.normal{ float:left; padding:0 0px 0 0 ; border-right:0px solid #ccc; text-decoration:none; width:auto; cursor:pointer; color:#0066FF; font-weight:bold;}
#city dt.over{ position:relative;padding:0 0px 0px 0px; z-index:1000001;color:#0066FF; font-weight:bold; height:20px; }
#city li{ float:left; list-style-type:none; margin:0px 5px; width:180px;}
#city #c1 li a{ float:left; list-style-type:none; margin:0px 3px; 0 0 }
#city dl dd{ position:absolute; width:180px; left:0;top:20px!important; border:1px solid #bbb; background:#fff; filter:progidXImageTransform.Microsoft.Shadow(Strength=4, Direction=120, color=#cccccc); padding:3px 0;}
.block{ display:block;}
.none{ display:none;}
</style>
<script language="javascript">
function $(str){ return document.getElementById(str);}
function $$(str){ return document.getElementsByTagName(str);}
var timer;
function changeMenu(thisObj,num){
if(thisObj.className=="over") return false;
hids(thisObj);
thisObj.className="over";
$("c"+(num+1)).className="block";
$("c"+(num+1)).onmouseover=function(){clearTimeout(timer);}
$("c"+(num+1)).onmouseout=function(){timer=setTimeout(function(){hids(thisObj);},500)}
thisObj.onmouseout=function(){timer=setTimeout(function(){hids(thisObj);},3000)}
}
function hids(thisObj){
clearTimeout(timer);
var tabObj=thisObj.parentNode.getAttribute("id");
var obj_dt=$(tabObj).getElementsByTagName("dt");
for(var i=0;i<obj_dt.length;i++){
obj_dt.className="normal";
$("c"+(i+1)).className="none";
}
}
</script>
<div id="city">
<dl id="warpper">
<dt>【其他乡镇】</dt>
<dd id="c1" class="none">
<ul>
<li>
<a  target="_blank">城关镇</a>
<a  target="_blank">杨桥镇</a>
<a  target="_blank">鲖城镇</a>
<a  target="_blank">谭棚镇</a>
<a  target="_blank">老集镇</a>
<a  target="_blank">滑集镇</a>
<a  target="_blank">吕寨镇</a>
<a  target="_blank">单桥镇</a>
<a  target="_blank">长官镇</a>
<a  target="_blank">宋集镇</a>
<a  target="_blank">张新镇</a>
<a  target="_blank">艾亭镇</a>
<a  target="_blank">陈集镇</a>
<a  target="_blank">韦寨镇</a>
<a  target="_blank">迎仙镇</a>
<a  target="_blank">瓦店镇</a>
<a  target="_blank">姜寨镇</a>
<a  target="_blank">庙岔镇</a>
<a  target="_blank">黄岭镇</a>
<a  target="_blank">白庙镇</a>
<a  target="_blank">关庙镇</a>
<a  target="_blank">牛庄乡</a>
<a  target="_blank">高塘乡</a>
<a  target="_blank">范兴集</a>
<a  target="_blank">土陂乡</a>
<a  target="_blank">谢集乡</a>
<a  target="_blank">杨小街</a>
<a  target="_blank">陶老乡</a>
<a  target="_blank">田桥乡</a>
<a  target="_blank">张营乡</a>
<a  target="_blank">庞营乡</a>
<a  target="_blank">工业园</a>
</li>
</ul>
</dd>
</dl>
</div>
<!--城市切换_结束,www.LQ168.com -->
回复

使用道具 举报

一万年太久,只 发表于 2015-3-11 10:48:24 | 显示全部楼层
看看是什么样子的
回复

使用道具 举报

ewqszh 发表于 2015-3-29 17:32:17 | 显示全部楼层
很好的教程
回复

使用道具 举报

ewqszh 发表于 2015-3-30 12:58:48 | 显示全部楼层
,找了很久了
回复

使用道具 举报

小诺gb 发表于 2015-4-6 16:04:00 | 显示全部楼层
1111111111111111111111
回复

使用道具 举报

♂美女很少见! 发表于 2015-4-13 13:55:13 | 显示全部楼层
logo广告位/推广链接
回复

使用道具 举报

chao996 发表于 2015-5-4 18:30:57 | 显示全部楼层
终于找到了啊啊
回复

使用道具 举报

亿万梦想 发表于 2015-5-6 20:50:13 | 显示全部楼层
:lol:lol:lol:lol
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-28 09:27 , Processed in 0.188075 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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