//修改宽度- R, |+ B. v' R9 P3 H4 W
var marqueewidth=300: z. G+ u2 s* L6 O7 D! f u
//高度+ a: s1 `& S+ L, N8 Y( w
var marqueeheight=25' T' V/ |/ J1 O9 S8 F
//速度(1-10) E* p: O+ N. T' o6 u6 p0 z
var marqueespeed=3 3 r# b/ E' {7 ?0 |2 L( k, E2 v//背景颜色# n; V+ ~/ S* f& D) @+ I5 q
var marqueebgcolor="#FFFFFF"# | B5 G4 q4 b& m6 `) Y( A2 ^
//是否能暂停 (0=no. 1=yes)?7 G, q4 H q# ]2 K1 q9 |( G
var pauseit=14 d3 }2 ?' g9 ?- L% K7 e
: p3 a$ c. v% z0 S//修改显示内容: E" E( \6 A# d3 X4 h& P
var marqueecontent='<nobr><font face="Arial" size=2><a href="http://www.jzzy.com/js.asp">欢迎光临七色风网页家园</a>--这里有从上千个网页特效中精选的300多个实用的特效,另外,为了网友更方便地学习,我们还改写和编写了部分的特效,并作了详细的说明和必要的使用提示!</font></nobr>'3 M4 A5 M( Z. P
' r6 a a9 x) V" S$ G2 v" i# x5 }5 Q5 R
////下面不需改变////////////, X' G5 |. ]7 b0 V, r! m
( i7 |* F+ n' {+ r2 l6 _
var copyspeed=marqueespeed " y7 Z$ Q% ~. n$ X' a) Cvar pausespeed=(pauseit==0)? copyspeed: 04 N1 U9 j6 a: `$ B! f) o |4 E" n3 n
var iedom=document.all||document.getElementById 5 q5 s* o0 k! `( d9 V3 Uif (iedom)4 j4 |8 m1 m. F2 T9 C5 [0 V
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100;left:-1000">'+marqueecontent+'</span>')" q# i2 a R2 l/ m2 x' v
var actualwidth=''; `; c0 J2 K' z% n* U1 _
var cross_marquee, ns_marquee 0 h2 d! c- X m6 C# a3 j# R a4 v! H3 p! }# |* _) a& i! U5 k) jfunction populate(){' m4 r' O% M, |1 W
if (iedom){ i& I7 b( q0 R$ ~5 C& x9 ?6 N
cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee2 r: v; c1 }7 s) p& v
cross_marquee.style.left=marqueewidth+8 ! K) a2 J- |. L, W2 _1 N$ `cross_marquee.innerHTML=marqueecontent4 v) h9 j M) o8 B# _5 W
actualwidth=document.all? cross_marquee.offsetWidth : document.getElementById("temp").offsetWidth( N8 M) x7 {0 N2 ^! V
}! U& g, o8 v4 I
else if (document.layers){ 5 @" R' X' w1 o( P8 | bns_marquee=document.ns_marquee.document.ns_marquee2 4 k8 T( d& y1 M: Bns_marquee.left=marqueewidth+8 ' L% F$ L6 i @ns_marquee.document.write(marqueecontent) % f# \. D% u, Bns_marquee.document.close() ( f% O7 u: ?& p, C+ jactualwidth=ns_marquee.document.width ; O1 `# b( R7 ^6 b' ]} ( d& j4 n( U- T. `8 nlefttime=setInterval("scrollmarquee()",20)4 ?2 ?- g% s' z0 t# c+ E
}3 a$ C- f/ ]5 b0 \$ r) f
window.onload=populate: @, O z* ?% K8 L2 `3 d* \# w
+ ~. T% K0 g* S2 x! O
function scrollmarquee(){- \ R5 o/ M; C2 o' ]& ]7 b
if (iedom){ 6 H. c4 k6 D8 X1 }if (parseInt(cross_marquee.style.left)>(actualwidth*(-1)+8)) 7 O! x& @! |! I( T% t& L. ?4 qcross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed + m: g* I2 z! ?& w+ h/ qelse ' `5 N" R( Z& l& g- E4 x7 G2 bcross_marquee.style.left=marqueewidth+81 M' v5 |; n% g( a! J& d
5 \9 Q- l" J6 e6 K0 a) f, S
} 5 m" ]# j: L5 n7 g. A& T( relse if (document.layers){ % e. p6 w% g$ M8 jif (ns_marquee.left>(actualwidth*(-1)+8))* _% m3 K7 a% e6 H0 x4 d# x8 m
ns_marquee.left-=copyspeed 5 D$ z- J4 p" }2 ^$ Eelse3 h {% _* L P# S
ns_marquee.left=marqueewidth+8 ) a8 w. A U8 i% {: {/ o$ W: B- `! e} ' G, j9 t2 E9 d; x! `( [, p A} . v: [7 R3 b4 W. f( P0 a" F( e, E; [- c5 ]
if (iedom||document.layers){- k+ z% I0 q- D9 c
with (document){" m2 B0 _3 ~/ c+ Q
document.write('<table border="0" cellspacing="0" cellpadding="0"><td>') 0 a5 u7 t! k- s+ L! l) kif (iedom){ 4 M5 z% J3 f8 f8 Z' A3 M4 V* pwrite('<div style="position:relative;width:'+marqueewidth+';height:'+marqueeheight+';overflow:hidden">') % x/ Y' g/ P' t3 D/ }write('<div style="position:absolute;width:'+marqueewidth+';height:'+marqueeheight+';background-color:'+marqueebgcolor+'" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">')7 W! b$ J6 x& t' F" b! U: V
write('<div id="iemarquee" style="position:absolute;left:0;top:0"></div>')% {0 ?& p8 t- j8 g% [! W$ z
write('</div>')* Z) a- z0 k: u' V8 n
}& `, E; ~4 i+ V, C. v$ ]2 o
else if (document.layers){1 j. k2 G5 z% U3 f8 u
write('<ilayer width='+marqueewidth+' height='+marqueeheight+' name="ns_marquee" bgColor='+marqueebgcolor+'>')( W3 q( ]' z' \& U7 V0 q
write('<layer name="ns_marquee2" left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"></layer>')0 N% |) p3 W& d9 }% G( f
write('</ilayer>')' L6 i+ n L$ s
}7 }7 i% k3 Y0 b* R1 A8 [( n/ z
document.write('</td></table>')3 u6 f+ u3 k# \1 R4 Z2 X' I
} ! m8 X2 `+ C, Y}5 l/ X& u7 @+ ]* {( W% }
</script>