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

|
网页之非常漂亮的图象效果
<script language=JavaScript>
" g' f9 @+ Q8 s. M9 v<!-- Beginning of JavaScript Code -------------------
0 E; G8 a/ T7 r. I2 J5 y. s- J7 c1 s$ V; O7 R( S" ?
nereidFadeObjects = new Object();
; p2 G. J3 X$ n# o4 E# Y7 |) K. enereidFadeTimers = new Object();
# w" Y8 R6 k' u- Q' |( @function nereidFade(object, destOp, rate, delta){" X! F$ I" z( I+ q7 x2 o
if (!document.all)
7 ?6 ?, b8 O5 ^' d: J" Lreturn
& r1 T) e# d/ s4 v7 u if (object != "[object]"){ setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0); ?4 t, s" B6 q9 {! j
return;' P2 M# N' |1 Q/ L* U
}
" w* N9 r: O8 T5 b9 P" J2 l clearTimeout(nereidFadeTimers[object.sourceIndex]);
6 N ?: q( i0 O( o9 P$ }. Z diff = destOp-object.filters.alpha.opacity;5 b4 K2 z3 _: \: u
direction = 1;3 l7 U A/ @7 G- e d+ z( \
if (object.filters.alpha.opacity > destOp){+ y' {- `6 i8 u& [& b/ X
direction = -1;
3 R0 q% f. \9 K Z }
2 x. D. m1 D7 o# y5 G2 a" | delta=Math.min(direction*diff,delta);4 ]9 a/ T6 J' |4 b4 A2 k; q3 N- C
object.filters.alpha.opacity+=direction*delta; i% a- `6 M) j: D8 w. k
if (object.filters.alpha.opacity != destOp){* x: b6 J- H* [# O0 O7 i
nereidFadeObjects[object.sourceIndex]=object;
) Q9 a$ ?& W' O( c9 U nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);' E, v W$ a' e; |6 M
}
) G! C* z; e C! k}
+ v8 M/ }2 q# O( V% V+ |7 o$ h// -- End of JavaScript Code -->$ S8 W9 v" s, A3 I- Y) Y; W6 d
</script>
@' n- v7 G) k- o& v //修改下面的图像地址和大小
5 W" P5 C1 u" H$ A<TABLE align=center border=0 cellPadding=0 cellSpacing=1>
# d' \: A6 ], G* t% t' R <TBODY>3 L- Q: p5 V. G6 P: I/ ^
<TR align=middle>
/ z4 ]. j( F9 X1 I: o$ ^ <TD background=files/index_dreamweaver2.gif
2 f" J9 u8 ~# c, C2 h height=60 width=60><A ' Z6 R, }" N* C; f
href="http://www.hooji.com/java/display.asp?id=542#"><IMG
( f) _/ f4 l( |8 b7 a* H$ h% O alt="Dreamweaver 资源" border=0 height=60
/ }( E6 K0 o4 k onmouseout=nereidFade(this,01,7,5)
* X. s3 S7 ^) n9 ^# `" L onmouseover=nereidFade(this,100,5,7) ! M: y" k8 ^. E) p# J6 M# h1 e" ] C
src="files/index_dreamweaver.gif"
/ v0 [- K; Z# ?4 T. Y- Z( J 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)"
( o5 ~, L. i3 Z5 @% P width=60></A></TD>; v" g# v- t1 }5 G9 J
<TD background=files/index_fireworks2.gif height=60 9 U( d- i; q; I& ?. o0 b7 d7 q
width=60><A
- ~: Y3 A# ] x- ]' x# [# S. K href="http://www.hooji.com/java/display.asp?id=542#"><IMG ( v" U7 I* A R, }
alt="Fireworks 资源" border=0 height=60
3 B( z7 n9 a0 \# s D6 L+ F onmouseout=nereidFade(this,01,7,5)
8 Y5 P8 ~7 l7 \; J F onmouseover=nereidFade(this,100,5,7) ; S( m+ S, s* I8 u' e" u& j0 n
src="files/index_fireworks.gif"
5 t4 @& B- t3 s. [ 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)" + @+ f9 w$ t1 I4 V" o2 m
width=60></A></TD>; j8 \: ]+ |+ y. L1 j
<TD background=files/index_flash2.gif height=60
, w2 G/ Q* b4 f width=60><A
1 R. x) T. B! ^5 }$ x# ^ href="http://www.hooji.com/java/display.asp?id=542#p"><IMG
' `- ]/ ]5 n# X5 L% }" Z alt="Flash 资源" border=0 height=60 onmouseout=nereidFade(this,01,7,5)
7 g8 p$ h( j% z+ [0 z# ] onmouseover=nereidFade(this,100,5,7) 9 o: t2 d( \' J4 U
src="files/index_flash.gif"
9 {, `* R/ E' F9 ]$ O 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)" & } I1 j9 k( L4 y$ Z& S
width=60></A></TD>( B# _; H" ~% z5 q1 ~ g
<TD background=files/index_photoshop2.gif height=60 $ C7 t9 T' e, g- q- y# I3 K; j
width=60><A
- N3 U& g1 Y9 E href="http://www.hooji.com/java/display.asp?id=542#"><IMG
' P7 T, x) B* F1 H% M" N alt="Photoshop 资源" border=0 height=60
1 v# ~! X3 I9 A2 X8 L8 ~' S onmouseout=nereidFade(this,01,7,5) x: z6 R6 {3 W2 R" y
onmouseover=nereidFade(this,100,5,7) " N" D# ]" p6 P; |6 C/ [( q6 N/ S/ A
src="files/index_photoshop.gif" " l7 N* D6 {; t% j2 j
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)"
, ~9 h3 ^1 ]* p* Y5 s7 q$ \$ r2 N width=60></A></TD>( F: |- \( N" b/ O; ?; d
</TR></TBODY></TABLE> |
|