|
发表于 2013-4-8 13:41:33
|
显示全部楼层
- <script type="text/javascript">
c: L' S# z" v4 j
( B; {/ o1 _- P d' e- var oPop=document.getElementById("pop")
6 r, A- y- \! y( _7 l5 q' M
, H! H/ A |3 u h- var oClose=document.getElementById("closePop"); ?8 x3 d) W- `% f
- 1 M4 _2 R0 [' w6 |6 k: Q
- var oStay=document.getElementById("stay");
8 o1 J4 K- W5 M4 p
. a2 ~3 \" i' }: K- var oRePlay=document.getElementById("rePlay");3 _8 P+ @# u: g# d/ v9 j
. r- a( J4 }5 B" z& x! p- var timer=null;" w8 f2 y5 U; a5 N( x
- : r. x0 k/ q# z+ J2 [4 b
-
) O% z7 F6 Y' z: A3 _3 Z4 i3 f+ _! R
: V+ X, H* l- Z6 k1 G W5 p- function closePop()7 b1 g/ a/ n, A: `. V" l
; A5 Y' Q1 |* m- {3 x( m" b- G) }" C% Q1 f& g
3 m8 ]$ t9 C2 h: @6 i! T: ~& S. Q: t- oPop.style.display='none';
& P3 l/ E& w6 r- M7 J7 r: ^8 q - / ` B( A' b( v5 \% l7 a8 a+ A
- oStay.style.display='block'; 9 X" l J* D5 M! g8 S
- M1 D( z% v4 q7 q- }
. y5 H- ?* b! C3 z0 w2 G - - @) R: i: x" A/ T
- timer=setTimeout(closePop,9000);
8 k# W: {; { ?; w. U. H
1 A4 r6 n$ k9 M' r |- function showPop(){# a( n9 f9 W i+ H6 `6 B9 e; R
- 4 ]$ ?( E: ?/ ^8 O
- clearTimeout(timer) ) r8 S9 Q4 }( e4 x3 @" w$ W
; i& ^ C/ P, _; f% p5 x, A' F5 v/ `- oPop.style.display='block'; w: E' |. u! k# V# I
- # I6 p! k( C# _; j8 T& c* g5 L% S
- oStay.style.display='none';, U: r. z9 Q5 K8 P% _2 o5 x; N
- & ^: t1 U6 t) z0 t2 n. P
- setTimeout(closePop,9000) ; ) }, i$ j- n& M5 G8 i) S% l% s
6 ~1 _; W" ]2 l( ]( w0 }-
! e2 V7 Q4 {- n" G - ( n; B6 A4 \' E% B6 U, G6 s# Z5 A
- }! P: w! a* @/ W$ z) o4 x% M9 J
- 6 S' {% V% h0 I; b
- function closeLb(){
4 n" F: V6 E4 q0 ^" b
* N' d$ C: Z! b5 S$ C- var rb=document.getElementById("lb");
4 d6 @- i1 o2 W" a8 ^1 @1 ?% y - ' G+ V6 f1 Q' j8 V
- rb.style.display='none'2 v1 j+ E( t: r8 l+ ?
- 9 D2 ^* i& g& Z u1 @9 S
- }3 n9 E; j$ G# K2 q
- - L5 m# h% @4 o0 I
- + o, L3 Y2 v1 i4 ~; _3 o% [5 F( v
- L, C4 x' W+ g V" F* e- e3 d
- function closeRb(){3 U- c, k0 w) Y+ W
% d' J0 K5 Q! s* P( [% s- var rb=document.getElementById("rb");
+ K& Y; C8 {, w* J+ ] - / H. J" [ @$ B4 b: {
- rb.style.display='none'
" n% B$ |$ U k: O2 I
; ?7 G( r! ]7 C- }, K2 j; W" Y% R: C5 V. H; F3 O
( r4 N, Y, D( k# v% w- function thisMovie(movieName) {0 I$ _' c" L( J
# u& Q8 f; j% `' v$ O- if (navigator.appName.indexOf("Microsoft") != -1) {
8 [ x) _* J4 T- \ - ( k0 m( h, u9 G
- return window[movieName]
+ M; s+ k7 d- p7 C7 o* z
& f- l- ~1 u6 Q* j& ~" z- }1 {& w- J; M; X) C, w* }0 ^
/ C) u+ }* |4 \6 y8 n- else {
/ c, I3 Y. D# { - / |4 `, C& G, R
- return document[movieName]
5 B! m( k. L# i6 b- n" s1 i - * e3 K( D6 j* n; o+ H2 X
- }. {! k& m3 r& P; j% Z- M5 _
- & O: v2 h/ N- y4 [* p6 y" }. o2 X
- }
2 x1 m) s2 k; h
复制代码 好像是这个,对代码不是很懂 |
评分
-
查看全部评分
|