|
发表于 2013-4-8 13:41:33
|
显示全部楼层
- <script type="text/javascript">" v! R o, C8 ], }2 \
- 1 D3 Y" c+ X/ A m" y" r( } I" ~& x
- var oPop=document.getElementById("pop")0 ?! C8 u4 C# z Z8 r! J
/ j* a" N3 A% m2 G/ D" a( S- var oClose=document.getElementById("closePop");
- y( t% a% V: f: N* ] - r3 R5 M4 J; j# W$ m
- var oStay=document.getElementById("stay");
3 R# m$ w: V2 q! E
# n( W ~1 r$ \* m! m( p- var oRePlay=document.getElementById("rePlay");! E3 ]8 x, d! A" F
- ) ]6 E! |/ o# x" y
- var timer=null;6 i6 r( r, P" D0 {6 v# b2 B
5 i* j9 l5 w% j" |/ `: H- 2 T. M! u( {+ }! q: f G# B& X
* p3 Y, k5 M: k- function closePop(), V7 T; t; a# v: H3 J3 F8 u
- , J+ |/ K$ |: Y& m5 R
- {% I" q( T, L2 Z" L
- ! b9 h% {9 A* t
- oPop.style.display='none'; : o1 S/ G/ e& y' D% m
- 8 O; i; w% Z( Z7 F# D- z6 k( ^" u
- oStay.style.display='block'; , |7 c- D# ?" v# @) ]7 a
- , E* S+ a A2 q( c
- }# T ?' Q( }1 L, R+ k
- ! ^* K7 X6 H! k! |
- timer=setTimeout(closePop,9000);2 W. ~* D6 P5 G# o8 j" D
- 6 t' Q6 y7 r5 {
- function showPop(){
3 u7 f9 t* h/ Y" C ^
1 y7 X6 T/ j/ t( W) I+ Z" j- clearTimeout(timer)
# ~9 r' Z, t, e# H5 i. K0 U - & D- J( ~, W/ R+ P* x
- oPop.style.display='block'; ' F3 E. x4 u4 m9 _7 E3 J; j
5 L, s, W! _. {* E- W4 }- N6 h- oStay.style.display='none';
4 G* h& L; {' M9 m1 w) n
) i& B9 |' k' t5 j- setTimeout(closePop,9000) ;
* h, Y4 L0 X9 o+ p4 ^8 u
7 H' k' L W. E-
8 K1 y% D0 I* u - 2 I" C" w& ?6 b8 `
- }6 @# u. r( l/ g& a: J
- / O' b* r7 g& V
- function closeLb(){) h( l9 O5 J/ I) W1 K5 l
- ( S& a1 H# f/ E3 B9 \. X0 W
- var rb=document.getElementById("lb");
7 k! g; l- v1 a. y3 |
) Z3 ]( ^1 y0 ~3 A+ ]8 r R- rb.style.display='none'
, X) H/ u4 G" g0 Y - / D, A' h3 R$ l2 L* p8 F+ m+ ?4 M: {& I
- }* R4 {8 ^0 J$ z/ _
- $ [2 q4 e- j4 N2 u) m, W& A/ p- \. i0 {
- $ M1 g8 k3 j3 F! l' m6 W ~
- 6 A& |# I5 t+ a1 E
- function closeRb(){, U J6 Y' b2 b4 K! F
- Y8 h, U6 g: Y) W- var rb=document.getElementById("rb");
' W5 g6 `8 ^7 `$ I3 k* V7 a" U0 k. k
2 x% l# W7 }) T a9 L$ W r( X- rb.style.display='none'9 k/ v6 Y; `3 n
" ~3 x3 Q2 f1 R# J ^1 a$ F- }8 I# k# C* S2 P% r
0 F" U$ h8 s) E4 ~ o& ~- function thisMovie(movieName) {* G7 T- c% l2 r+ t7 j3 d! M
: x; m7 g2 S; r- if (navigator.appName.indexOf("Microsoft") != -1) {
$ z) ?/ [' m/ X1 V - 7 l. \+ w7 V1 w0 P4 Z
- return window[movieName]. l/ Z2 i( m, r# N3 Y
- 7 C) b1 z9 y# i$ G
- }
4 f8 J) [) G6 S
# C' X x" i# A3 f1 |1 C- b$ w8 m- else {
; z; g) I1 P! U - # W$ \5 f* Q2 K7 h1 _$ ^
- return document[movieName]
7 N& v. F/ e4 H9 {# m. f+ j - P2 ]$ B3 ]0 G# q
- }
# z1 p! \ Z, Z* l# F3 `
9 C7 o% ]% U8 z$ V, ~- }2 J2 r: P8 [0 K3 B7 c
复制代码 好像是这个,对代码不是很懂 |
评分
-
查看全部评分
|