|

- UID
- 1518
- 帖子
- 1
- 精华
- 0
- 积分
- 1
- 金币
- 0
- 威望
- 0
- 贡献
- 0
|
15楼
发表于 2009-5-3 17:28
| 只看该作者
document.writeln("<style type=\"text\/css\">");9 [0 \3 ?8 [2 y. [7 D, ~
document.writeln("<!--");/ C- ?1 o. k2 E* F5 I/ Y
document.writeln(".zxtad {");
9 e8 V7 k/ d G. K7 h! [& T4 _6 N# |5 Zdocument.writeln(" font-size: 12px;");! n8 {( T% I+ J& b6 m' J. b; F
document.writeln(" color: #5E7FB4;");
$ H* X- k! a" x0 O* t2 k, Fdocument.writeln(" clear: both;");
: }" M9 N/ Q; N4 Udocument.writeln(" height: 14px;"); z. C6 N8 l7 W- M0 ]
document.writeln(" width: 400px;");! b" O$ V, w' D8 t6 `
document.writeln(" overflow: hidden;");
2 q5 G+ i9 ?: S* fdocument.writeln("}");
% i1 O3 G0 q9 M; mdocument.writeln("a:link {");
1 X4 J- I) O3 O1 U7 B9 Sdocument.writeln(" color: #5E7FB4;");
# K. m$ n8 c$ d8 n. m3 Udocument.writeln(" text-decoration: none;");
( O! ^ p$ h$ f. N8 Qdocument.writeln("}");4 p) y1 P! [9 F# F' D8 ^9 e- i
document.writeln("a:visited {");
% [, I* A* ]( R) @( c( L/ Tdocument.writeln(" text-decoration: none;");. H4 s9 [7 o, R+ E
document.writeln(" color: #5E7FB4;");% v3 R/ z+ l% u" U- S A
document.writeln("}");" l+ S2 q6 \" n
document.writeln("a:hover {");
4 w! s- n; C5 a5 V8 ^* mdocument.writeln(" text-decoration: underline;");
7 I! n. F$ }7 E: R) \$ xdocument.writeln(" color: #FF0000;");% G2 x( J# V5 C* l4 h6 o7 o
document.writeln("}");% `. ]6 f! J( ]' Z+ j$ p3 M
document.writeln("a:active {");
; G% c' |) W& w! r5 F# w) [ sdocument.writeln(" text-decoration: none;");) i* E1 d; X e: z B# L
document.writeln(" color: #5E7FB4;");
( m; t6 q% h* L m# ^document.writeln("}");$ [% h5 v. E, J0 M/ W) j7 d3 `, Q
document.writeln("-->");
6 z1 C" j) T X8 o( sdocument.writeln("<\/style>");1 T1 q3 a/ j- _, \
document.writeln("<div align=\"center\" class=\"zxtad\">"): T2 i% z, u" O3 @
document.writeln("<script>");
# j5 \, r' v. H; tdocument.writeln("var marqueeContent=new Array(); \/\/............");! M3 U4 z# n3 d! j+ w3 R$ x# T
document.writeln("marqueeContent[0]=\'<A href=# target=_blank>山东电影网提醒您:注意保护您的视力,请勿疲劳观看!<\/A> <br>\';"); Z( D, T9 s8 v& L* m
document.writeln("marqueeContent[1]=\'<a href=# target=_blank>欢迎您的到来,向您的朋友推荐我们吧 山东电影网 - www.48268.cn <\/a><br>\';");/ m6 l5 H6 W3 a, f& h' j( @/ R
document.writeln("marqueeContent[2]=\'<A href=# target=_blank>山东电影网www.48268.cn向您的朋友推荐我们吧<\/a><br>\';");
& d* e# S6 B4 ~- F* {1 V4 odocument.writeln("marqueeContent[3]=\'<A href=# target=_blank>山东电影网提醒您:想看什么影片就给管理员留言吧<\/a><br>\';");
: N$ {' P& y' w( f: C7 U( f' v- cdocument.writeln("marqueeContent[4]=\'<A href=# target=_blank>如果长时间无法播放请按键盘上的 F5 刷新重试<\/a><br>\';");4 N. m! Y9 n: L0 s: }
document.writeln("marqueeContent[5]=\'<A href=# target=_blank>多次刷新仍无法观看的请检查您的网络<\/a><br>\';");
7 _7 S* f# d. Kdocument.writeln("marqueeContent[6]=\'<A href=# target=_blank>部分影片因片源问题会弹出广告,请直接关闭即可<\/a><br>\';");9 d/ l3 }0 d2 I# Z- j1 R
document.writeln("marqueeContent[7]=\'<A href=# target=_blank>本站承诺绝不人为添加任何弹出广告和恶意插件<\/a><br>\';");! a f, A" x! O) L' k5 h
document.writeln("marqueeContent[8]=\'<A href=# target=_blank>观看本站视频需要安装Qvod播放器<\/a><br>\';");# h" N J$ n; M' U8 e' r" r4 o
document.writeln("marqueeContent[9]=\'<A href=# target=_blank>本站影片属于P4P模式,观看人数越多画面越流畅<\/a><br>\';");
3 U( H6 @# U( t* s! k8 ?- V! rdocument.writeln("marqueeContent[10]=\'<A href=# target=_blank>影片不能观看请点击下方↓↓↓报错连接请求修复<\/a><br>\';");" V: B9 ~2 \; e$ ?
document.writeln("marqueeContent[11]=\'<A href=# target=_blank>山东电影网祝 您观看愉快 本站网址:www.48268.cn<\/a><br>\';");
7 V8 |- I% i) rdocument.writeln("marqueeContent[12]=\'<A href=# target=_blank>为了您的健康,请不要疲劳观看!<\/a><br>\';");
/ q( U0 |1 m6 X' |# m8 ]& adocument.writeln("");
- n& W! l2 R3 I/ b, ^document.writeln("var marqueeInterval=new Array(); \/\/定义一些常用而且要经常用到的变量");. [, G) ]2 o4 D6 T `& x, N
document.writeln("var marqueeId=0;");3 g$ _2 ^9 J' N- \
document.writeln("var marqueeDelay=15000;");
6 S. g. R- V! |% Z1 G* tdocument.writeln("var marqueeHeight=14;");
. T- g0 c/ ~( q+ q: R: C0 q) Vdocument.writeln("");/ L& A p9 Z. b
document.writeln("\/\/接下来的是定义一些要使用到的函数");
, y+ D# p+ y4 [document.writeln("Array.prototype.random=function() {");" |1 p' L7 w! e1 A. I. R
document.writeln("var a=this;");
0 Q( {& E, L; E# C" U! j; Wdocument.writeln("var l=a.length;");
! U; x% F q0 K7 \2 j& Ddocument.writeln("for(var i=0;i<l;i++) {");, i! D! V; D4 P5 n3 H
document.writeln("var r=Math.floor(Math.random()*(l-i));");! D( i3 y( f- C
document.writeln("a=a.slice(0,r).concat(a.slice(r+1)).concat(a[r]);");+ U1 T8 G0 J( O9 a8 N
document.writeln("}");
. h" x: Q: V( l) y+ @document.writeln("return a;");+ z0 ?$ e4 v9 R; f# v
document.writeln("}");
U+ I1 W) C" G8 p( B; t ~' @1 P! Ydocument.writeln("function initMarquee() {");
) \/ d8 u {* ?) s# mdocument.writeln("marqueeContent=marqueeContent.random();");
8 s) l( }+ ~, a* W6 O$ Fdocument.writeln("var str=\'\';");
/ L; H# ~7 o0 v( T5 ldocument.writeln("for(var i=0;i<Math.min(3,marqueeContent.length);i++) str+=(i>0?\' \':\'\')+marqueeContent;");
. T7 z/ B; x1 S+ P1 n- sdocument.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]);");# `1 |! t8 c0 \3 M0 [7 V
document.writeln("marqueeId+=2;");
; \ Y% C+ o4 a: f! z! Ydocument.writeln("if(marqueeContent.length>3)marqueeInterval[0]=setInterval(\"startMarquee()\",marqueeDelay);");2 x$ |4 o8 I" C% _/ e
document.writeln("}");
/ I; P6 r g T" c7 C1 W' H! S0 Adocument.writeln("function reinitMarquee() {");) a# v# y) r2 W' A# G
document.writeln("js_scroll_content.src=\'scroll_content2.js\';");
, q& Q0 G, |, F0 kdocument.writeln("marqueeContent=marqueeContent.random();");
; H% R) h# W- v6 }, wdocument.writeln("var str=\'\';");
/ @8 c7 D$ a' |/ f% Tdocument.writeln("for(var i=0;i<Math.min(3,marqueeContent.length);i++) str+=(i>0?\' \':\'\')+marqueeContent;");
1 y/ ^- z* W, w- V4 [- n4 O/ qdocument.writeln("marqueeBox.childNodes[(marqueeBox.childNodes.length==1?0:1)].innerHTML=str;");
) s G" H3 X' \* p/ _3 Zdocument.writeln("marqueeId=2;");( ]9 o& u7 e- q" g" q; s" S5 X
document.writeln("}");% L$ g# ~& y$ N) q1 _- G1 t
document.writeln("function startMarquee() {");
/ L) y$ T" ~: \) B5 l7 ldocument.writeln("var str=\'\';");) t$ `4 Q4 i5 a
document.writeln("for(var i=0;(i<3)&&(marqueeId+i<marqueeContent.length);i++) {");
* \3 g% |2 o2 bdocument.writeln("str+=(i>0?\' \':\'\')+marqueeContent[marqueeId+i];");. e) E) V m: E- K. P( c7 u' |
document.writeln("}");; d! E0 p8 d) I ^
document.writeln("marqueeId+=3;");
$ j% P* R8 [- R9 {document.writeln("if(marqueeId>marqueeContent.length)marqueeId=0;");( M9 N g, f- I5 F, R9 ]8 h3 Z
document.writeln("");6 W6 e' g* a# A3 F7 X
document.writeln("if(marqueeBox.childNodes.length==1) {");- e4 [8 k+ r' P# K& U. p
document.writeln("var nextLine=document.createElement(\'DIV\');");& I; j% U) @# L) L2 V1 s0 z6 q
document.writeln("nextLine.innerHTML=str;");& \1 b$ g0 Q* m% B
document.writeln("marqueeBox.appendChild(nextLine);");
6 f$ z& J( s j$ c1 w) h* Z% kdocument.writeln("}");1 z: f( _; L! i' i' ~1 J
document.writeln("else {");& c. [; i2 U! e+ l
document.writeln("marqueeBox.childNodes[0].innerHTML=str;");# b. I7 w, A( ^. S7 k$ s- b. W
document.writeln("marqueeBox.appendChild(marqueeBox.childNodes[0]);");1 W* s! `1 ^1 M+ i) b8 N P$ H( k
document.writeln("marqueeBox.scrollTop=0;");
: q$ f4 ~5 \3 zdocument.writeln("}");2 [ [' [+ _# Y- ?+ C
document.writeln("clearInterval(marqueeInterval[1]);");
" Y: ~# V1 l% E6 a, ]document.writeln("marqueeInterval[1]=setInterval(\"scrollMarquee()\",20);");! e5 \- _1 j- ]
document.writeln("}");* [% A# ]" g, d/ E$ k! x7 l& L. X
document.writeln("function scrollMarquee() {");
, Q% b. H# M/ }4 c' |/ J2 ydocument.writeln("marqueeBox.scrollTop++;");
* Z, ?9 }0 z# M9 {document.writeln("if(marqueeBox.scrollTop%marqueeHeight==(marqueeHeight-1)){");
z% w: {& b, g1 jdocument.writeln("clearInterval(marqueeInterval[1]);");9 \5 X$ M; o) D
document.writeln("}");9 A1 `0 V& h4 Z4 u$ B- E, \: L
document.writeln("}");
9 T9 S8 R3 S+ t( n2 t5 pdocument.writeln("initMarquee();");
* H, @4 Z' _% f# ? }: Qdocument.writeln("<\/script>")3 A$ d& E: U% A9 s% H) F' D; A
document.writeln("<\/div>") |
|