马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?注册
x
<!--城市切换 -->4 Q6 C/ f# S1 Q6 {# b6 J
<style type="text/css"> : ? Z" L' e3 `' Q
#city *{ margin:0;padding:0; z-index:1000000; top:0;left:0px; float:left;}1 ?' u- b2 E5 i/ ~9 F- M
#warpper{ position: relative; z-index:1000000; margin-top:20px;}
* ?$ D) m7 J" v" @ W* K: x#city { font:normal 12px Verdana, Arial, Helvetica, sans-serif; text-align:center; z-index:1000000;}8 c. O0 M5 V8 n
#city a{ cursor:pointer; color:#666}: G( p7 E3 a9 }9 V
#city dl{ height:18px; line-height:18px; padding:0 10px;}
3 `, V8 K: v9 g# E$ {4 e1 g#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;}
" i+ e. O0 U& d7 b: X) D( m#city dt.over{ position:relative;padding:0 10px 0px 0px; z-index:1000001;color:#FF3300; font-weight:bold; height:20px; }
$ [. F+ C( ?6 }( n8 j, ^4 s H#city li{ float:left; list-style-type:none; margin:0px 5px; width:160px;}
4 e) [2 d& z7 ^& ]; f#city #c1 li a{ float:left; list-style-type:none; margin:0px 3px; 0 0 }
7 g% B% W, `4 n, W1 x3 A6 N1 j#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;}9 n$ c. S; K& X* b/ T8 j4 |2 Y
.block{ display:block;}
- l! b. I6 b6 n- l- y" j.none{ display:none;}
5 y( \8 s- z. c) h Q1 ^</style>
}' }1 L+ x( T' }9 e1 @<script language="javascript"> 1 j. }. B4 _' Z* R. p! s2 s
function $(str){ return document.getElementById(str);}$ x$ k0 U- d3 P0 x" H
function $$(str){ return document.getElementsByTagName(str);}0 B. p" f: I" c" H2 ~: s; p
var timer;/ W0 X: @. P, J
function changeMenu(thisObj,num){' ]; J2 Y8 ~, J* m8 J: l: I
if(thisObj.className=="over") return false;
4 {9 ] ^) h4 {/ ]7 B/ Khids(thisObj);9 U' i `* ~4 @' q' n8 K7 s0 O
thisObj.className="over";
8 }; k. e A: c0 U3 ^( g5 {! z$("c"+(num+1)).className="block";
" X/ E7 g5 \! G, r( @: C5 y+ m+ r; a* Q
$("c"+(num+1)).onmouseover=function(){clearTimeout(timer);}! S: [ }7 P3 z0 b5 G
$("c"+(num+1)).onmouseout=function(){timer=setTimeout(function(){hids(thisObj);},500)}; `; c% y! f' c9 y- B
thisObj.onmouseout=function(){timer=setTimeout(function(){hids(thisObj);},3000)}( V7 H+ ?" v* i+ |- C: ~! I
0 N3 K: \. h! n+ f
} K! m& ~3 L/ d9 j
function hids(thisObj){+ v/ L! D8 N/ b* v. ?
clearTimeout(timer);' a, [* U! \/ f
var tabObj=thisObj.parentNode.getAttribute("id");
: w: E6 f$ |/ tvar obj_dt=$(tabObj).getElementsByTagName("dt");
. h) D2 }+ n' |for(var i=0;i<obj_dt.length;i++){
& v8 s0 V4 s3 I- g( @' robj_dt.className="normal";2 X% j/ ^/ S+ o8 M# `
$("c"+(i+1)).className="none";
' |2 E3 f( M/ c4 S' h1 F}
1 g4 m& D2 h1 V} ?" _3 m% D( ^0 ]" d9 i; b
</script>$ c* m& @: K e! _4 M
<div id="city">8 P F5 r+ w j' E: `) u; R5 T
<dl id="warpper">
, ~! D# m: y1 D! `: t9 r<dt>[北美主要城市]</dt>, U- I- `4 ~3 i# X: I" }
<dd id="c1" class="none">$ C% S* @' D# w4 J/ |
<ul>
$ ~% i, m. S, e6 u- a<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>8 e, r' Y/ r, X, \3 i7 q
</li>
) r1 |2 m" t1 w# Y</ul> l$ B1 t) _0 j( {; w8 S
</dd>5 P1 V. u1 ~$ I/ M* Q J. V
</dl>
5 u) c6 I, z1 p8 E, R; u+ t; c. D8 C+ U S
</div>
P& }2 Y+ [* ]% l4 r<!--城市切换_结束-->. ]1 h: l8 h/ C5 ~5 q5 j
- x9 i: u% f# V" @
8 ?2 A& C& B* ~4 u
转载请保留当前帖子的链接:https://www.beimeilife.com/thread-30675-1-1.html 谢谢 |