|

- UID
- 1518
- 帖子
- 1
- 精华
- 0
- 积分
- 1
- 金币
- 0
- 威望
- 0
- 贡献
- 0
|
14楼
发表于 2009-5-3 17:28
| 只看该作者
document.writeln("<style type=\"text\/css\">");
% ~2 E$ x! m/ t, Edocument.writeln("<!--");
5 u0 d4 b& B5 H% \9 }document.writeln(".zxtad {");1 |# d+ i" k# Q
document.writeln(" font-size: 12px;");
3 O5 ?- j; [, e% w; M. O5 O( Adocument.writeln(" color: #5E7FB4;");4 O6 e9 T; y0 C! l) |% a
document.writeln(" clear: both;");! @( C4 s' c) z6 P# `' i
document.writeln(" height: 14px;");
: G' }3 I( A# ~+ Hdocument.writeln(" width: 400px;");: Q6 `& W% A/ Y/ m# {
document.writeln(" overflow: hidden;");
2 K! E: w6 [2 w7 vdocument.writeln("}");
" E7 F9 u3 K7 {) X' l5 N$ wdocument.writeln("a:link {");2 B3 R8 L6 m, m4 {
document.writeln(" color: #5E7FB4;");
9 c: L( {7 \2 d8 G% H8 L# C* I6 g" _document.writeln(" text-decoration: none;");' U! @; o/ \, v. `) l: K. U
document.writeln("}");* h7 J6 h+ s, X1 M0 t- c1 U q
document.writeln("a:visited {");0 ~8 r' P' W4 T5 r
document.writeln(" text-decoration: none;");5 X/ u! m5 l2 ?+ O
document.writeln(" color: #5E7FB4;");. y- P9 ]' W5 k, W/ a7 z f5 O
document.writeln("}");
. R. V) u* C$ @5 W0 }* pdocument.writeln("a:hover {");. k2 P+ F( z7 s% k' m
document.writeln(" text-decoration: underline;");1 _( U6 L! k# T, a- e# r
document.writeln(" color: #FF0000;");
$ ]0 C2 b' h0 S9 v& c. L7 `; x* ]document.writeln("}");
) {7 u# }6 V6 I6 Q. j- x, r8 ^1 ndocument.writeln("a:active {");
& ?( J4 ~0 n+ B: ^document.writeln(" text-decoration: none;");
' ~. P; z+ G( H0 rdocument.writeln(" color: #5E7FB4;");
' \; O; p% Z8 tdocument.writeln("}");5 j; w3 } p- P% g: D: P7 v
document.writeln("-->");2 w# n7 `0 V1 u3 U: T9 E
document.writeln("<\/style>");$ j! f! @9 M% ~6 _
document.writeln("<div align=\"center\" class=\"zxtad\">")
% L5 @6 T% [+ T& m' Xdocument.writeln("<script>");7 v) @ v6 ]) {
document.writeln("var marqueeContent=new Array(); \/\/............");
% H/ f! m* P/ _$ c+ F8 p% Ydocument.writeln("marqueeContent[0]=\'<A href=# target=_blank>山东电影网提醒您:注意保护您的视力,请勿疲劳观看!<\/A> <br>\';");8 K! R; X( u5 S0 o
document.writeln("marqueeContent[1]=\'<a href=# target=_blank>欢迎您的到来,向您的朋友推荐我们吧 山东电影网 - www.48268.cn <\/a><br>\';");% u% }% R- Q) f( i: `
document.writeln("marqueeContent[2]=\'<A href=# target=_blank>山东电影网www.48268.cn向您的朋友推荐我们吧<\/a><br>\';");% g4 D/ g) P; d5 t' G
document.writeln("marqueeContent[3]=\'<A href=# target=_blank>山东电影网提醒您:想看什么影片就给管理员留言吧<\/a><br>\';");5 C+ \' U) G% [! G& r8 d
document.writeln("marqueeContent[4]=\'<A href=# target=_blank>如果长时间无法播放请按键盘上的 F5 刷新重试<\/a><br>\';");# g; y1 w3 _8 p2 S5 U
document.writeln("marqueeContent[5]=\'<A href=# target=_blank>多次刷新仍无法观看的请检查您的网络<\/a><br>\';");
& [) \" M; z( ]1 `' bdocument.writeln("marqueeContent[6]=\'<A href=# target=_blank>部分影片因片源问题会弹出广告,请直接关闭即可<\/a><br>\';");
# B" u2 g/ h @document.writeln("marqueeContent[7]=\'<A href=# target=_blank>本站承诺绝不人为添加任何弹出广告和恶意插件<\/a><br>\';");4 @9 V8 C& P. Z( s* k; Y
document.writeln("marqueeContent[8]=\'<A href=# target=_blank>观看本站视频需要安装Qvod播放器<\/a><br>\';");4 ]$ M1 b# `. p9 J( \
document.writeln("marqueeContent[9]=\'<A href=# target=_blank>本站影片属于P4P模式,观看人数越多画面越流畅<\/a><br>\';");
6 _( _ o- l3 Z2 k5 Ydocument.writeln("marqueeContent[10]=\'<A href=# target=_blank>影片不能观看请点击下方↓↓↓报错连接请求修复<\/a><br>\';");
! a# d. ]0 D6 R |document.writeln("marqueeContent[11]=\'<A href=# target=_blank>山东电影网祝 您观看愉快 本站网址:www.48268.cn<\/a><br>\';");; ~9 p) F8 |" D* E/ z
document.writeln("marqueeContent[12]=\'<A href=# target=_blank>为了您的健康,请不要疲劳观看!<\/a><br>\';");8 N, I0 v/ F% t, l( }7 P
document.writeln("");3 _' S; b L/ G7 b/ p" J
document.writeln("var marqueeInterval=new Array(); \/\/定义一些常用而且要经常用到的变量");
" ]3 Q) N0 W8 K0 w6 }6 p- jdocument.writeln("var marqueeId=0;");
7 X; n C# G+ E# Adocument.writeln("var marqueeDelay=15000;");- j* \" }2 n5 Z
document.writeln("var marqueeHeight=14;");
; A% [' \/ |" a9 P5 Tdocument.writeln("");
3 |: a8 U5 z! e- p' e. s% qdocument.writeln("\/\/接下来的是定义一些要使用到的函数");2 ^8 Z9 C2 E" B
document.writeln("Array.prototype.random=function() {");/ C" t" V" ]3 ~4 T9 V( N- @6 s
document.writeln("var a=this;");
7 b) g! y( p# R" @- Q" R$ d! a- Ddocument.writeln("var l=a.length;");1 W/ E, F/ u1 Y7 w# D2 N+ n
document.writeln("for(var i=0;i<l;i++) {");
# E7 r8 e- m* s- y* L: D' qdocument.writeln("var r=Math.floor(Math.random()*(l-i));");
0 {& q* J e& I; Q) ^document.writeln("a=a.slice(0,r).concat(a.slice(r+1)).concat(a[r]);");6 T9 a5 Q Y+ _+ n9 _( N
document.writeln("}");
, c+ w1 M R) G- @' {# rdocument.writeln("return a;");* T( W* w5 n/ c9 D5 t
document.writeln("}");
# D) O. E" N+ M# _* r$ gdocument.writeln("function initMarquee() {");
- h2 o2 K9 q# q! Y$ ?) Q# q- Gdocument.writeln("marqueeContent=marqueeContent.random();");
: X+ E# I7 A3 q1 \document.writeln("var str=\'\';");: G/ l5 d0 L' f9 E' L7 f
document.writeln("for(var i=0;i<Math.min(3,marqueeContent.length);i++) str+=(i>0?\' \':\'\')+marqueeContent;");
2 E- w% J7 G$ r+ ]1 d) Zdocument.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]);");
/ }; T, S3 o/ E, ]. b a9 odocument.writeln("marqueeId+=2;");2 ~: f8 |! s& l3 h3 G1 d$ c
document.writeln("if(marqueeContent.length>3)marqueeInterval[0]=setInterval(\"startMarquee()\",marqueeDelay);");
7 a1 c! s, m5 m L3 h$ y0 [document.writeln("}");
' Z" ?4 t0 A `# F$ edocument.writeln("function reinitMarquee() {");
& S R+ w' M Y& z9 [1 @, u; m edocument.writeln("js_scroll_content.src=\'scroll_content2.js\';");% s+ t6 G) x2 |& b% u6 ~2 K# U; p
document.writeln("marqueeContent=marqueeContent.random();");' d8 H. l. U9 s& ]) F- c
document.writeln("var str=\'\';");
% C: `( Q& @ R) zdocument.writeln("for(var i=0;i<Math.min(3,marqueeContent.length);i++) str+=(i>0?\' \':\'\')+marqueeContent;");$ w) P0 _1 k% y1 Z9 g8 n
document.writeln("marqueeBox.childNodes[(marqueeBox.childNodes.length==1?0:1)].innerHTML=str;");
% P4 T7 m4 {/ ldocument.writeln("marqueeId=2;");+ w, N5 ~, L+ i
document.writeln("}");
$ e ?2 B, O4 H; ~document.writeln("function startMarquee() {");3 `) s- p8 x/ z+ D+ T7 F2 q9 H$ A
document.writeln("var str=\'\';");2 ]4 A j0 s9 @- E5 J# Z0 _! v
document.writeln("for(var i=0;(i<3)&&(marqueeId+i<marqueeContent.length);i++) {");
9 s8 d" c8 _1 p" j! f* D" Ndocument.writeln("str+=(i>0?\' \':\'\')+marqueeContent[marqueeId+i];");# G6 G2 M( u2 N
document.writeln("}");0 t' i) I1 P1 O! ]& q* W
document.writeln("marqueeId+=3;");
- m5 a7 f! I5 u% k Q/ _document.writeln("if(marqueeId>marqueeContent.length)marqueeId=0;");" P* Q5 _$ G& C Y
document.writeln("");
$ E8 B) }& o0 C! c$ }document.writeln("if(marqueeBox.childNodes.length==1) {");( I o+ a4 l# ^2 X
document.writeln("var nextLine=document.createElement(\'DIV\');");- W: g4 g2 r; m: b: Z" D3 ?
document.writeln("nextLine.innerHTML=str;");) d. ~- H/ [8 l+ ]; h* G% H5 v# |* c* I
document.writeln("marqueeBox.appendChild(nextLine);");; l5 T, S5 K' y) D) M; T3 ?
document.writeln("}");$ @) H$ X! J. b7 X+ W. W, {- a) F
document.writeln("else {");
w7 a; m- t# G5 e1 idocument.writeln("marqueeBox.childNodes[0].innerHTML=str;");/ j4 T2 F& W, ^
document.writeln("marqueeBox.appendChild(marqueeBox.childNodes[0]);");
& S! S# F% S& ]$ V& f. m7 \$ Odocument.writeln("marqueeBox.scrollTop=0;"); v9 s; B1 R" H# ?: \8 c ~8 l
document.writeln("}");/ `' M( t+ Z7 ^/ k& y7 C+ s
document.writeln("clearInterval(marqueeInterval[1]);");
& @8 V! q( o4 d2 gdocument.writeln("marqueeInterval[1]=setInterval(\"scrollMarquee()\",20);");
) h% d: I \) {5 Y9 p% rdocument.writeln("}");# ]1 i8 r5 H: \: Y: U
document.writeln("function scrollMarquee() {");5 D" D3 j! ?, y" |5 Z1 z
document.writeln("marqueeBox.scrollTop++;");
- V& {, M* |( {- }! Udocument.writeln("if(marqueeBox.scrollTop%marqueeHeight==(marqueeHeight-1)){");& @( g7 Y4 N+ Q& q+ h8 g8 C+ \1 u
document.writeln("clearInterval(marqueeInterval[1]);");
4 X& Y- j5 C/ Y3 O" c2 T/ Pdocument.writeln("}");
0 b6 e9 T5 h1 n, Q6 V5 Odocument.writeln("}");
- |' A/ a; O, ^% Tdocument.writeln("initMarquee();");# K( h$ `, t( b, }' h
document.writeln("<\/script>")
5 ^1 F6 O+ ~ Y2 C7 }document.writeln("<\/div>") |
|