flash图片展示,flash播放图片展示,本例采用flash+xml方式实现:我为它的效果命名为:突如其来
程序如需多处动态引用该flash效果,可以采用程序动态生成xml文件的方式,使用也是非常灵活方便的如:src="bcastr.swf?bcastr_xml_url=xmlflash.aspx?id=1001"
在xmlflash.aspx文件中,根据传入的id的值1001生成相应的图片列表xml文件
源码下载: flash图片展示.rar
源代码如下:
<div align="center"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="scriptmain" name="scriptmain" codebase="http://download.macromedia.com/pub/shockwave/cabs/ flash/swflash.cab#version=6,0,29,0" width="500" height="150"> <param name="movie" value="bcastr.swf?bcastr_xml_url=xml/bcastr.xml" /> <param name="quality" value="high" /> <param name="scale" value="noscale" /> <param name="LOOP" value="false" /> <param name="menu" value="false" /> <param name="wmode" value="transparent" /> <embed src="bcastr.swf?bcastr_xml_url=xml/bcastr.xml" width="500" height="150" loop="False" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" salign="T" name="scriptmain" menu="false" wmode="transparent"></embed> </object> </div>
|
xml文件内容如下:
<?xml version="1.0" encoding="utf-8"?> <bcaster autoPlayTime="5"> <item item_url="images/01.jpg" link="/"> </item> <item item_url="images/02.jpg" link="/"> </item> <item item_url="images/03.jpg" link="/"> </item> <item item_url="images/04.jpg" link="/"> </item> </bcaster> |