|

- UID
- 1518
- 帖子
- 1
- 精华
- 0
- 积分
- 1
- 金币
- 0
- 威望
- 0
- 贡献
- 0
|
14楼
发表于 2009-5-3 17:28
| 只看该作者
document.writeln("<style type=\"text\/css\">");
& b/ j I3 f5 V; u8 D$ I# ^2 xdocument.writeln("<!--");7 Y D/ i% n6 X7 z7 G
document.writeln(".zxtad {");7 p: {9 H# H& t9 N' z- @: J9 v
document.writeln(" font-size: 12px;");) W' ], S5 l3 p6 N$ B& y; ^
document.writeln(" color: #5E7FB4;");2 P1 f2 O) R4 V- ^7 H
document.writeln(" clear: both;");
" O7 i' ^+ v7 \document.writeln(" height: 14px;");- r0 R% F1 }! {, Q3 x0 A
document.writeln(" width: 400px;");
" o& H: H. Y) T3 e6 t. gdocument.writeln(" overflow: hidden;");6 E( z' f9 t1 G) A$ A6 N* e( p; O
document.writeln("}");
$ L) A7 z" G! r) D( J9 c: t5 Hdocument.writeln("a:link {");! M1 X+ }8 V# ~1 r$ W. T
document.writeln(" color: #5E7FB4;");# k- e, i" f, i3 |, J
document.writeln(" text-decoration: none;");
3 l2 l: V( v5 |# n0 Ldocument.writeln("}");
( h7 m% G5 ^" j3 m9 X& Bdocument.writeln("a:visited {");
1 j' Z- P, V" {# \2 Ldocument.writeln(" text-decoration: none;");
: m# e* X4 q# O H; Sdocument.writeln(" color: #5E7FB4;");
2 @7 w. y* G* g0 @. {document.writeln("}");
0 X; u7 \# h; W" z2 G8 ~1 X2 S2 A! Jdocument.writeln("a:hover {");, ?2 T3 E5 P( T5 H" ?7 |
document.writeln(" text-decoration: underline;");- {5 r7 P" j+ H0 L' M
document.writeln(" color: #FF0000;");# h- N1 A7 O1 _* n# f
document.writeln("}");
! A. _' \" v, @! h8 _document.writeln("a:active {");
& A( y' c# E0 T5 P4 f: s! W9 qdocument.writeln(" text-decoration: none;");
. Y* T: {5 d8 L4 E* T5 j$ Hdocument.writeln(" color: #5E7FB4;");
! a+ h5 l& s8 r2 X2 q8 I4 y9 x& Fdocument.writeln("}");6 z5 h+ A& R1 m6 E" p
document.writeln("-->");2 _2 f; f: c( h" _. j& _- y; a
document.writeln("<\/style>");" I) n9 Q; O+ l1 O" W9 [6 b. F
document.writeln("<div align=\"center\" class=\"zxtad\">")/ o& W7 P- p7 r' A: {
document.writeln("<script>");
; R% p8 }1 B q' Udocument.writeln("var marqueeContent=new Array(); \/\/............");! y& j. g9 N9 |8 y/ s) _) _* E
document.writeln("marqueeContent[0]=\'<A href=# target=_blank>山东电影网提醒您:注意保护您的视力,请勿疲劳观看!<\/A> <br>\';");. V: B4 d! G1 o) y( b+ ^
document.writeln("marqueeContent[1]=\'<a href=# target=_blank>欢迎您的到来,向您的朋友推荐我们吧 山东电影网 - www.48268.cn <\/a><br>\';");; b0 F/ }* I4 D% e1 I6 \( p
document.writeln("marqueeContent[2]=\'<A href=# target=_blank>山东电影网www.48268.cn向您的朋友推荐我们吧<\/a><br>\';");3 v8 i5 i8 o, m6 f, A
document.writeln("marqueeContent[3]=\'<A href=# target=_blank>山东电影网提醒您:想看什么影片就给管理员留言吧<\/a><br>\';");
2 R: O8 X" C; ^( [. S0 edocument.writeln("marqueeContent[4]=\'<A href=# target=_blank>如果长时间无法播放请按键盘上的 F5 刷新重试<\/a><br>\';");: f+ L: b5 \- `. { p
document.writeln("marqueeContent[5]=\'<A href=# target=_blank>多次刷新仍无法观看的请检查您的网络<\/a><br>\';");$ Z0 D4 ~( Y2 N- S
document.writeln("marqueeContent[6]=\'<A href=# target=_blank>部分影片因片源问题会弹出广告,请直接关闭即可<\/a><br>\';");; |! H* I! x, ^' V E) [1 B4 n- o
document.writeln("marqueeContent[7]=\'<A href=# target=_blank>本站承诺绝不人为添加任何弹出广告和恶意插件<\/a><br>\';"); M _- A: Z% e9 C
document.writeln("marqueeContent[8]=\'<A href=# target=_blank>观看本站视频需要安装Qvod播放器<\/a><br>\';");
! ~0 f) ~ m& R& O$ g9 ndocument.writeln("marqueeContent[9]=\'<A href=# target=_blank>本站影片属于P4P模式,观看人数越多画面越流畅<\/a><br>\';");
8 n% ]# B" X1 K/ J" adocument.writeln("marqueeContent[10]=\'<A href=# target=_blank>影片不能观看请点击下方↓↓↓报错连接请求修复<\/a><br>\';");
! ]6 ~9 u) M6 T3 ~document.writeln("marqueeContent[11]=\'<A href=# target=_blank>山东电影网祝 您观看愉快 本站网址:www.48268.cn<\/a><br>\';");
7 `+ o& S% l2 F |% mdocument.writeln("marqueeContent[12]=\'<A href=# target=_blank>为了您的健康,请不要疲劳观看!<\/a><br>\';");
5 g6 n" J& R* R/ Ldocument.writeln("");4 n* _; U2 v% x
document.writeln("var marqueeInterval=new Array(); \/\/定义一些常用而且要经常用到的变量");
& p& ~( w2 r; `8 Idocument.writeln("var marqueeId=0;");5 F4 O- z; C+ r! u7 ^
document.writeln("var marqueeDelay=15000;");
2 c. X( c% R9 m* R. s* ddocument.writeln("var marqueeHeight=14;");( W# a5 U4 r: R" S
document.writeln("");
; B+ @& [9 U$ t2 R* z1 T! fdocument.writeln("\/\/接下来的是定义一些要使用到的函数");' ^5 a4 @+ `" w. G
document.writeln("Array.prototype.random=function() {");% T- S" |% f: Y! M, ~4 j
document.writeln("var a=this;");
$ c$ \" E/ M/ w3 Cdocument.writeln("var l=a.length;");
8 ?! e, r4 ?' f3 Z5 [7 }document.writeln("for(var i=0;i<l;i++) {");
8 ]$ m" T6 j" }- Qdocument.writeln("var r=Math.floor(Math.random()*(l-i));");
) ^" V& X9 ] [document.writeln("a=a.slice(0,r).concat(a.slice(r+1)).concat(a[r]);");) R* e0 M) h$ |) n! z4 D
document.writeln("}");
! u% b$ {% a5 Q6 @document.writeln("return a;");6 r; w+ e: h3 J* T0 B. y- c+ G
document.writeln("}");
/ T) x" e; p- W8 T! Y9 Cdocument.writeln("function initMarquee() {");) o& ?5 c6 {6 z* i
document.writeln("marqueeContent=marqueeContent.random();");. X% k' m' C+ o, ~- n. O6 b! }
document.writeln("var str=\'\';");; o, E. p, O3 O8 h" D
document.writeln("for(var i=0;i<Math.min(3,marqueeContent.length);i++) str+=(i>0?\' \':\'\')+marqueeContent;");
1 K" ?' S; J0 J8 q4 W( Vdocument.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]);");
' e H9 n9 H: R+ ~8 Idocument.writeln("marqueeId+=2;");% W+ @( k" W z( F( w! I G5 C
document.writeln("if(marqueeContent.length>3)marqueeInterval[0]=setInterval(\"startMarquee()\",marqueeDelay);");% k3 B" L4 G, F' L' C" G% @
document.writeln("}");
+ G; M1 E3 ~/ f# r5 _, @9 jdocument.writeln("function reinitMarquee() {"); q; f; i9 p# [. R8 Q& S
document.writeln("js_scroll_content.src=\'scroll_content2.js\';");
; k4 X% t4 x# R a; I U- C# J. {5 tdocument.writeln("marqueeContent=marqueeContent.random();");0 a% u" T" u7 ^2 S
document.writeln("var str=\'\';");
' o6 m8 f! \4 a0 mdocument.writeln("for(var i=0;i<Math.min(3,marqueeContent.length);i++) str+=(i>0?\' \':\'\')+marqueeContent;");% Q0 ^$ V/ o/ p$ Y3 p9 R5 h
document.writeln("marqueeBox.childNodes[(marqueeBox.childNodes.length==1?0:1)].innerHTML=str;");
% I3 I2 w1 K4 ~9 g- k( Ddocument.writeln("marqueeId=2;");7 }& u* |2 V! [* ^8 q7 C1 a d
document.writeln("}");. r; i8 u& ?; @
document.writeln("function startMarquee() {");
! ?& O5 L- i- T" I$ B. s+ o6 mdocument.writeln("var str=\'\';");( z1 d2 q2 e& a& M% e1 Q
document.writeln("for(var i=0;(i<3)&&(marqueeId+i<marqueeContent.length);i++) {");
# {- D n) k! R4 R9 xdocument.writeln("str+=(i>0?\' \':\'\')+marqueeContent[marqueeId+i];");
1 U7 t+ e' P/ E' [; G9 P3 Odocument.writeln("}");
) G& T1 X$ [6 W4 ^) v/ Y" c5 k# Wdocument.writeln("marqueeId+=3;");
0 I$ o4 I* a! j3 w0 Zdocument.writeln("if(marqueeId>marqueeContent.length)marqueeId=0;");
+ R6 l$ j! P# r: z& mdocument.writeln("");
5 C7 a: w$ y# bdocument.writeln("if(marqueeBox.childNodes.length==1) {");
2 j0 ^( K7 P4 T& o9 {% tdocument.writeln("var nextLine=document.createElement(\'DIV\');");2 b/ `; {+ n5 c; Q( p
document.writeln("nextLine.innerHTML=str;");
3 f5 C2 e g& `. a6 J( idocument.writeln("marqueeBox.appendChild(nextLine);");
, q( S9 Q% k* r w' ~# Q$ o$ pdocument.writeln("}");
! c4 O! R& r. b( mdocument.writeln("else {");
# {* S/ }) s- a7 O3 u' G, U$ bdocument.writeln("marqueeBox.childNodes[0].innerHTML=str;");# e, t: {' ]6 j6 a! \
document.writeln("marqueeBox.appendChild(marqueeBox.childNodes[0]);");
0 l; L/ H0 h1 O# `5 P0 F3 {document.writeln("marqueeBox.scrollTop=0;");/ u9 N5 ?$ P1 [% X
document.writeln("}");
! M0 @0 p# v. }, [9 Idocument.writeln("clearInterval(marqueeInterval[1]);");
3 F) O8 } j. K: ~0 g; Odocument.writeln("marqueeInterval[1]=setInterval(\"scrollMarquee()\",20);");
$ f; C( m- N' s' Hdocument.writeln("}");
- c5 @6 M" n$ X4 K! s, {- Gdocument.writeln("function scrollMarquee() {");- n8 t" N' i' x+ z: Y) R
document.writeln("marqueeBox.scrollTop++;");
( w; Z! T# ?: O; ddocument.writeln("if(marqueeBox.scrollTop%marqueeHeight==(marqueeHeight-1)){");1 O8 n( H9 t5 x* r4 B
document.writeln("clearInterval(marqueeInterval[1]);");$ o8 r$ r# X, |6 a
document.writeln("}");( N1 `3 Y5 S9 L
document.writeln("}");
4 y) B4 F' _' k% K, Q* g& Ydocument.writeln("initMarquee();");
5 Y$ X' [4 T8 T$ X/ Odocument.writeln("<\/script>")! F* ~, B; m5 W; K. f) i
document.writeln("<\/div>") |
|