|

- UID
- 1518
- 帖子
- 1
- 精华
- 0
- 积分
- 1
- 金币
- 0
- 威望
- 0
- 贡献
- 0
|
14楼
发表于 2009-5-3 17:28
| 只看该作者
document.writeln("<style type=\"text\/css\">");
3 G" `+ i3 _: U- E# Q) Ldocument.writeln("<!--");
# _ H. |8 v; i& O% x: Adocument.writeln(".zxtad {");6 S- l9 b3 Z+ Z2 P- x
document.writeln(" font-size: 12px;");
$ Q$ b' j0 T; c C2 s; ^# zdocument.writeln(" color: #5E7FB4;");3 M& e% r0 o8 m1 J) i
document.writeln(" clear: both;");
, K# I* e. W5 U+ F. o+ A& Z: Edocument.writeln(" height: 14px;");3 x1 v6 z: O" {6 y5 m3 V% h
document.writeln(" width: 400px;");
& _ B4 g5 S* }document.writeln(" overflow: hidden;");
1 D& J- O- L1 H" c& Gdocument.writeln("}");
4 @8 H+ i% n. W3 Cdocument.writeln("a:link {");
3 S* k; U4 O/ l% k, c+ ?document.writeln(" color: #5E7FB4;");
# y4 `! v9 _( m" R& y) ydocument.writeln(" text-decoration: none;");
8 l7 |, C' v5 Y2 F: R- S$ z5 ^document.writeln("}");
$ ^' Z: u1 C& sdocument.writeln("a:visited {");( p% j/ w" x. r3 G- K
document.writeln(" text-decoration: none;");
1 K& o. t. I. h3 G- z6 [document.writeln(" color: #5E7FB4;"); M; _ I* u9 V0 s* ~
document.writeln("}");
5 T3 ?* n+ N# ?' ?& _" J/ Ddocument.writeln("a:hover {");8 E& F4 ?" z2 c0 N: y, I% E5 _
document.writeln(" text-decoration: underline;");' a. @: X9 ]2 P# ]0 ?( [: B
document.writeln(" color: #FF0000;");+ i! q3 W t+ M- Y. t; v
document.writeln("}");% {$ q2 m& F( `/ U6 N$ j% w
document.writeln("a:active {");
3 ], `+ R( A- |document.writeln(" text-decoration: none;");
2 ^( ?( V% U' e3 C xdocument.writeln(" color: #5E7FB4;");8 w2 q' ?* l2 m8 e. |6 B
document.writeln("}");$ [/ K$ v/ S$ [- @5 U/ X
document.writeln("-->");7 d& F8 s" ^( w) b/ {3 M
document.writeln("<\/style>");
* R% V2 Z8 }9 n, t6 m1 Idocument.writeln("<div align=\"center\" class=\"zxtad\">")4 i5 F; b9 b; T
document.writeln("<script>");
u: l! T5 l1 @9 X$ M, ddocument.writeln("var marqueeContent=new Array(); \/\/............");
7 |0 \- `( [* gdocument.writeln("marqueeContent[0]=\'<A href=# target=_blank>山东电影网提醒您:注意保护您的视力,请勿疲劳观看!<\/A> <br>\';");7 O8 Q2 Z! B+ y3 M* v
document.writeln("marqueeContent[1]=\'<a href=# target=_blank>欢迎您的到来,向您的朋友推荐我们吧 山东电影网 - www.48268.cn <\/a><br>\';");0 ]" H6 S0 N" y8 ?. D, r
document.writeln("marqueeContent[2]=\'<A href=# target=_blank>山东电影网www.48268.cn向您的朋友推荐我们吧<\/a><br>\';");9 G' |0 n& F7 V* [& d+ z" ~
document.writeln("marqueeContent[3]=\'<A href=# target=_blank>山东电影网提醒您:想看什么影片就给管理员留言吧<\/a><br>\';");( u6 U# [5 r' X' V2 u# O: ^& l5 v6 b: T
document.writeln("marqueeContent[4]=\'<A href=# target=_blank>如果长时间无法播放请按键盘上的 F5 刷新重试<\/a><br>\';");$ }2 \; O+ t4 v X) i: ^" X
document.writeln("marqueeContent[5]=\'<A href=# target=_blank>多次刷新仍无法观看的请检查您的网络<\/a><br>\';");; Z0 T4 G- V8 a/ w E/ \
document.writeln("marqueeContent[6]=\'<A href=# target=_blank>部分影片因片源问题会弹出广告,请直接关闭即可<\/a><br>\';");2 O' y& {. z. I3 W
document.writeln("marqueeContent[7]=\'<A href=# target=_blank>本站承诺绝不人为添加任何弹出广告和恶意插件<\/a><br>\';");" D3 l0 X1 n% ~/ ^! d
document.writeln("marqueeContent[8]=\'<A href=# target=_blank>观看本站视频需要安装Qvod播放器<\/a><br>\';");
1 P' g& R8 s, k- t) p- C$ {( hdocument.writeln("marqueeContent[9]=\'<A href=# target=_blank>本站影片属于P4P模式,观看人数越多画面越流畅<\/a><br>\';");
& a$ y7 x0 \. ?0 g) `* Adocument.writeln("marqueeContent[10]=\'<A href=# target=_blank>影片不能观看请点击下方↓↓↓报错连接请求修复<\/a><br>\';");
- c/ z9 \1 i6 F4 Hdocument.writeln("marqueeContent[11]=\'<A href=# target=_blank>山东电影网祝 您观看愉快 本站网址:www.48268.cn<\/a><br>\';");
$ Z# w/ M9 _1 ?5 n6 x, y6 Mdocument.writeln("marqueeContent[12]=\'<A href=# target=_blank>为了您的健康,请不要疲劳观看!<\/a><br>\';");
1 V1 n6 T; a1 d& N/ Z, x. Adocument.writeln("");
5 f' f* f6 u7 C! Vdocument.writeln("var marqueeInterval=new Array(); \/\/定义一些常用而且要经常用到的变量");) q* o7 I2 C8 u- Q2 V A7 p
document.writeln("var marqueeId=0;");
& l/ x7 d+ x# ?! P; Odocument.writeln("var marqueeDelay=15000;");8 O& @4 z o, y2 L
document.writeln("var marqueeHeight=14;");
1 ~/ B; K$ O( h6 ldocument.writeln("");, a; }4 D9 Y2 z( O
document.writeln("\/\/接下来的是定义一些要使用到的函数");
4 p$ n% M+ Y; K" w3 S" \4 Ydocument.writeln("Array.prototype.random=function() {");% V+ Q7 U0 D5 L
document.writeln("var a=this;");2 @, \8 Z x: M |
document.writeln("var l=a.length;");7 J0 j1 h$ ^: j0 ?: ^( ?: `' M
document.writeln("for(var i=0;i<l;i++) {");
% A) y; C" y b1 q0 C$ idocument.writeln("var r=Math.floor(Math.random()*(l-i));");. O# `: d; _% S, X: J' o
document.writeln("a=a.slice(0,r).concat(a.slice(r+1)).concat(a[r]);");: S: |3 a x9 A8 w! m
document.writeln("}");
# G/ w; n6 ~- t: rdocument.writeln("return a;");6 R& Q: p6 h3 K. v# r
document.writeln("}");! c5 m+ j# i4 g- ~( [
document.writeln("function initMarquee() {");
* C; o9 X# S- G4 _7 vdocument.writeln("marqueeContent=marqueeContent.random();");9 X7 q: Z8 n% V: U/ T, r) S' r' P
document.writeln("var str=\'\';"); [' C& M- R( H: w0 b8 V3 a' U
document.writeln("for(var i=0;i<Math.min(3,marqueeContent.length);i++) str+=(i>0?\' \':\'\')+marqueeContent;");& x% U) C, g! T( h a+ n
document.writeln("document.write(\'<div id=marqueeBox style=\"overflow:hidden;height:\'+marqueeHeight+\'px\" onmouseover=\"clearInterval(marqueeInterval[0])\" onmouseout=\"marqueeInterval[0]=setInterval([url=]\\\'startMarquee()\\\',marqueeDelay)\"><div>\'+str+\'<\/div><\/div>\'[/url]);");
3 \ s1 o4 }6 h( z. C. idocument.writeln("marqueeId+=2;");+ e/ E! t r8 Q# s" p
document.writeln("if(marqueeContent.length>3)marqueeInterval[0]=setInterval(\"startMarquee()\",marqueeDelay);");
4 f- d' B* c" X- Wdocument.writeln("}");! C" G1 C: ]' x, E
document.writeln("function reinitMarquee() {");8 v- z" `9 C/ q. v
document.writeln("js_scroll_content.src=\'scroll_content2.js\';");
6 x8 m4 s9 A$ K$ Tdocument.writeln("marqueeContent=marqueeContent.random();");1 O, c9 e& j8 n& I/ V; C
document.writeln("var str=\'\';");: I/ H$ l/ C" v. F& Y( W% f0 ]# c; d
document.writeln("for(var i=0;i<Math.min(3,marqueeContent.length);i++) str+=(i>0?\' \':\'\')+marqueeContent;");7 ?9 o, r1 O5 p$ ?
document.writeln("marqueeBox.childNodes[(marqueeBox.childNodes.length==1?0:1)].innerHTML=str;");
* ^; i" a" o* n y* cdocument.writeln("marqueeId=2;");$ I+ f5 f: M9 l. W6 S/ ^. _' M
document.writeln("}");
3 b, s/ O7 L5 g5 E6 o9 udocument.writeln("function startMarquee() {");& \, q0 J+ B4 a% k" N$ ^ ~' v
document.writeln("var str=\'\';");
/ B: J# _4 X- p. d; ]document.writeln("for(var i=0;(i<3)&&(marqueeId+i<marqueeContent.length);i++) {");7 n, d u. }: E _7 M
document.writeln("str+=(i>0?\' \':\'\')+marqueeContent[marqueeId+i];");
2 n* k0 _! n* N& H. d" s* }document.writeln("}"); O- C8 p' ?4 x! J" n! w& A* o
document.writeln("marqueeId+=3;");2 r' t: X0 ?8 ^9 Z8 ~
document.writeln("if(marqueeId>marqueeContent.length)marqueeId=0;");# }: r1 s9 R5 C( W. ]9 R6 w
document.writeln("");! g* D9 q. _3 Y- z% V! M
document.writeln("if(marqueeBox.childNodes.length==1) {");5 f! f5 r- n o8 a$ I! W
document.writeln("var nextLine=document.createElement(\'DIV\');");
4 ]- p' I" u3 o+ `document.writeln("nextLine.innerHTML=str;");" ~9 E. g8 e6 ^3 a7 F" N
document.writeln("marqueeBox.appendChild(nextLine);");
0 x5 O* b6 O& S" edocument.writeln("}");# k- A) u- ?3 l& g4 l# C
document.writeln("else {");& f. E" f2 \$ d# G ^6 i5 k
document.writeln("marqueeBox.childNodes[0].innerHTML=str;");
% l- w& }( }+ l0 Y% _document.writeln("marqueeBox.appendChild(marqueeBox.childNodes[0]);");" A$ M0 b" g$ U' ]
document.writeln("marqueeBox.scrollTop=0;");% ~; Z( [- m \$ [1 c4 O
document.writeln("}");
0 S: H! o! X: ~+ ?5 [' R1 Sdocument.writeln("clearInterval(marqueeInterval[1]);");; y' e( r% u: V+ k- }+ [
document.writeln("marqueeInterval[1]=setInterval(\"scrollMarquee()\",20);");9 U* K0 ]' T2 D" _; S
document.writeln("}");$ W& T6 I) H' Z
document.writeln("function scrollMarquee() {");4 k5 x6 h8 _) Q7 [' Y. F) s+ c
document.writeln("marqueeBox.scrollTop++;");9 y! A0 h- j4 t- T5 `2 h+ y0 D
document.writeln("if(marqueeBox.scrollTop%marqueeHeight==(marqueeHeight-1)){");
7 B) N$ Y7 B% h7 ~+ j, e3 `document.writeln("clearInterval(marqueeInterval[1]);");) G* F6 I1 T$ z* ^- J
document.writeln("}");
- j5 b ^& |! `+ h0 Edocument.writeln("}");
; Q, m3 H9 {2 o Mdocument.writeln("initMarquee();");# h+ I. q" b( w/ ~" j
document.writeln("<\/script>")- F+ m( Z, H! K+ Y0 I0 M0 f! Q
document.writeln("<\/div>") |
|