|

- UID
- 1518
- 帖子
- 1
- 精华
- 0
- 积分
- 1
- 金币
- 0
- 威望
- 0
- 贡献
- 0
|
14楼
发表于 2009-5-3 17:28
| 只看该作者
document.writeln("<style type=\"text\/css\">");' K, \) \3 o$ b+ e0 t7 c
document.writeln("<!--");& u1 o; |. ^9 J9 ` _$ s$ q& v% x! C
document.writeln(".zxtad {");
/ I/ g, D7 y3 r/ F2 [: h% Zdocument.writeln(" font-size: 12px;");0 }4 }; |; M2 U$ t* Y( N
document.writeln(" color: #5E7FB4;");
) _; j2 T& G' l, T+ kdocument.writeln(" clear: both;");- Y% w6 [# t4 j |" ?& A" p" n% |+ L1 f' z
document.writeln(" height: 14px;");
2 g% W6 i7 K3 I0 C2 _/ C# [document.writeln(" width: 400px;");
5 h \! X u& J2 W8 x# Rdocument.writeln(" overflow: hidden;");- X# v" O" E* f7 E( [! v
document.writeln("}");
6 p2 s& g0 e3 o3 Y$ S4 R% K2 j, w; Ddocument.writeln("a:link {");2 \& S% Y2 H3 `) P4 R
document.writeln(" color: #5E7FB4;");
* a% y' n! G$ Idocument.writeln(" text-decoration: none;");) P J( x8 L2 V6 w
document.writeln("}");
" s% D, b |# B: T3 Y5 Y8 @3 zdocument.writeln("a:visited {");8 X& z8 u c% r' ~% Q5 i
document.writeln(" text-decoration: none;");6 _2 h# j# m2 z/ i9 k9 _3 O `% q/ d5 [
document.writeln(" color: #5E7FB4;"); n% _6 ~8 J' {' z3 b8 n. v
document.writeln("}");
$ j! S4 q* A8 W+ Q5 X% ]! b4 R/ jdocument.writeln("a:hover {");$ O( X( D* g/ E1 H' W* f5 W
document.writeln(" text-decoration: underline;");9 |$ W. ?' E/ U9 _
document.writeln(" color: #FF0000;");2 q. D# y- l" e: `: Q4 B, e4 g
document.writeln("}");9 S, x# ~1 }$ G$ u0 N3 N; _
document.writeln("a:active {");
; p8 i$ l2 [2 x9 ?2 E6 [document.writeln(" text-decoration: none;");
% B ~$ t) u' adocument.writeln(" color: #5E7FB4;");8 D+ L! _, x% K# ~) w! r" `
document.writeln("}");% m- r$ G# ^$ p7 s. y# d
document.writeln("-->");4 ^; U8 G# S! K. {4 S B6 z$ N! f+ A
document.writeln("<\/style>");
* P" y3 X- X8 @ zdocument.writeln("<div align=\"center\" class=\"zxtad\">")- b7 m' \- P+ k
document.writeln("<script>");! E' h" _/ ~% t
document.writeln("var marqueeContent=new Array(); \/\/............");9 N) x6 k- C. E n: b0 C
document.writeln("marqueeContent[0]=\'<A href=# target=_blank>山东电影网提醒您:注意保护您的视力,请勿疲劳观看!<\/A> <br>\';");, E. ^7 ~0 d2 \" Y
document.writeln("marqueeContent[1]=\'<a href=# target=_blank>欢迎您的到来,向您的朋友推荐我们吧 山东电影网 - www.48268.cn <\/a><br>\';");
/ O( A3 U; h8 t' u) xdocument.writeln("marqueeContent[2]=\'<A href=# target=_blank>山东电影网www.48268.cn向您的朋友推荐我们吧<\/a><br>\';");) \8 V" e/ Z- a- k! H
document.writeln("marqueeContent[3]=\'<A href=# target=_blank>山东电影网提醒您:想看什么影片就给管理员留言吧<\/a><br>\';");4 c6 u+ g$ |3 ?5 ?3 ^+ C2 w+ M0 x) I
document.writeln("marqueeContent[4]=\'<A href=# target=_blank>如果长时间无法播放请按键盘上的 F5 刷新重试<\/a><br>\';");
# f6 V: L) h6 _( K2 h4 ]( M3 h7 kdocument.writeln("marqueeContent[5]=\'<A href=# target=_blank>多次刷新仍无法观看的请检查您的网络<\/a><br>\';"); z1 K0 @0 h% u1 r* m' F6 c
document.writeln("marqueeContent[6]=\'<A href=# target=_blank>部分影片因片源问题会弹出广告,请直接关闭即可<\/a><br>\';");
9 m% q5 t! j- _! `6 S: Adocument.writeln("marqueeContent[7]=\'<A href=# target=_blank>本站承诺绝不人为添加任何弹出广告和恶意插件<\/a><br>\';");
0 u5 G5 x: Y# Q% qdocument.writeln("marqueeContent[8]=\'<A href=# target=_blank>观看本站视频需要安装Qvod播放器<\/a><br>\';");
" {: t) N$ f& o# ]document.writeln("marqueeContent[9]=\'<A href=# target=_blank>本站影片属于P4P模式,观看人数越多画面越流畅<\/a><br>\';");4 f- V! V" r+ z& O
document.writeln("marqueeContent[10]=\'<A href=# target=_blank>影片不能观看请点击下方↓↓↓报错连接请求修复<\/a><br>\';");( b" s0 q3 s! M6 {' t( p# \0 z/ T
document.writeln("marqueeContent[11]=\'<A href=# target=_blank>山东电影网祝 您观看愉快 本站网址:www.48268.cn<\/a><br>\';");/ v: ~2 H+ U' [
document.writeln("marqueeContent[12]=\'<A href=# target=_blank>为了您的健康,请不要疲劳观看!<\/a><br>\';");
; h6 y# \1 T4 M9 Y4 y% f! {+ Edocument.writeln("");
" g1 R D: j5 a$ V, jdocument.writeln("var marqueeInterval=new Array(); \/\/定义一些常用而且要经常用到的变量");
$ Y/ g6 j. p0 m. C. Edocument.writeln("var marqueeId=0;"); c* [1 X: C, k! _ J8 w
document.writeln("var marqueeDelay=15000;");
+ s: k" o6 u8 h! Xdocument.writeln("var marqueeHeight=14;");
* B: m0 h2 a: t8 [- b( N% @document.writeln("");
' K0 Q6 {3 V9 x4 gdocument.writeln("\/\/接下来的是定义一些要使用到的函数");* S! b4 f" b" \- \6 q Q6 F
document.writeln("Array.prototype.random=function() {");9 R: E% y8 | J9 A+ R# Z
document.writeln("var a=this;");
3 I% o# l' X4 ?! cdocument.writeln("var l=a.length;");: E/ C1 N- E$ R( p% W
document.writeln("for(var i=0;i<l;i++) {");* I# {1 j; V; E# |5 W9 R
document.writeln("var r=Math.floor(Math.random()*(l-i));");! f' R) _2 V% L1 {/ Y
document.writeln("a=a.slice(0,r).concat(a.slice(r+1)).concat(a[r]);");' d+ l( P1 r" `. E! \( R
document.writeln("}");/ g/ y$ e; P, u! G, T* B
document.writeln("return a;");
- b* M- \/ Y( b( M n3 e: Wdocument.writeln("}");
; \# `3 F! q: m8 cdocument.writeln("function initMarquee() {");% t% A; U# D+ D0 T# f+ ?$ |
document.writeln("marqueeContent=marqueeContent.random();");6 D ]3 d: M' ?$ w5 X$ L3 b
document.writeln("var str=\'\';");
% S2 _) U) F- t- v* M% rdocument.writeln("for(var i=0;i<Math.min(3,marqueeContent.length);i++) str+=(i>0?\' \':\'\')+marqueeContent;");
1 t3 o* r; E3 Q2 R) Y# 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]);");8 I- s8 M1 r/ l
document.writeln("marqueeId+=2;");
! D% v3 w6 }8 Y% I8 R5 u: W6 rdocument.writeln("if(marqueeContent.length>3)marqueeInterval[0]=setInterval(\"startMarquee()\",marqueeDelay);");
2 X9 O4 C$ G1 c! w1 rdocument.writeln("}");
}* `1 r: `- d# g Wdocument.writeln("function reinitMarquee() {");/ v) w+ A' Y# N2 P7 L3 ?
document.writeln("js_scroll_content.src=\'scroll_content2.js\';");7 O: X( R7 w3 R
document.writeln("marqueeContent=marqueeContent.random();");( M9 h+ q$ R( A: R- p3 z. P
document.writeln("var str=\'\';");
2 Q0 v% [2 ~0 U0 S* M+ H9 wdocument.writeln("for(var i=0;i<Math.min(3,marqueeContent.length);i++) str+=(i>0?\' \':\'\')+marqueeContent;");+ d7 ^ j5 h1 F/ u
document.writeln("marqueeBox.childNodes[(marqueeBox.childNodes.length==1?0:1)].innerHTML=str;");
6 h9 A# o9 M3 adocument.writeln("marqueeId=2;");; i' J1 c! {& g- `5 l
document.writeln("}");' u$ n3 H, S& D! r2 k4 w. @
document.writeln("function startMarquee() {"); d" j0 Q5 ^3 D. I
document.writeln("var str=\'\';");& b+ E! i8 k3 D% u! b+ Y
document.writeln("for(var i=0;(i<3)&&(marqueeId+i<marqueeContent.length);i++) {");$ B" ~% B8 a& f% d
document.writeln("str+=(i>0?\' \':\'\')+marqueeContent[marqueeId+i];");- _0 f8 f8 S+ C# _0 L) L
document.writeln("}");. R8 [' K7 F2 o3 |' P9 v
document.writeln("marqueeId+=3;");
& f: n% `2 d2 d% ]- B( C3 Idocument.writeln("if(marqueeId>marqueeContent.length)marqueeId=0;");
: A0 q/ i g4 x8 B* @4 K, {document.writeln("");. e; t+ f! J' `( p0 {
document.writeln("if(marqueeBox.childNodes.length==1) {");, L: g, o8 ]- d$ `5 `, t
document.writeln("var nextLine=document.createElement(\'DIV\');");
5 h% d e' \, H1 w' ^/ x8 j4 Tdocument.writeln("nextLine.innerHTML=str;");+ I1 b& M2 Q! y) D, v: L) K
document.writeln("marqueeBox.appendChild(nextLine);");
6 p, R. j( ]& W! Wdocument.writeln("}");5 t5 Z- b2 i' Y/ e# J, t1 \
document.writeln("else {");8 V6 @; |' W$ A9 s+ j
document.writeln("marqueeBox.childNodes[0].innerHTML=str;");5 s) }/ F! e( L. t- k1 f3 x8 e
document.writeln("marqueeBox.appendChild(marqueeBox.childNodes[0]);");3 s3 b. c) G' p5 |5 t
document.writeln("marqueeBox.scrollTop=0;");5 ~) [: l( c6 Z4 P# t {2 D) J9 y. N7 j
document.writeln("}");3 ]& _5 k; Z- }9 N c' z4 K: ^
document.writeln("clearInterval(marqueeInterval[1]);");8 ?: r0 ^- M$ F; q ^) x
document.writeln("marqueeInterval[1]=setInterval(\"scrollMarquee()\",20);");
) Z8 Y) I! J+ [3 {document.writeln("}");
& H% f9 H9 K! T0 `1 ~. o' ?document.writeln("function scrollMarquee() {");
# J4 z0 K5 b) Jdocument.writeln("marqueeBox.scrollTop++;");
* S7 G: F& L0 o7 T9 y" Jdocument.writeln("if(marqueeBox.scrollTop%marqueeHeight==(marqueeHeight-1)){"); c* ^! s* Y$ ^" W" a+ {9 c7 @
document.writeln("clearInterval(marqueeInterval[1]);");
! w. h' l6 Z! T& G$ r4 Q/ ^( \5 edocument.writeln("}");
, j/ G4 }9 `! m8 C; w' idocument.writeln("}");+ l. O7 ?, ~7 s) l D1 f2 j D
document.writeln("initMarquee();");
2 C' }9 C1 ?9 V: `+ g5 H$ Wdocument.writeln("<\/script>")2 N7 E* u5 y0 j! G- s0 l3 _, u8 @
document.writeln("<\/div>") |
|