模拟幻灯片播放程序

模拟幻灯片播放程序

None.gif < HTML >
None.gif  
< HEAD >
None.gif    
< TITLE >模拟幻灯片播放脚本程序 </ TITLE >
None.gif    
< META HTTP - EQUIV = " Content-Type "  CONTENT = " text/html; charset=gb2312 " >
None.gif    
< LINK HREF = " Images/Style.css "  REL = " stylesheet " >
None.gif  
</ HEAD >
None.gif 
None.gif
< SCRIPT language = " VBScript " >
None.gif  
None.gif  
' ***************************************************
None.gif
   '             模拟幻灯片播放脚本程序
None.gif
   '             
None.gif
   ' ***************************************************
None.gif
  
None.gif  
Dim  FileList,FileListArr
None.gif  FileList 
=   " 001.jpg,002.jpg,003.jpg,004.jpg,005.jpg,006.jpg,007.jpg,008.jpg,009.jpg,010.jpg"
None.gif
  FileListArr  =   Split (FileList, " , " )
None.gif  
None.gif  
Dim  CanPlay
None.gif  CanPlay 
=   CInt ( Split ( Split (navigator.appVersion, " ; " )( 1 ), "   " )( 2 )) > 5
None.gif  
None.gif  
Dim  FilterStr
None.gif  FilterStr 
=   " RevealTrans(duration=2,transition=23)"
None.gif
  FilterStr  =  FilterStr  +   " ;BlendTrans(duration=2)"
None.gif
  
None.gif  
If  CanPlay  Then
None.gif    FilterStr 
=  FilterStr  +   " ;progid:DXImageTransform.Microsoft.Pixelate(,enabled=false,duration=2,maxSquare=25)"
None.gif
    FilterStr  =  FilterStr  +   " ;progid:DXImageTransform.Microsoft.Fade(duration=2,overlap=0)"
None.gif
    FilterStr  =  FilterStr  +   " ;progid:DXImageTransform.Microsoft.GradientWipe(duration=2,gradientSize=0.25,motion=forward )"
None.gif
    FilterStr  =  FilterStr  +   " ;progid:DXImageTransform.Microsoft.Stretch(duration=2,stretchStyle=PUSH)"
None.gif
    FilterStr  =  FilterStr  +   " ;progid:DXImageTransform.Microsoft.Wheel(duration=2,spokes=16)"
None.gif
    FilterStr  =  FilterStr  +   " ;progid:DXImageTransform.Microsoft.RandomDissolve(duration=2)"
None.gif
    FilterStr  =  FilterStr  +   " ;progid:DXImageTransform.Microsoft.Spiral(duration=2,gridSizeX=50,gridSizeY=50)"
None.gif
    FilterStr  =  FilterStr  +   " ;progid:DXImageTransform.Microsoft.Slide(duration=2,bands=1,slideStyle=SWAP)"
None.gif
    FilterStr  =  FilterStr  +   " ;progid:DXImageTransform.Microsoft.RadialWipe(duration=2,wipeStyle=CLOCK)"
None.gif
   Else
None.gif    
Msgbox   " 幻灯片播放具有多种动态图片切换效果,但此功能需要您的浏览器为IE5.5或以上版本,否则您将只能看到部分的切换效果。 " , 64
None.gif  
End   If
None.gif
None.gif  
Dim  FilterArr
None.gif  FilterArr 
=   Split (FilterStr, " ; " )
None.gif
None.gif  
Dim  PlayImg_M
None.gif  PlayImg_M 
=   5   *   1000    ' 切换时间(毫秒)
None.gif

None.gif  
Dim  I
None.gif  I 
=   1
None.gif
None.gif  
Sub  ChangeImg
None.gif    
Do   While  FileListArr(I) = " "
None.gif
      I  =  I  +   1
None.gif      
If  I > UBound (FileListArr)  Then  I  =   0
None.gif    
Loop
None.gif    
Dim  J
None.gif    
If  I > UBound (FileListArr)  Then  I  =   0
None.gif    
Randomize
None.gif    J 
=   Int ( Rnd   *  ( UBound (FilterArr) + 1 ))
None.gif    Img.style.
filter   =  FilterArr(J)
None.gif    Img.filters(
0 ).Apply
None.gif    Img.Src 
=  FileListArr(I)
None.gif    Img.filters(
0 ).play
None.gif    I 
=  I  +   1
None.gif    
If  I > UBound (FileListArr)  Then  I  =   0
None.gif    TempImg.Src 
=  FileListArr(I)
None.gif    
None.gif    SetTimeout 
" ChangeImg " ,PlayImg_M
None.gif  
End Sub
None.gif
</ SCRIPT >
None.gif
None.gif
< BODY BGCOLOR = " #000000 " >
None.gif
< TABLE WIDTH = " 100% "  height = " 100% "  BORDER = " 0 "  CELLSPACING = " 0 "  CELLPADDING = " 0 " >
None.gif  
< TR ID = " NoScript " >
None.gif    
< TD Align = " Center "  Style = " Color:White " > 对不起,图片浏览功能需脚本支持,但您的浏览器已经设置了禁止脚本运行。请您在浏览器设置中调整有关安全选项。 </ TD >
None.gif  
</ TR >
None.gif  
< TR Style = " Display:none "  ID = " CanRunScript " >
None.gif    
< TD HEIGHT = " 100% "  Align = " Center "  vAlign = " Center " >
None.gif      
< Img ID = " Img "  Border = " 0 "   >
None.gif    
</ TD >
None.gif  
</ TR >
None.gif  
< TR Style = " Display:none " >
None.gif    
< TD >< Img ID = " TempImg "  Border = " 0 " ></ TD >
None.gif  
</ TR >
None.gif  
None.gif
</ TABLE >
None.gif
None.gif
< Script Language = " VBScript " >
None.gif  NoScript.Style.Display 
=   " none"
None.gif
  CanRunScript.Style.Display  =   " "
None.gif
  Img.Src  =  FileListArr( 0 )
None.gif  SetTimeout 
" ChangeImg " , PlayImg_M
None.gif
</ Script >
None.gif
None.gif

转载于:https://www.cnblogs.com/NetTank32/archive/2005/01/19/94343.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值