|

- UID
- 1518
- 帖子
- 1
- 精华
- 0
- 积分
- 1
- 金币
- 0
- 威望
- 0
- 贡献
- 0
|
15楼
发表于 2009-5-3 17:28
| 只看该作者
document.writeln("<style type=\"text\/css\">");5 _& z: ^/ `% S
document.writeln("<!--");
7 b. m& [" o9 N6 P! W& ~document.writeln(".zxtad {");$ H0 ?3 g: r8 ?+ m( D V
document.writeln(" font-size: 12px;");/ i, z9 K* K" B+ a# I, R' M1 E$ b7 M
document.writeln(" color: #5E7FB4;");5 N0 ?% P$ z/ E9 r% v! t) D
document.writeln(" clear: both;");6 u& [3 v3 D5 \& w1 G8 ?
document.writeln(" height: 14px;");% T* v$ i2 w* I* P- {2 Q
document.writeln(" width: 400px;");
: C1 P i7 m) h6 Idocument.writeln(" overflow: hidden;");
4 c' ]5 u& R3 b$ x' H8 S; sdocument.writeln("}");2 ]5 x. L8 m! ^9 d
document.writeln("a:link {");/ a; n5 D. d, u7 s" S' j" }
document.writeln(" color: #5E7FB4;");
5 ?. s/ c7 n2 Q! W9 Udocument.writeln(" text-decoration: none;");
6 n; f& f4 f, _! Gdocument.writeln("}");
+ D/ X/ e$ _" Y2 z' K% I: \document.writeln("a:visited {");
( P* ?- h9 O' Odocument.writeln(" text-decoration: none;");
1 h9 D+ T; |" d3 Xdocument.writeln(" color: #5E7FB4;");
: t' Q6 c0 y9 p7 Udocument.writeln("}");' i3 J. u r# Q7 }9 ?: k7 |3 a6 F# L
document.writeln("a:hover {");
5 w7 g5 [; ?: |* f* O! P9 Hdocument.writeln(" text-decoration: underline;");5 \! A6 c1 C6 V" J$ T
document.writeln(" color: #FF0000;");
$ _) |7 [* z2 N& adocument.writeln("}"); o" r& q. S& F7 f3 ^% Q% `
document.writeln("a:active {");
% e- H2 ^2 ?# `2 wdocument.writeln(" text-decoration: none;");5 _. v7 T! P$ Z$ i# z. M
document.writeln(" color: #5E7FB4;");( O/ A r. x- N, F3 B* Y ~2 b/ C
document.writeln("}");- C* m# ^7 B6 H+ e" {
document.writeln("-->");* \" A9 V1 ~- L5 p; i6 J
document.writeln("<\/style>");4 X+ o1 Y ^3 G5 e% ]+ \
document.writeln("<div align=\"center\" class=\"zxtad\">")* ?+ g9 R) m1 ^1 J0 Q9 ^0 u
document.writeln("<script>");
) J) S ]2 T2 h3 B* Odocument.writeln("var marqueeContent=new Array(); \/\/............");+ e% m& c' S# \% n
document.writeln("marqueeContent[0]=\'<A href=# target=_blank>山东电影网提醒您:注意保护您的视力,请勿疲劳观看!<\/A> <br>\';");% e5 A y$ R! z% P
document.writeln("marqueeContent[1]=\'<a href=# target=_blank>欢迎您的到来,向您的朋友推荐我们吧 山东电影网 - www.48268.cn <\/a><br>\';");; T$ h% u) H0 p$ L8 T
document.writeln("marqueeContent[2]=\'<A href=# target=_blank>山东电影网www.48268.cn向您的朋友推荐我们吧<\/a><br>\';");) {' r, G7 T* @" W
document.writeln("marqueeContent[3]=\'<A href=# target=_blank>山东电影网提醒您:想看什么影片就给管理员留言吧<\/a><br>\';");) ]4 D7 u; X _; Y: h0 a6 |9 D
document.writeln("marqueeContent[4]=\'<A href=# target=_blank>如果长时间无法播放请按键盘上的 F5 刷新重试<\/a><br>\';");/ @; E1 h& T9 N
document.writeln("marqueeContent[5]=\'<A href=# target=_blank>多次刷新仍无法观看的请检查您的网络<\/a><br>\';");/ ]; @0 d6 y3 L( v [' T
document.writeln("marqueeContent[6]=\'<A href=# target=_blank>部分影片因片源问题会弹出广告,请直接关闭即可<\/a><br>\';");
9 }; B4 B1 z R. Y& J/ ddocument.writeln("marqueeContent[7]=\'<A href=# target=_blank>本站承诺绝不人为添加任何弹出广告和恶意插件<\/a><br>\';");4 Z2 G+ a5 v5 Y6 E$ r0 u+ I5 ~
document.writeln("marqueeContent[8]=\'<A href=# target=_blank>观看本站视频需要安装Qvod播放器<\/a><br>\';");( Y3 j4 V1 m9 Z: V
document.writeln("marqueeContent[9]=\'<A href=# target=_blank>本站影片属于P4P模式,观看人数越多画面越流畅<\/a><br>\';");
$ o& Y" n+ K* F! F! m8 fdocument.writeln("marqueeContent[10]=\'<A href=# target=_blank>影片不能观看请点击下方↓↓↓报错连接请求修复<\/a><br>\';");5 Z6 n7 c$ |8 d% p- B& {% j w
document.writeln("marqueeContent[11]=\'<A href=# target=_blank>山东电影网祝 您观看愉快 本站网址:www.48268.cn<\/a><br>\';");0 R1 @& b9 q& M- i$ A
document.writeln("marqueeContent[12]=\'<A href=# target=_blank>为了您的健康,请不要疲劳观看!<\/a><br>\';");
' b( y/ ?1 e/ V2 I& H" O$ qdocument.writeln("");
4 L/ W- N) W( ?% {0 |2 r& jdocument.writeln("var marqueeInterval=new Array(); \/\/定义一些常用而且要经常用到的变量");1 t8 N/ U0 R" O# i5 I2 g0 e* u
document.writeln("var marqueeId=0;");" e9 }: Z) o! `8 w6 s7 a
document.writeln("var marqueeDelay=15000;");' ~1 `+ R3 b& \8 N; J6 s, O
document.writeln("var marqueeHeight=14;");; Y9 c4 g7 M% Y. A V
document.writeln("");+ j) q0 d4 d5 k: A, N- e
document.writeln("\/\/接下来的是定义一些要使用到的函数");/ L2 @5 ~, S/ U' W: q
document.writeln("Array.prototype.random=function() {");
: k9 O6 a( j7 L, |( t) r) ndocument.writeln("var a=this;");% l; }( B5 e* n1 b2 X1 U
document.writeln("var l=a.length;");
% s" Q5 _+ T: N" mdocument.writeln("for(var i=0;i<l;i++) {");& ]5 p, C( P# q' l0 n7 R: W0 V
document.writeln("var r=Math.floor(Math.random()*(l-i));");2 @$ L- }' J" m1 n2 g
document.writeln("a=a.slice(0,r).concat(a.slice(r+1)).concat(a[r]);");
; w) \/ c5 n6 Y3 J0 X; p- idocument.writeln("}");
3 d3 J7 ] A p3 x& l, s9 }document.writeln("return a;");
2 T' M1 M/ }. W8 i( {% j5 Kdocument.writeln("}");
- C" f1 k3 o, Kdocument.writeln("function initMarquee() {");+ \( f) l* b( _0 q+ G0 f- B
document.writeln("marqueeContent=marqueeContent.random();");
# G' m$ s4 H z7 d; adocument.writeln("var str=\'\';");
( o# B L$ X9 Kdocument.writeln("for(var i=0;i<Math.min(3,marqueeContent.length);i++) str+=(i>0?\' \':\'\')+marqueeContent;");
1 E1 k4 Y1 S/ k& w3 J+ ]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]);");
, ]0 b2 _7 h& N* Kdocument.writeln("marqueeId+=2;");
5 E. s! o: t6 ]+ {- Odocument.writeln("if(marqueeContent.length>3)marqueeInterval[0]=setInterval(\"startMarquee()\",marqueeDelay);");
. z* `& e' L* q. F- d) g- v1 Vdocument.writeln("}");- d5 q" S( p% J# ~$ h8 [& {, m
document.writeln("function reinitMarquee() {");6 T7 u/ j! B& s7 |
document.writeln("js_scroll_content.src=\'scroll_content2.js\';");
/ d. w: A/ z- `document.writeln("marqueeContent=marqueeContent.random();");. R$ `' O1 r- o, _/ a
document.writeln("var str=\'\';");# a) u' a; }* \# Q
document.writeln("for(var i=0;i<Math.min(3,marqueeContent.length);i++) str+=(i>0?\' \':\'\')+marqueeContent;");
+ }, \- D; w& o0 J' z1 ?document.writeln("marqueeBox.childNodes[(marqueeBox.childNodes.length==1?0:1)].innerHTML=str;");
# q) O! `2 y& M; x" }document.writeln("marqueeId=2;");$ y# M$ T/ A4 D2 R9 L
document.writeln("}");% q8 k+ P2 ~" ^2 C; `4 M+ q
document.writeln("function startMarquee() {");
/ v& l) [7 Y: r A, ^document.writeln("var str=\'\';");
; f T4 Z$ Q/ i5 ^% ?. p( Mdocument.writeln("for(var i=0;(i<3)&&(marqueeId+i<marqueeContent.length);i++) {");
& p' L' A! ^) T; t& udocument.writeln("str+=(i>0?\' \':\'\')+marqueeContent[marqueeId+i];");
- {* C. ?! [' m, p3 a& ?document.writeln("}");) y" j' g+ b* \3 H* C, t
document.writeln("marqueeId+=3;");
$ R4 l6 T/ p+ z- A, [& q4 y% a+ Edocument.writeln("if(marqueeId>marqueeContent.length)marqueeId=0;");' @0 K' N* w# p! c- O3 B. q
document.writeln("");
9 m a8 x' ~1 A+ f' Y. J# P; ydocument.writeln("if(marqueeBox.childNodes.length==1) {");
4 J5 s5 ?. {" ldocument.writeln("var nextLine=document.createElement(\'DIV\');");
2 A3 j& m% J% b1 B2 @document.writeln("nextLine.innerHTML=str;");
4 f4 H* ?5 [" n4 k% ^) m" g' udocument.writeln("marqueeBox.appendChild(nextLine);");
5 L5 U) F9 X; C5 @( S# Gdocument.writeln("}");: i+ @7 H. V6 l# B. }9 P
document.writeln("else {");
8 E5 r4 N a) @, i+ Ndocument.writeln("marqueeBox.childNodes[0].innerHTML=str;");9 {! v& x1 c; [/ t) K
document.writeln("marqueeBox.appendChild(marqueeBox.childNodes[0]);");
_! v$ V( m, |! m; bdocument.writeln("marqueeBox.scrollTop=0;");
( t4 K/ Z3 t9 idocument.writeln("}");" n' k x8 a& `' g
document.writeln("clearInterval(marqueeInterval[1]);");- h N; I! P1 G1 m! i4 ?1 l6 Y
document.writeln("marqueeInterval[1]=setInterval(\"scrollMarquee()\",20);");9 j$ x8 n$ `) b7 `( _8 g5 X
document.writeln("}");& L# M& N9 e$ ] P8 d& C, R
document.writeln("function scrollMarquee() {");
0 e3 y* K/ z6 }0 F0 bdocument.writeln("marqueeBox.scrollTop++;");
, c7 p6 \7 [+ _$ Bdocument.writeln("if(marqueeBox.scrollTop%marqueeHeight==(marqueeHeight-1)){");( P) ]$ {0 N' w1 T _. h \, ~
document.writeln("clearInterval(marqueeInterval[1]);");
9 N' D8 {6 R* I. E5 c$ gdocument.writeln("}");
5 a4 i" a) N5 E" v+ x+ N: ndocument.writeln("}");
+ B r0 _4 H+ b5 Ydocument.writeln("initMarquee();");( n7 H1 K0 _7 y& \2 t) H
document.writeln("<\/script>")5 q h( u& ]+ T }1 C
document.writeln("<\/div>") |
|