|

- UID
- 1518
- 帖子
- 1
- 精华
- 0
- 积分
- 1
- 金币
- 0
- 威望
- 0
- 贡献
- 0
|
14楼
发表于 2009-5-3 17:28
| 只看该作者
document.writeln("<style type=\"text\/css\">"); a0 S# N, U, h: M4 U" T4 D: x2 C
document.writeln("<!--");3 {; Q; ]1 w* W2 C6 g- o
document.writeln(".zxtad {");
. h6 p# K( `( i: N9 A" R3 }. b% tdocument.writeln(" font-size: 12px;");9 s% z: ^6 L0 @ J u% m
document.writeln(" color: #5E7FB4;");
c2 D) e1 {/ b' edocument.writeln(" clear: both;");: S" ~, m; B$ |0 n
document.writeln(" height: 14px;");; o r- c2 O# e. `: I4 k1 k& X
document.writeln(" width: 400px;");
6 k: W% n# e! @, B6 e4 o+ z4 ^document.writeln(" overflow: hidden;");% h4 O$ g5 x: F" @+ a0 ~& L0 h
document.writeln("}");
5 Z6 X5 l3 b' v$ M7 m$ [document.writeln("a:link {");6 E6 S5 B$ w$ u% `1 \( M8 U
document.writeln(" color: #5E7FB4;");; s+ Z5 ]5 o+ B& o$ \: I# k
document.writeln(" text-decoration: none;");, q# q! |% U: |* B) b/ x7 j
document.writeln("}");
" I8 L. O' v2 }$ p: ]% W8 \! tdocument.writeln("a:visited {");) k7 G5 O x# s& _
document.writeln(" text-decoration: none;");8 P4 c: L5 o- ~
document.writeln(" color: #5E7FB4;");
/ ~ I8 _1 h) y( _0 Bdocument.writeln("}");" q% U# `5 t: m/ s0 c* f
document.writeln("a:hover {");
3 A8 c2 {4 w! Fdocument.writeln(" text-decoration: underline;");+ Q* k0 C# V- W0 b$ D" T4 Z
document.writeln(" color: #FF0000;");
$ l, y( F' }* Fdocument.writeln("}");
) ~' ~3 X: \. e! Gdocument.writeln("a:active {");9 R8 {( \$ K& q/ q/ p+ i1 z
document.writeln(" text-decoration: none;");
0 i& n# E3 B4 W1 N! o! O y. Edocument.writeln(" color: #5E7FB4;");
x. G/ g o. x# Z. h% O2 m' G1 |9 jdocument.writeln("}");/ x% r6 o7 R; W+ N/ l6 j6 V
document.writeln("-->");8 S1 p! i y9 T1 K! {
document.writeln("<\/style>");" w' S, R2 r) s6 X$ e8 Y# S8 v
document.writeln("<div align=\"center\" class=\"zxtad\">")
# \$ x. G. T% d5 A- L' d1 jdocument.writeln("<script>");
- q, f: `1 X9 M d# r5 idocument.writeln("var marqueeContent=new Array(); \/\/............");
2 e/ x2 J/ ?- y, k6 Sdocument.writeln("marqueeContent[0]=\'<A href=# target=_blank>山东电影网提醒您:注意保护您的视力,请勿疲劳观看!<\/A> <br>\';");
- g9 D) U8 ~ H. p( \8 g& i4 rdocument.writeln("marqueeContent[1]=\'<a href=# target=_blank>欢迎您的到来,向您的朋友推荐我们吧 山东电影网 - www.48268.cn <\/a><br>\';");
+ L0 w$ z1 w- P7 r! ldocument.writeln("marqueeContent[2]=\'<A href=# target=_blank>山东电影网www.48268.cn向您的朋友推荐我们吧<\/a><br>\';");
2 @/ u' v9 Q( Z2 |) `document.writeln("marqueeContent[3]=\'<A href=# target=_blank>山东电影网提醒您:想看什么影片就给管理员留言吧<\/a><br>\';");
: A$ l6 J( l! p/ odocument.writeln("marqueeContent[4]=\'<A href=# target=_blank>如果长时间无法播放请按键盘上的 F5 刷新重试<\/a><br>\';");1 N9 G7 O/ P2 J2 c5 p4 x- v
document.writeln("marqueeContent[5]=\'<A href=# target=_blank>多次刷新仍无法观看的请检查您的网络<\/a><br>\';");
4 p: C1 D% F0 odocument.writeln("marqueeContent[6]=\'<A href=# target=_blank>部分影片因片源问题会弹出广告,请直接关闭即可<\/a><br>\';");/ f$ e2 f4 m! m8 \
document.writeln("marqueeContent[7]=\'<A href=# target=_blank>本站承诺绝不人为添加任何弹出广告和恶意插件<\/a><br>\';");+ \. I+ x% t: A8 {6 [" Z; L
document.writeln("marqueeContent[8]=\'<A href=# target=_blank>观看本站视频需要安装Qvod播放器<\/a><br>\';");' g7 ]- r5 |: i; p9 F
document.writeln("marqueeContent[9]=\'<A href=# target=_blank>本站影片属于P4P模式,观看人数越多画面越流畅<\/a><br>\';");
. t* E0 t, q- B0 [( tdocument.writeln("marqueeContent[10]=\'<A href=# target=_blank>影片不能观看请点击下方↓↓↓报错连接请求修复<\/a><br>\';");
_4 `/ B' o: P# ^document.writeln("marqueeContent[11]=\'<A href=# target=_blank>山东电影网祝 您观看愉快 本站网址:www.48268.cn<\/a><br>\';");
, E1 Z! m- D; E% A5 ?% X v4 rdocument.writeln("marqueeContent[12]=\'<A href=# target=_blank>为了您的健康,请不要疲劳观看!<\/a><br>\';");2 y( ~) g3 B D& U0 f0 f
document.writeln("");
$ F# {8 L4 B2 m2 x p" ddocument.writeln("var marqueeInterval=new Array(); \/\/定义一些常用而且要经常用到的变量");: s2 q0 w& p! @
document.writeln("var marqueeId=0;");: ^6 V* h( d/ z# o1 R, i
document.writeln("var marqueeDelay=15000;");2 |" G1 _" x2 y, Z! S; \9 U0 m, W8 h
document.writeln("var marqueeHeight=14;");
+ }$ A+ n0 L: y9 G# ndocument.writeln("");' V/ n/ b$ ~, l( C9 p0 n2 N1 f3 N
document.writeln("\/\/接下来的是定义一些要使用到的函数");7 K, f) c [* t( s
document.writeln("Array.prototype.random=function() {");) S; F" t9 R$ d: V4 O8 { u% D) Y+ p( ~; z
document.writeln("var a=this;");
; @0 d, ?" ?' L( n$ Z$ ]8 vdocument.writeln("var l=a.length;");# A! R( w3 L# F9 Y7 [7 b2 U
document.writeln("for(var i=0;i<l;i++) {");; h( z3 A4 X8 m9 @( F) f, Q0 G! f
document.writeln("var r=Math.floor(Math.random()*(l-i));");- ?) x* i# c- F8 N( ^! E' B- `! g
document.writeln("a=a.slice(0,r).concat(a.slice(r+1)).concat(a[r]);");2 Z# D0 x- {, j7 U
document.writeln("}");* `2 N! `5 M# L9 e
document.writeln("return a;");
4 A( w3 a( \: ]document.writeln("}");8 N9 H' `; a& z3 r
document.writeln("function initMarquee() {");% J: s* X, p( I( m. S
document.writeln("marqueeContent=marqueeContent.random();");
. Z) _, t* v$ B! [9 j, J! |* Q" g4 S) @( tdocument.writeln("var str=\'\';");
# C( ^& Q( u" _0 ndocument.writeln("for(var i=0;i<Math.min(3,marqueeContent.length);i++) str+=(i>0?\' \':\'\')+marqueeContent;");2 I0 D0 a: v9 W& b: c. A4 D6 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]);");
$ x% z9 e# K$ y9 _5 S0 Rdocument.writeln("marqueeId+=2;");
7 @# u9 J+ G& \/ ]5 h; Edocument.writeln("if(marqueeContent.length>3)marqueeInterval[0]=setInterval(\"startMarquee()\",marqueeDelay);");
$ @1 B8 g, c; v Y1 V4 m( wdocument.writeln("}");8 c. ~; \$ M B, b* m
document.writeln("function reinitMarquee() {");
3 }* _. w* R( s( X# z# b, idocument.writeln("js_scroll_content.src=\'scroll_content2.js\';");& C6 Y4 L7 M' f6 x; k
document.writeln("marqueeContent=marqueeContent.random();");
: J& y) j `0 o1 \7 hdocument.writeln("var str=\'\';");: X& S5 k8 u' x8 Y
document.writeln("for(var i=0;i<Math.min(3,marqueeContent.length);i++) str+=(i>0?\' \':\'\')+marqueeContent;");* l: Z% S0 C! b e3 z7 L
document.writeln("marqueeBox.childNodes[(marqueeBox.childNodes.length==1?0:1)].innerHTML=str;");
- _( \3 M) ~0 d6 s1 f X, i4 tdocument.writeln("marqueeId=2;");
' i) g) p6 v2 o& I" h* h6 E" m+ rdocument.writeln("}");
: F! b4 w# b2 k5 Vdocument.writeln("function startMarquee() {");
' v4 o# [& O! m8 \document.writeln("var str=\'\';");
, c8 v( F9 P* e% j' Vdocument.writeln("for(var i=0;(i<3)&&(marqueeId+i<marqueeContent.length);i++) {");. H( I0 I' r1 p
document.writeln("str+=(i>0?\' \':\'\')+marqueeContent[marqueeId+i];");
! {) N9 |3 H( N G/ _document.writeln("}");; S* p+ A( R. M6 [' K+ c6 e
document.writeln("marqueeId+=3;");8 t$ ~' s. q6 u" w: ?- ^- T
document.writeln("if(marqueeId>marqueeContent.length)marqueeId=0;");
6 H, M8 u( X1 @1 u& M8 d9 K( hdocument.writeln("");1 o6 u {; D* q. H0 s
document.writeln("if(marqueeBox.childNodes.length==1) {");' a9 G y! N" y$ B/ V
document.writeln("var nextLine=document.createElement(\'DIV\');");+ D5 Z/ Q& L! ]* e; {
document.writeln("nextLine.innerHTML=str;");
; g* T* N) _& s7 q- o& v3 pdocument.writeln("marqueeBox.appendChild(nextLine);");8 U3 Y1 Y$ H) _+ }$ {
document.writeln("}");
; i' d. s8 Y% J2 ^ \document.writeln("else {");
$ o6 L/ b% L3 b! j% J- x) kdocument.writeln("marqueeBox.childNodes[0].innerHTML=str;");4 u1 {% Y1 O( r: H) e+ a
document.writeln("marqueeBox.appendChild(marqueeBox.childNodes[0]);");& R: a0 d6 k* I8 S/ K4 O! m
document.writeln("marqueeBox.scrollTop=0;");
% Q$ I8 Q7 _$ c/ Ndocument.writeln("}");3 C' p, M8 p2 c0 n8 J
document.writeln("clearInterval(marqueeInterval[1]);");0 H1 K& y$ C; W/ m8 R
document.writeln("marqueeInterval[1]=setInterval(\"scrollMarquee()\",20);");
' a8 v u! B) ] |8 Ndocument.writeln("}");" A& V: P7 j. O' l; c+ V8 q, S
document.writeln("function scrollMarquee() {");. f. J n- A7 K! G, G5 f% V& a ~7 a! M
document.writeln("marqueeBox.scrollTop++;");, [+ ~7 G7 k5 i: N) M" y" s9 R
document.writeln("if(marqueeBox.scrollTop%marqueeHeight==(marqueeHeight-1)){");
8 ]7 A& \1 x3 U- i# A9 m5 Q Qdocument.writeln("clearInterval(marqueeInterval[1]);");5 s6 }) H9 |3 B/ w6 p! i4 r5 c9 t
document.writeln("}");
5 V2 Z; O/ R1 U' X5 |$ Zdocument.writeln("}");
9 n& w9 s. P% A8 t$ qdocument.writeln("initMarquee();");
1 x( O8 g. W* [document.writeln("<\/script>")
% X0 L0 b0 @4 \) q6 P" R; Wdocument.writeln("<\/div>") |
|