//修改宽度 3 `8 b2 ?3 C% h; m% o/ P. ^var marqueewidth=300! N( W V" J0 n
//高度* k% O( o* V( Y' f
var marqueeheight=25* L- n0 s; l: o2 z$ S( d
//速度(1-10)& u; A" E* J* q2 d- L# ^
var marqueespeed=3$ o' U/ }7 c0 A8 R
//背景颜色8 K. |" y: l n
var marqueebgcolor="#FFFFFF"5 w2 ?% H; g# b" n
//是否能暂停 (0=no. 1=yes)?- g1 J( `0 k) r1 s' H0 Z- c5 V
var pauseit=1$ c0 C5 }" y4 _( y
2 ]0 v9 H% b- b: P$ B0 Q//修改显示内容& B) O- K$ Z- D) e- ]# e
var marqueecontent='<nobr><font face="Arial" size=2><a href="http://www.jzzy.com/js.asp">欢迎光临七色风网页家园</a>--这里有从上千个网页特效中精选的300多个实用的特效,另外,为了网友更方便地学习,我们还改写和编写了部分的特效,并作了详细的说明和必要的使用提示!</font></nobr>' * m; n% m% e) i: U2 |5 u6 @ , l+ h: {/ n8 Y' L( |( U, b 1 B# v% [) T9 c6 A% I- A: Q) N////下面不需改变//////////// : f* n0 w$ [" _- n& t0 i% a" K6 u" _0 J2 e8 R) P3 `+ D4 Y
var copyspeed=marqueespeed 2 K! z' l& I/ H* C- k$ |( V2 pvar pausespeed=(pauseit==0)? copyspeed: 0 b- E3 c# N S5 g7 X0 `var iedom=document.all||document.getElementById ) q5 o6 y! a9 C# [: K0 O- Yif (iedom)5 l3 ^; ^2 D/ w5 |$ Y7 L# }
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100;left:-1000">'+marqueecontent+'</span>')& g) l0 M- T$ s$ N7 U7 c
var actualwidth='' ; F" H3 [: m" D5 @var cross_marquee, ns_marquee 4 K P' B1 S9 b. B0 h4 U a6 b J. y. H% J! c. g
function populate(){0 V( D1 j2 O8 K2 H' W& D. x2 Y8 z
if (iedom){/ T5 M) `4 ~$ i- p1 l5 L
cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee! T, G3 L( a, i4 |! _
cross_marquee.style.left=marqueewidth+8 # ^- L) ?1 D, Mcross_marquee.innerHTML=marqueecontent . E; S0 x2 S3 l: m0 L( bactualwidth=document.all? cross_marquee.offsetWidth : document.getElementById("temp").offsetWidth% ]* C- f7 L3 x/ Q3 @
} . _. z7 W" X- r% relse if (document.layers){ 8 N" V0 u7 \) @8 v' [8 tns_marquee=document.ns_marquee.document.ns_marquee2 * [% R$ ]* M, N9 E# r$ _5 @ns_marquee.left=marqueewidth+8& P1 J) h% _, x' f$ S
ns_marquee.document.write(marqueecontent) & |2 i& g* z# i' m- G3 qns_marquee.document.close()5 }3 L; J* _* j3 Z# _' ^9 X; s
actualwidth=ns_marquee.document.width ) v) I5 M( z, H: \! |. b. y}0 H$ G5 |" r* @
lefttime=setInterval("scrollmarquee()",20) ) h& X; g, G0 a* c} , d, x8 G6 K" \0 g2 xwindow.onload=populate a* J6 t; x( x: ~& `* T& } . v3 X! R8 p% k/ e1 F$ bfunction scrollmarquee(){% j# f. x3 p8 ]2 t( k
if (iedom){ 1 Y& D! F' ~& }4 E' Gif (parseInt(cross_marquee.style.left)>(actualwidth*(-1)+8)): m7 J# d3 n3 z2 r. j, G8 S
cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed$ G/ E. a9 I1 I4 f1 h
else% V5 l5 g7 a8 `' F+ i/ o' ~
cross_marquee.style.left=marqueewidth+8 : B' Z h! Z( U, g, A$ f3 Z# {# t : B$ [! Q2 ]5 i, ?$ }; J. a}6 h3 _7 ]* o1 d3 W# |7 @
else if (document.layers){: q U9 Q: i* g. r! F6 z
if (ns_marquee.left>(actualwidth*(-1)+8))# j5 j, X8 S/ q
ns_marquee.left-=copyspeed2 V8 |( W! C F" T6 n. r# h
else' x; V( s. ~) E a! H
ns_marquee.left=marqueewidth+8 ( {1 t( |& c9 N: E} * d$ H2 I6 f. J2 J}7 Y( \3 z, i0 S9 X/ ~
( T0 P! T6 U# v4 i3 I- c
if (iedom||document.layers){ 7 \2 K+ x8 U" `# N b5 M _) [with (document){2 o$ u' a; t8 d% l3 w
document.write('<table border="0" cellspacing="0" cellpadding="0"><td>') 2 G9 u$ K4 [: m; h5 yif (iedom){ - ]/ i* Q: x. o1 I. Rwrite('<div style="position:relative;width:'+marqueewidth+';height:'+marqueeheight+';overflow:hidden">') $ o$ m% z+ h3 n8 N" K* d: @write('<div style="position:absolute;width:'+marqueewidth+';height:'+marqueeheight+';background-color:'+marqueebgcolor+'" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">') , U. P% \8 \: Y; s, Iwrite('<div id="iemarquee" style="position:absolute;left:0;top:0"></div>') 0 y$ b# }. U5 q& Hwrite('</div>')/ G& R; X0 R1 G2 i5 Q5 O
} ! r H+ Z& `3 ?$ g. Nelse if (document.layers){& Q2 }6 M: ~3 j' {, n7 p) S
write('<ilayer width='+marqueewidth+' height='+marqueeheight+' name="ns_marquee" bgColor='+marqueebgcolor+'>') 3 ~- z% H. }: u$ fwrite('<layer name="ns_marquee2" left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"></layer>') `2 N- d1 V; w7 R: ~write('</ilayer>')) C9 r" F2 W- J
} ( {; h4 d' V; \0 E' t. U Xdocument.write('</td></table>')/ W( ~0 G9 C4 X' q5 U
}& Q! n5 `) Z# M" w; E# }! c
}6 k* E+ X) n; p( l, G: p& c2 n- S
</script>