一个图片轮换效果(Asp.Net+Flash)

前台页面

             < object  classid ="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase ="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
                width
="600"  height ="300"  VIEWASTEXT >
                
< param  name ="movie"  value ="http://www.ruochi.com/product/bcastr3/bcastr31.swf" >
                
< param  name ="quality"  value ="high" >
                
< param  name ="wmode"  value ="transparent" >
                
< param  name ="FlashVars"  value ="bcastr_file=<%=pics %>&bcastr_link=<%=links %>&bcastr_title=<%=titles %>&TitleTextColor=0x000000&TitleBgColor=0x0066ff&TitleBgPosition=1&AutoPlayTime=4" >
                
< embed  src ="http://www.ruochi.com/product/bcastr3/bcastr31.swf"  loop ="true"  quality ="high"
                    pluginspage
="http://www.macromedia.com/go/getflashplayer"  type ="application/x-shockwave-flash"
                    salign
="T"  name ="scriptmain"  menu ="false"  wmode ="transparent" ></ embed >
            
</ object >


后台定义三个变量,在Page_load里面给三个变量赋值即可

         public   string  pics = " http://www.ruochi.com/product/bcastr3/pic/a1.jpg|http://www.ruochi.com/product/bcastr3/pic/a2.jpg|http://www.ruochi.com/product/bcastr3/pic/a3.jpg|http://www.ruochi.com/product/bcastr3/pic/a4.jpg " ;
        
public   string  links = " http://www.google.com|http://www.baidu.com|http://www.google.com|http://www.baidu.com' " ;
        
public   string  titles = " 'Title 1|Title 2|Title 3|Title 4 " ;


效果:


轮换效果flash用的是 Bcastr 3.1 flash 通用图片轮换播放器

你可能感兴趣的:(asp.net)