|
发表于 2013-4-8 13:41:33
|
显示全部楼层
- <script type="text/javascript">: d$ j. {* H \
3 B% L/ N! p( Z1 k" [- var oPop=document.getElementById("pop")
6 _+ _. P4 n* P$ v1 x* [5 V% C
6 z) l5 k. E3 @ F6 n3 F: d- var oClose=document.getElementById("closePop");
" g% [3 [7 L/ c! ~0 f - ( H- V2 d- }) P* r7 M
- var oStay=document.getElementById("stay");
0 n& w1 P$ b, d M6 T
4 ^* ^% S3 @9 G( r- var oRePlay=document.getElementById("rePlay");
! B% b+ i6 X1 b" n5 W/ q - % H% P- r# I5 I' f
- var timer=null;$ v4 H9 w! G& w4 x
- / N3 D( J8 z6 I5 A
-
8 j7 ?( u, U& y5 k, T0 s - , k: d- Z0 L& A3 K
- function closePop()
# l# a0 P7 T. h4 t: {# W - + X: R# S% {- \) ]4 m* a2 E1 {
- {
* }& a# M s9 s, d( t/ V
# H4 w# ]* s9 j8 j- x' f- oPop.style.display='none'; % M7 [$ }0 a. E" d! G
, |/ ^$ S: w! ?5 T3 j8 A- oStay.style.display='block';
! n" [* i" i. v - ' C0 g: G1 B6 n: F
- }# R& t: x+ J; M
# ]9 X& s. s" ?9 Q- timer=setTimeout(closePop,9000);
1 C4 c8 I. w9 g8 p' ?2 O
, T, y* D% O% b% n- function showPop(){7 N9 Y, W% L1 a1 v K, D
- ' d$ A, k3 |. a# l3 D; @
- clearTimeout(timer) 5 _& g: W C3 }6 G" m- {. ]9 `3 e# o
/ w, m. H$ Y; m/ e* f- oPop.style.display='block'; * ]0 E1 m2 [4 v' f. S+ q
- ) w: e" D6 }9 d& G1 U
- oStay.style.display='none';; b- K% x8 c T4 ]0 g& [3 F
8 B& s. T% r4 q" y5 Z- setTimeout(closePop,9000) ; * y- r& q- W: o' J1 ?& ?# s( ], h
1 I n& i6 i, o8 L& p-
2 I7 M7 ^0 R# N' s2 P% ] h
2 b5 A5 c9 ?6 G5 o- {+ C5 l* e& O- }
. `2 |8 }% R/ t7 s/ }0 m; \
/ B! i d' R, }- function closeLb(){+ {/ y0 Y9 x5 }/ h* _3 E
& ^# [; }6 _2 P$ m- var rb=document.getElementById("lb");
1 G, o8 c& ]( t
. v! `7 D4 b9 F& F; x- rb.style.display='none'
$ S$ T/ o0 B, V8 ^
* w2 i( d. q/ p: t* j6 n- }
' ~8 c! G% e0 ^ - : I f( B( |. a4 \
/ r& P8 T8 y% t7 _
/ f" U# ?/ g% `3 {- function closeRb(){& ^" e' U1 K) @" s8 S
/ H" ~' m' }: Q( I- c7 U" P7 I/ @- var rb=document.getElementById("rb");
, S, q" F9 P {
4 ^8 u5 a, N; d5 o t3 b; w1 M, O/ m- rb.style.display='none'
s: O9 P4 t0 K% F) U3 C - 5 k! m6 x8 r. O p# R- ~
- }& R) w0 p/ v$ X- k* R
+ M2 _! T3 g2 _& o5 ]- function thisMovie(movieName) {- {) ?6 N0 o/ y1 }# m
8 s. T ~* N0 J3 `/ D0 ^: t7 Q- if (navigator.appName.indexOf("Microsoft") != -1) {/ a: f n1 `( H. x# z7 Y
- 3 U# X/ o$ r& r' t) Y7 M
- return window[movieName]) W, T9 t6 M" X: A# @* ~; M
- * k* a3 ~" `! S
- }( ?5 v. y# U7 p) T$ T3 r
- ( z; S p% ]. h G9 [
- else {- j' G+ ~7 Y& ?! @& w
- 5 Z% g* y2 G r( U. T1 m
- return document[movieName]( ~2 z0 G/ v: K( Y+ Z: s/ L
- / N( c5 G( h& n
- }
" }* ?5 o9 v- g4 ~ R
/ g& B6 J9 V/ z* M- }
/ G( d+ H& O6 z5 c9 m6 N4 V4 R& b8 B5 f
复制代码 好像是这个,对代码不是很懂 |
评分
-
查看全部评分
|