马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?注册
x
<!--城市切换 -->5 z# M* s) x* |+ E
<style type="text/css"> 8 b4 F! ~5 g% U* P! t
#city *{ margin:0;padding:0; z-index:1000000; top:0;left:0px; float:left;}
/ O# J9 S3 d: z#warpper{ position: relative; z-index:1000000; margin-top:20px;}
& f8 W/ i# F, }3 q#city { font:normal 12px Verdana, Arial, Helvetica, sans-serif; text-align:center; z-index:1000000;}
9 J* `% z" l2 c$ {, i" P$ |# D) a( U, }#city a{ cursor:pointer; color:#666}
( b" F- M; o8 _5 v" G4 c# g#city dl{ height:18px; line-height:18px; padding:0 10px;}0 Q0 b. `4 ?8 }& D
#city dt,.normal{ float:left; padding:0 10px 0 0 ; border-right:0px solid #ccc; text-decoration:none; width:auto; cursor:pointer; color:#FF3300; font-weight:bold;}
$ k y3 e4 e: ?8 M#city dt.over{ position:relative;padding:0 10px 0px 0px; z-index:1000001;color:#FF3300; font-weight:bold; height:20px; }
0 k5 J) g& d, o' t4 d# J4 j3 a, d#city li{ float:left; list-style-type:none; margin:0px 5px; width:160px;}% L- o, Z! N2 |( B! y v
#city #c1 li a{ float:left; list-style-type:none; margin:0px 3px; 0 0 }
; p# q- x+ i4 z4 }9 ] D8 K' t+ k9 M#city dl dd{ position:absolute; width:160px; left:0;top:20px!important; border:1px solid #bbb; background:#fff; filter:progidXImageTransform.Microsoft.Shadow(Strength=4, Direction=120, color=#cccccc); padding:3px 0;}3 b9 A/ Z' R, T' E
.block{ display:block;}) u$ u: v7 j: K- P2 Q8 Z
.none{ display:none;}
, \0 k: }. t" d$ I, | l* y</style># ^- V) ^- u7 |: f" C# ^% W; G
<script language="javascript"> % [# a4 H! N; k# D9 Q+ u
function $(str){ return document.getElementById(str);}
; |- D# J/ R4 {" |9 p( A0 ffunction $$(str){ return document.getElementsByTagName(str);}
7 k1 P% E& D9 t, q' A! c# J2 nvar timer;* q, q/ N7 b( C1 d# h# E
function changeMenu(thisObj,num){" w( W6 H( b3 I( \/ d6 x5 P
if(thisObj.className=="over") return false;
/ J3 w1 Y" X" ^0 Vhids(thisObj);, X( I. s, s Y- I/ d8 E
thisObj.className="over";
6 E$ {, H9 |9 y1 F6 L/ A$("c"+(num+1)).className="block";6 j4 z& @- v d( F8 r! P) {7 J; r8 ~/ e3 \
9 H. b( Z) g2 \7 R7 Q# y% C
$("c"+(num+1)).onmouseover=function(){clearTimeout(timer);}) e$ a7 Y8 G9 y4 d Y; }! I
$("c"+(num+1)).onmouseout=function(){timer=setTimeout(function(){hids(thisObj);},500)}
. J+ a8 {" }% N- q3 U6 U, JthisObj.onmouseout=function(){timer=setTimeout(function(){hids(thisObj);},3000)}8 R% p0 m+ [, X& v+ K
# V* ]( u2 y$ ^) ?2 {9 ^# t
}) f* t% b. L0 y3 b, u
function hids(thisObj){
$ y$ Y8 A! a$ |) yclearTimeout(timer);
" M7 T* `( C# m; Z6 a7 G* }0 Svar tabObj=thisObj.parentNode.getAttribute("id");* d% c6 @2 {9 t6 N' Y# i
var obj_dt=$(tabObj).getElementsByTagName("dt");: m$ b, H6 O! G# j" w9 h, W4 M) a6 h
for(var i=0;i<obj_dt.length;i++){; V" U- ~4 [5 n$ G8 e
obj_dt.className="normal";
! [$ R' H* P/ q$("c"+(i+1)).className="none";0 n7 G; s& v4 ^2 \" `
}
3 d0 K' r3 z; h2 A}
( b- Y- Y( ~6 u6 x</script>6 J" L8 g/ u5 l5 p+ v. U, S
<div id="city">
: [5 e: K( u7 a# [5 H7 v, }' K* O<dl id="warpper">; |0 x/ n( m4 W4 o/ s+ n! i! b1 a* { H
<dt>[北美主要城市]</dt>; k+ ^& _" l* P2 j+ S
<dd id="c1" class="none">
6 E8 l4 i9 V* G, X5 h* Y! q8 J<ul>
) q0 Q1 n" K+ H2 x! H9 f<li><a href="xxx.html">洛杉矶</a> <a href="xxx.html">尔湾</a> <a href="xxx.html">旧金山</a> <a href="xxx.html">圣地亚哥</a> <a href="xxx.html">圣何塞</a> <a href="xxx.html">西雅图</a> <a href="xxx-1.html">纽约</a> <a href="xxx-1.html">波特兰</a> <a href="xxxx.html">奥兰多</a> <a href="xxxx.html">波士顿</a> <a href="xxxx.html">温哥华</a> <a href="xxxx.html">多伦多</a> <a href="xxxx.html">卡尔加里</a> <a href="xxxx.html">蒙特利尔</a>
$ R8 q2 I8 t; ^7 \ w</li>! j9 f7 T7 A) _. v! S
</ul>
7 C' C: N2 G% K/ k1 n+ ]: Y9 n* m+ o# K3 k</dd>/ Z: m' r4 G( u
</dl>
- F( q% i: Y* V# N+ h# C9 ?( p( {) J) N; v0 T" x4 g+ d6 ? `
</div>" ]0 V# D' Y/ j, e% A
<!--城市切换_结束-->3 ?1 z2 g& \: h: w& C7 m4 x
) P' V& F5 Z5 e- L0 o9 G* {$ L/ \
) p( m- x5 u. @3 V1 w- Y j
转载请保留当前帖子的链接:https://www.beimeilife.com/thread-30675-1-1.html 谢谢 |