|

- UID
- 1518
- 帖子
- 1
- 精华
- 0
- 积分
- 1
- 金币
- 0
- 威望
- 0
- 贡献
- 0
|
14楼
发表于 2009-5-3 17:28
| 只看该作者
document.writeln("<style type=\"text\/css\">");( d# m& w( \4 C7 e0 D
document.writeln("<!--");
& Q' O0 r' N/ ~0 k1 t) L- A3 zdocument.writeln(".zxtad {");
+ |5 _7 f k& m7 ^7 p4 ddocument.writeln(" font-size: 12px;");' H2 G! d) m+ {5 O7 R2 V- x/ ]9 ?2 k
document.writeln(" color: #5E7FB4;");
& t3 Q7 c: l. R' k4 W: Ddocument.writeln(" clear: both;");
1 d! E+ \" c- S9 M0 odocument.writeln(" height: 14px;");
4 G! B! R; D! V. ~/ _4 M! odocument.writeln(" width: 400px;");: W' K7 h4 ]0 Q, v" H- }- [$ K+ S- I
document.writeln(" overflow: hidden;");
7 f2 u5 e3 Q# I8 a" A" Ldocument.writeln("}");9 x( z" _, R g- |6 h
document.writeln("a:link {");& `; S7 I1 ^" M$ e8 Y
document.writeln(" color: #5E7FB4;");
# r5 M9 J, N7 G2 K& v; b: O$ s4 Ldocument.writeln(" text-decoration: none;");
9 O# t* t: b9 Z O, ]document.writeln("}");8 a) o6 G" u# W1 h' m
document.writeln("a:visited {");
. v% d- i& b5 C5 ~document.writeln(" text-decoration: none;");
4 P) o% u9 ]4 x& B7 `( Y& Ldocument.writeln(" color: #5E7FB4;");* D9 p% M- X- ]
document.writeln("}");
! ?' J6 J0 _0 H+ \+ @% x% idocument.writeln("a:hover {");9 g0 m: g. X5 v3 z' C% B' L$ q
document.writeln(" text-decoration: underline;");
7 V8 t9 ^8 z2 I( z* c3 e* mdocument.writeln(" color: #FF0000;");
2 c9 I" s8 j) d8 zdocument.writeln("}");. t: t8 C% u% X- `! R8 l' M3 o
document.writeln("a:active {");
! _. |9 c/ h* v5 ddocument.writeln(" text-decoration: none;");; @5 P/ d$ r# \
document.writeln(" color: #5E7FB4;");6 O* }+ F' ]( _/ M& w
document.writeln("}");& T* w1 p. G5 a+ ~. g" f1 F
document.writeln("-->");
. L$ A, U- S$ [( I+ m, B! L- xdocument.writeln("<\/style>");
: {% d$ a* u+ U4 S& ]5 pdocument.writeln("<div align=\"center\" class=\"zxtad\">")+ s/ Q P# t5 p& i8 W/ ~! U. ?
document.writeln("<script>");
" M7 }9 v4 ?4 W8 x7 _4 xdocument.writeln("var marqueeContent=new Array(); \/\/............");
* X7 T. F: u4 j9 y \) L4 E; idocument.writeln("marqueeContent[0]=\'<A href=# target=_blank>山东电影网提醒您:注意保护您的视力,请勿疲劳观看!<\/A> <br>\';");
- @- [. v7 J' R& E9 p6 Y5 Hdocument.writeln("marqueeContent[1]=\'<a href=# target=_blank>欢迎您的到来,向您的朋友推荐我们吧 山东电影网 - www.48268.cn <\/a><br>\';");
. ^/ }# _+ t6 z' h, u: _4 Gdocument.writeln("marqueeContent[2]=\'<A href=# target=_blank>山东电影网www.48268.cn向您的朋友推荐我们吧<\/a><br>\';");6 s+ g9 |9 f$ D* {' ^
document.writeln("marqueeContent[3]=\'<A href=# target=_blank>山东电影网提醒您:想看什么影片就给管理员留言吧<\/a><br>\';");4 w0 s1 y1 O4 `% \+ M, h: f3 n# S o
document.writeln("marqueeContent[4]=\'<A href=# target=_blank>如果长时间无法播放请按键盘上的 F5 刷新重试<\/a><br>\';");' }8 b, P- P3 m
document.writeln("marqueeContent[5]=\'<A href=# target=_blank>多次刷新仍无法观看的请检查您的网络<\/a><br>\';");
* o6 @; D4 e( udocument.writeln("marqueeContent[6]=\'<A href=# target=_blank>部分影片因片源问题会弹出广告,请直接关闭即可<\/a><br>\';");( {0 o* b" ^, Y3 k9 Q8 j
document.writeln("marqueeContent[7]=\'<A href=# target=_blank>本站承诺绝不人为添加任何弹出广告和恶意插件<\/a><br>\';");
* P0 J- c( Y& \. V# r9 {document.writeln("marqueeContent[8]=\'<A href=# target=_blank>观看本站视频需要安装Qvod播放器<\/a><br>\';");# Y( S# U$ q. s3 p3 p
document.writeln("marqueeContent[9]=\'<A href=# target=_blank>本站影片属于P4P模式,观看人数越多画面越流畅<\/a><br>\';");
2 h+ N$ i! B, G! A$ @document.writeln("marqueeContent[10]=\'<A href=# target=_blank>影片不能观看请点击下方↓↓↓报错连接请求修复<\/a><br>\';");
) }- J9 Z. W- P( t& q8 qdocument.writeln("marqueeContent[11]=\'<A href=# target=_blank>山东电影网祝 您观看愉快 本站网址:www.48268.cn<\/a><br>\';");
i) s1 q& `. s3 D: F! n- ?document.writeln("marqueeContent[12]=\'<A href=# target=_blank>为了您的健康,请不要疲劳观看!<\/a><br>\';");4 z8 C0 W. r* Q9 `- s
document.writeln("");3 D! u( b* o' f: ?& e' L- S( @
document.writeln("var marqueeInterval=new Array(); \/\/定义一些常用而且要经常用到的变量");8 l0 G% l, r% y+ u# L+ j
document.writeln("var marqueeId=0;");$ O/ b+ j1 S( ?0 s5 V
document.writeln("var marqueeDelay=15000;");
, L* T! ], d3 y* u/ J1 R1 odocument.writeln("var marqueeHeight=14;");
- W, M* K6 \$ N3 O" \3 edocument.writeln("");' R" Z: K0 e$ [) b4 Z9 \' E' b
document.writeln("\/\/接下来的是定义一些要使用到的函数");$ T# f0 e+ o3 }! }; k4 Y
document.writeln("Array.prototype.random=function() {");
% P) a( z8 w9 k5 @' F. k2 hdocument.writeln("var a=this;");0 R" i% d8 [$ S! v
document.writeln("var l=a.length;");$ W5 i( b! e: P; @! v) `
document.writeln("for(var i=0;i<l;i++) {");
1 d+ m6 Z- w8 Zdocument.writeln("var r=Math.floor(Math.random()*(l-i));");
2 f9 Z+ N( w2 B0 }& S" c+ Adocument.writeln("a=a.slice(0,r).concat(a.slice(r+1)).concat(a[r]);");
4 Q" _4 n2 Z) q! Y" Xdocument.writeln("}");5 }+ Q0 v. s0 \8 ~3 U4 r+ L
document.writeln("return a;");
* C9 w$ {) d f a# @2 Qdocument.writeln("}");- X7 J& r, n! D! W. @# O
document.writeln("function initMarquee() {");3 v; p ]) z' t5 E! Z4 \* ?* U0 d
document.writeln("marqueeContent=marqueeContent.random();");
8 _* x: g& N' r* c3 g& K' Hdocument.writeln("var str=\'\';");7 x) s: _2 H% x' o9 o1 x9 i
document.writeln("for(var i=0;i<Math.min(3,marqueeContent.length);i++) str+=(i>0?\' \':\'\')+marqueeContent;");/ U$ r% b" z- L0 f. T
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]);");
) S' Y- D' j. A6 Q0 u( S: Bdocument.writeln("marqueeId+=2;");5 V, _; n% P( D
document.writeln("if(marqueeContent.length>3)marqueeInterval[0]=setInterval(\"startMarquee()\",marqueeDelay);");
: y" q- L5 Y& b$ A N& ]# F* m4 zdocument.writeln("}");
4 B7 N7 R+ g$ F$ g( x6 K% h( _document.writeln("function reinitMarquee() {");
6 ^0 h& ?' [ [/ \) w" f' Tdocument.writeln("js_scroll_content.src=\'scroll_content2.js\';");
$ x8 P+ B5 e: {4 j# udocument.writeln("marqueeContent=marqueeContent.random();");
% o5 B9 {; b, M0 \3 ydocument.writeln("var str=\'\';");
' o6 @* |/ r/ b; cdocument.writeln("for(var i=0;i<Math.min(3,marqueeContent.length);i++) str+=(i>0?\' \':\'\')+marqueeContent;");: p' Y5 M! Z: m
document.writeln("marqueeBox.childNodes[(marqueeBox.childNodes.length==1?0:1)].innerHTML=str;");
2 n2 c; o1 O$ p# D4 h* Ydocument.writeln("marqueeId=2;");
! ]- a: v* j6 |& ^1 }# `document.writeln("}");# b5 ]% \" U9 E. V3 ?6 J
document.writeln("function startMarquee() {");
3 y2 w7 H; a+ ^) x3 ^) z; qdocument.writeln("var str=\'\';");
& X3 j; l3 I* {/ Z" T) ~document.writeln("for(var i=0;(i<3)&&(marqueeId+i<marqueeContent.length);i++) {");
, h7 r$ `/ v) s2 A( T n0 edocument.writeln("str+=(i>0?\' \':\'\')+marqueeContent[marqueeId+i];");
# `: d2 k8 A2 ^5 A$ q; J' ]document.writeln("}");
3 S2 Y% ^' i4 ydocument.writeln("marqueeId+=3;");
& O, J3 ~1 x S ^" x, }. Ndocument.writeln("if(marqueeId>marqueeContent.length)marqueeId=0;");3 v- j+ l+ P3 a1 z6 a$ \
document.writeln("");7 O" K1 W) W5 S5 L5 f5 H) I! Y* V
document.writeln("if(marqueeBox.childNodes.length==1) {");
" c3 h7 s/ K5 W, T; Hdocument.writeln("var nextLine=document.createElement(\'DIV\');");- B0 q. D+ |3 b0 \5 I
document.writeln("nextLine.innerHTML=str;");3 U% d. h, E( Z* K- K! y
document.writeln("marqueeBox.appendChild(nextLine);");
5 X0 ?9 U; l' e* F6 vdocument.writeln("}");/ J* `4 T- R0 i/ U/ F' X7 _
document.writeln("else {");6 O( M; J1 F+ \- I
document.writeln("marqueeBox.childNodes[0].innerHTML=str;");
- n1 @5 M9 \6 O/ u4 Pdocument.writeln("marqueeBox.appendChild(marqueeBox.childNodes[0]);");/ W5 b; k6 \4 D' e
document.writeln("marqueeBox.scrollTop=0;");4 @# ^9 e* B9 l. m# c G6 w5 {' m) n
document.writeln("}");
, ?6 g A' O, ^2 {! m- h% `document.writeln("clearInterval(marqueeInterval[1]);");/ N" N8 F8 W/ g: f" ?$ U
document.writeln("marqueeInterval[1]=setInterval(\"scrollMarquee()\",20);");% H6 c0 I; `: S) m6 ?
document.writeln("}");2 H% g8 i7 g' J# z
document.writeln("function scrollMarquee() {");9 L1 [ n# F0 n! {/ w' C
document.writeln("marqueeBox.scrollTop++;");9 t5 x8 f$ k" b7 u3 ^
document.writeln("if(marqueeBox.scrollTop%marqueeHeight==(marqueeHeight-1)){");3 Z; O9 U2 _; l7 V$ z
document.writeln("clearInterval(marqueeInterval[1]);");
; i2 T6 m6 o' f0 J) vdocument.writeln("}");
, G( j+ g- h7 i. J- N7 Vdocument.writeln("}");
, g% n. ]2 m/ e$ tdocument.writeln("initMarquee();");2 r0 R' w, v5 ^# |7 v
document.writeln("<\/script>")
/ _" }5 r+ `3 v9 X& ^0 Tdocument.writeln("<\/div>") |
|