  
- UID
- 133
- 帖子
- 51
- 精华
- 1
- 积分
- 186
- 金币
- 55
- 威望
- 2
- 贡献
- 0

|
网页之非常漂亮的图象效果
<script language=JavaScript>
* [1 S) ^. m3 O" _" o) }% X<!-- Beginning of JavaScript Code -------------------
2 u6 S- S. l- C/ G( K" w/ i* t8 K! U( F2 S& f0 T% j2 A* e
nereidFadeObjects = new Object();
) d* ~) I( Y( X0 p, OnereidFadeTimers = new Object();
: H# T! w5 T8 G2 i- E' C5 V: q' ofunction nereidFade(object, destOp, rate, delta){: `' U/ y M! U* q- p0 H6 @/ r/ Y
if (!document.all)3 d% T/ _# D+ l, [; j( Y
return; t& |- c- T: g
if (object != "[object]"){ setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);' x) o0 {% e# ~6 f' }) T3 d
return;8 ^4 d/ b& J9 L7 [1 l7 M
}! \2 S5 b2 w4 b
clearTimeout(nereidFadeTimers[object.sourceIndex]);7 _8 A i1 |" T; [: N1 {# o
diff = destOp-object.filters.alpha.opacity;
3 }/ }# W0 N% s" l( Z direction = 1;& \: x4 y9 P- Q
if (object.filters.alpha.opacity > destOp){8 u8 w5 z; i1 c8 U' I+ \
direction = -1;$ \. v7 V# X! t8 ]4 C
}( p3 n: Z9 f7 V1 [" t; B0 W5 |
delta=Math.min(direction*diff,delta);
& s# V: r6 w! j, b# u; }2 V- w object.filters.alpha.opacity+=direction*delta;$ x1 o u( ]/ u6 j+ o/ z8 I& r
if (object.filters.alpha.opacity != destOp){0 @! n; i% K4 O( l7 J9 z- p* j2 K) L Q
nereidFadeObjects[object.sourceIndex]=object;
5 g+ l. K) I- L$ }3 t0 ~ nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);9 T& \) |0 K/ h0 a
}! Y0 `( s* L; i5 p
}, B o5 C* L% Q. d8 }" y
// -- End of JavaScript Code -->3 E4 A8 t- Y0 F! O
</script>5 w' c" d- {: p( Y1 v q* g3 w2 J
//修改下面的图像地址和大小
+ @2 ^" I z9 Z; f8 t<TABLE align=center border=0 cellPadding=0 cellSpacing=1>9 P$ z+ l/ P. |3 h4 N: x6 G9 K& V
<TBODY>
8 v: V% {; o) _9 a <TR align=middle>- l( {/ Y: x& ], h+ r
<TD background=files/index_dreamweaver2.gif 5 U, ^8 ~' a# V+ @# L* y
height=60 width=60><A 9 m7 h! i% D+ A
href="http://www.hooji.com/java/display.asp?id=542#"><IMG
2 X4 {0 q) ~1 Z+ s+ N1 |+ q alt="Dreamweaver 资源" border=0 height=60
$ U! G. i) L" N1 _ onmouseout=nereidFade(this,01,7,5)
# w. C0 ~* ^( S8 ?3 ^. X9 B onmouseover=nereidFade(this,100,5,7) ( r1 m w( r* W3 H! q; v6 C% G( s
src="files/index_dreamweaver.gif" $ u6 K/ O+ p& P8 Q. _7 E2 P1 G2 g
style="BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; FILTER: alpha(opacity=0)" : ^! T$ }2 W Q
width=60></A></TD># r9 P) Q7 `) A* J9 U) |
<TD background=files/index_fireworks2.gif height=60 7 f) Z V2 y" ?* S7 a, J
width=60><A
3 b, T) H2 Z+ f1 g href="http://www.hooji.com/java/display.asp?id=542#"><IMG / d8 ^' E; o/ O1 z1 ]" u. z0 k- q8 Z
alt="Fireworks 资源" border=0 height=60 , i. K* z; _; ?# m
onmouseout=nereidFade(this,01,7,5) 8 @) K) F v I7 X& p
onmouseover=nereidFade(this,100,5,7) 2 q( \2 V# y! q$ a
src="files/index_fireworks.gif" 9 @- S M: v5 j3 b0 S" N/ Q
style="BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; FILTER: alpha(opacity=0)" , W5 d+ |4 P- L: Y+ ^9 Y
width=60></A></TD>: N" I0 M2 S* p/ z) t: u- \
<TD background=files/index_flash2.gif height=60 ! s5 p4 s4 b* Q" x0 P+ y. b P' n
width=60><A 1 \6 D7 a1 @! T0 \
href="http://www.hooji.com/java/display.asp?id=542#p"><IMG
- {; U! e% ~! } alt="Flash 资源" border=0 height=60 onmouseout=nereidFade(this,01,7,5) ' O4 {* ]9 T" h
onmouseover=nereidFade(this,100,5,7) 9 J# m0 U2 [ z+ q0 ^
src="files/index_flash.gif" ! s6 a1 X& Y# E- d
style="BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; FILTER: alpha(opacity=0)"
2 s$ P3 U& _- t, I width=60></A></TD>
; y' v0 I: X% s4 E <TD background=files/index_photoshop2.gif height=60
/ F& c9 f" {/ Y$ N5 I3 } width=60><A
) [- C" ^5 h3 X, u7 [9 q6 y% E& N href="http://www.hooji.com/java/display.asp?id=542#"><IMG 8 q& a: L6 f0 v% F6 \: g! l
alt="Photoshop 资源" border=0 height=60 " @0 b; Q# e9 A+ n# E0 g
onmouseout=nereidFade(this,01,7,5) ! w4 K& c3 ]/ ~8 x# C3 \
onmouseover=nereidFade(this,100,5,7)
# k& H: q0 I# |9 P! n src="files/index_photoshop.gif"
) u" S& n& {0 L! H style="BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; FILTER: alpha(opacity=0)"
( M( J# x* n" [' M width=60></A></TD>
, H& \7 ?1 J+ L7 I( l& r. p: a </TR></TBODY></TABLE> |
|