| 
 
     
- UID
 - 133 
 - 帖子
 - 51 
 - 精华
 - 1 
 - 积分
 - 186 
 - 金币
 - 55  
 - 威望
 - 2  
 - 贡献
 - 0  
 
   
 | 
 网页之多变的图象导航特效
<script language=JavaScript>   [! N; D  N2 D! c6 O 
<!-- // BannerAD  
( T# \- U7 h, E& c; G 
2 b! S7 o- V% N2 qvar bannerAD=new Array();  
- w) X) \/ j- g. r" L4 i; zvar bannerADlink=new Array();  
5 X# @, L! g& S/ h' Xvar adNum=0; # |. s, O3 |1 Z2 A 
//修改下面的图片地址和相应的链接地址 
& l* O7 [& C. H+ O: sbannerAD[0]="../../image/01s.jpg";  
- X' I6 x7 S2 ^! p# q: S- E  ObannerADlink[0]="../../index.asp"; 6 T& l8 K) i/ H 
bannerAD[1]="../../image/02s.jpg";  
1 N. O. f  d6 K4 r: e  n- abannerADlink[1]="../wytx.htm"; # u4 S4 y" d- w: v1 D4 t, s- ? 
bannerAD[2]="../../image/03s.jpg";  
1 d2 i+ N1 [' t4 y4 w/ f" cbannerADlink[2]="../../sxym/sxym.htm";  
5 [& N, I/ Y8 m0 ~# d' c0 UbannerAD[3]="../../image/04s.jpg";  
" f  I* L2 s7 c9 }& ?8 e# y5 EbannerADlink[3]="http://www.jzzy2.com";  
) v% z6 x. o- M! |5 d* X$ n) b% _bannerAD[4]="../../image/05s.jpg";  
8 _1 P# |* [! fbannerADlink[4]="http://www.cwdcn.com/";  
8 y9 F5 B8 A# s3 TbannerAD[5]="../../image/03s.jpg";  
8 G( o2 A# J+ E, `8 O2 SbannerADlink[5]="http://www.jzzy3.com"; 2 u7 _2 n" [6 \% b' p1 p 
. E6 \5 @* x+ i# b: f8 x 
var preloadedimages=new Array(); 7 c6 v2 o2 |/ |3 j8 A. B 
for (i=1;i<bannerAD.length;i++){  
1 K% t0 q1 e$ d, j5 Spreloadedimages=new Image();  
- {, p& d6 u) P. ?7 o6 qpreloadedimages.src=bannerAD;  
! T( n9 N* F3 [7 K1 c8 ?- u7 e}  
# \) v; y- L% k( n' n0 l% M9 U" @" ~2 i! S 
function setTransition(){ # r! V. @* a: b& Z( i1 Q 
if (document.all){ , M+ C) @' V( ]+ a 
bannerADrotator.filters.revealTrans.Transition=Math.floor(Math.random()*23);  
0 u6 b2 \# @6 R( K* Z4 g( \, y; mbannerADrotator.filters.revealTrans.apply(); - N2 h( T) [' j' o  N- Y8 Y" ]) P 
} - A9 q! M. ~* f$ O- ^ 
} % Y$ K; [6 c+ V- n* T, S) b0 u 
' u: e* d/ G2 H, G2 N 
function playTransition(){  
# d4 c7 Q, W8 _! _( y; [5 t7 w. Qif (document.all) . q! l6 U# I+ R% ] 
bannerADrotator.filters.revealTrans.play() ( _) L* R' p7 M$ w; r 
}  
( f! j7 t. d1 H% t* f; X- s 
+ E+ p- j/ Y% l$ g2 b* Dfunction nextAd(){  
$ Z5 ]+ V" V9 B0 V' Uif(adNum<bannerAD.length-1)adNum++ ;  
; z$ m) ]% O7 h, melse adNum=0; - P8 o' r# \# x( x" p& c 
setTransition();  
; U0 |5 c' `* i/ Bdocument.images.bannerADrotator.src=bannerAD[adNum];  
$ {# j- B# R8 `2 S7 |3 {playTransition(); 1 e( ~- d" A+ S! W 
theTimer=setTimeout("nextAd()", 5000);  
" s5 L% |, r. r" E9 A, E# _! M4 B9 R}  
( U. k5 Y6 q: \* S* y2 I$ }" N 
  ?: W/ S; C+ j  E% E+ I, G$ zfunction jump2url(){  
6 q. A0 j6 G4 M8 ^. T" ~  wjumpUrl=bannerADlink[adNum]; 2 E% R* G' C# z" X0 q8 [7 `: s) f) c 
jumpTarget='_blank';  
. G/ P/ T7 s( ~3 j1 a9 L1 O0 d9 Zif (jumpUrl != ''){  
' o% }+ Z; T9 i, \5 ^1 ]- F1 yif (jumpTarget != '')window.open(jumpUrl,jumpTarget);  
2 Y: v) }8 w6 M3 lelse location.href=jumpUrl;  
. l1 v4 q% K6 L* s5 ^) F3 ^}  
& T  r6 @, s: g/ e' Z}  
! d4 C3 O9 \5 W* \) H1 xfunction displayStatusMsg() { ! F$ W+ ^, Y( @ 
status=bannerADlink[adNum]; ; _* H' M* u9 Y  w; O 
document.returnValue = true; $ p; ~/ h' _  ?/ j3 R0 r4 E+ P5 j6 C 
} 8 v7 h( t9 [) ?, C" K3 z 
  A: [' y6 U% [* q' f. U/ B( b7 d 
//-->  
7 w" D$ M, k4 @- i# d1 V</script>  
: m/ [4 p6 Z; C' m//修改下面的图片的宽度和高度、地址# }: }4 P/ W# T, E7 U: I 
<A onmouseover="displayStatusMsg();return document.returnValue"  
  r$ A  B% ?6 Z. L: }href="javascript:jump2url()"><IMG 1 M2 @9 m( t% t- I" f- B3 g 
style="FILTER: revealTrans(duration=2,transition=20)" height=66  
! d" R$ I& E1 l  L! D5 _1 Fsrc="../../image/02s.jpg" width=400 border=1  
- n7 U1 S) s! F  {name=bannerADrotator>  
( E9 X0 H2 f7 {5 F! V6 f! ~, C</A>  
( j/ N$ }5 p- `1 p* M<SCRIPT language=JavaScript>nextAd()</SCRIPT> |   
 
 
 
 |