前台頁面
<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 通用圖片輪換播放器