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

|
网页之非常漂亮的图象效果
<script language=JavaScript>
& H, `0 L- h8 r. S& n$ G" `<!-- Beginning of JavaScript Code -------------------# j: c U9 g1 z' C0 R/ h1 u
3 ]) @' f1 i r+ a) B# E3 ynereidFadeObjects = new Object();4 [2 q1 I6 K* H g; j
nereidFadeTimers = new Object();
, | S) g" [! w [7 kfunction nereidFade(object, destOp, rate, delta){
: T# d# F% c5 Nif (!document.all)
4 c# l: H2 d" ^6 O1 c7 Z" Lreturn
$ Q8 |- u$ f: j" K' s if (object != "[object]"){ setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
~4 S9 l, [" a1 [& e return;% @2 J& w: M0 s5 Y
}
# q% o% L6 A2 P" u) X clearTimeout(nereidFadeTimers[object.sourceIndex]);
! ?$ W' V( f. T* X$ b' F/ Y! v diff = destOp-object.filters.alpha.opacity;
' Z3 u" ~7 B7 T5 p direction = 1;, t2 ~# Z/ `, G
if (object.filters.alpha.opacity > destOp){: T3 Q; |2 S* F4 }; K. {3 N
direction = -1;
( ?" A: t" A% [3 D* H }8 O$ r2 v- D. R& v) x. t& f
delta=Math.min(direction*diff,delta);
; Q. x& L' L; x4 C object.filters.alpha.opacity+=direction*delta;0 H. ]+ ]* w7 H9 U6 a' A/ D' q
if (object.filters.alpha.opacity != destOp){
& S9 D' r. ~+ G$ f6 j nereidFadeObjects[object.sourceIndex]=object;$ N/ A2 z" i$ U" {7 ?* [2 H
nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate); Y- I0 U' p" { E% V7 P
}
" ]( l' o; @: \( N}) W+ F4 U6 g2 v3 k) g
// -- End of JavaScript Code -->4 P; E# N- F% Z2 g
</script>
! ?8 o \6 {2 e4 N //修改下面的图像地址和大小
5 K' b: @4 z0 g& A! y' r" Y# r<TABLE align=center border=0 cellPadding=0 cellSpacing=1>
/ R% m- `1 L& X% f* w* A& N0 n <TBODY>: @6 N: _4 ?& G/ f
<TR align=middle>
& Q; }* q+ c4 A <TD background=files/index_dreamweaver2.gif : h& a; {' I8 N! ~! z! q. b; C- [
height=60 width=60><A
$ I/ C1 x( Y: |. F- ?* C7 V" G& w href="http://www.hooji.com/java/display.asp?id=542#"><IMG , |/ [/ m2 T' X* S. U
alt="Dreamweaver 资源" border=0 height=60 # f2 j: _1 x: ~# o: H3 T2 d
onmouseout=nereidFade(this,01,7,5) + O; |2 [5 u; k% E' m1 K! r! g
onmouseover=nereidFade(this,100,5,7) # m& y2 \ q5 M( U- o
src="files/index_dreamweaver.gif" 4 P0 u3 B% o( k
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)" - L- E$ Y( \1 M9 D5 i8 s
width=60></A></TD>
y5 E4 g, r' L5 B9 i# B <TD background=files/index_fireworks2.gif height=60 ; N9 b8 k; q; O$ a- M, T! t
width=60><A 8 z; H$ u/ v' f) |% _+ x! ]. r
href="http://www.hooji.com/java/display.asp?id=542#"><IMG
; M) O5 m! _2 \( o' A) o' ] alt="Fireworks 资源" border=0 height=60
: [6 F7 K% k$ Q onmouseout=nereidFade(this,01,7,5)
9 u$ e8 x8 K. i9 U1 A( ^! F: i* ` onmouseover=nereidFade(this,100,5,7)
! C! Q L8 M/ t# W8 g src="files/index_fireworks.gif" / @& @, I0 m) L( Y5 g9 P
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)"
1 J9 [6 T2 U* o width=60></A></TD>; Q& L! R" j! v" t* i/ c: b) O; J
<TD background=files/index_flash2.gif height=60
+ V* L* d, R, ]7 c* t9 @5 z width=60><A 1 Z. V9 W! D/ ^9 }: L
href="http://www.hooji.com/java/display.asp?id=542#p"><IMG * b8 n& B8 t7 V5 C" x; u* J
alt="Flash 资源" border=0 height=60 onmouseout=nereidFade(this,01,7,5) 6 F3 M6 U% O! n0 L
onmouseover=nereidFade(this,100,5,7) 1 ?& e K5 [% p
src="files/index_flash.gif"
5 [ A5 y* |/ {2 H: 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)"
: Z1 W: T2 A, R+ [; ~- t7 T$ a width=60></A></TD>
6 w1 T* I2 u7 ]) L2 P# E1 n <TD background=files/index_photoshop2.gif height=60
- e0 Y& Z h. `8 S- V: q width=60><A - f( `+ W# a* ?) r
href="http://www.hooji.com/java/display.asp?id=542#"><IMG
" ~7 J, h; w# r- P alt="Photoshop 资源" border=0 height=60 / h+ L; y/ D8 [) o9 P, L
onmouseout=nereidFade(this,01,7,5)
* f5 {7 @2 E& w ] onmouseover=nereidFade(this,100,5,7) % o4 _5 N+ G* g+ b
src="files/index_photoshop.gif" 9 `/ u& w) L$ P) k
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)" ! V$ h- `7 ?. Z$ z
width=60></A></TD>& ^7 o8 q" E% W$ e; h# R0 b3 [
</TR></TBODY></TABLE> |
|