FLASH效果,通过xml文件链接数据
文件如下
<BODY>
<SCRIPT src="swfobject.js"
type=text/javascript></SCRIPT>
<SCRIPT language=javascript>
var flashvars = {};
flashvars.myxmlpath = 'content.xml';
flashvars.type = 'content';
flashvars.decription = '0';
flashvars.textstyle = '';
flashvars.descordinate = '';
flashvars.startItem = '4';
flashvars.flowFadeSpace = '500';
flashvars.flowAnimationTweenType = 'Regular';
flashvars.flowAnimationSpeed = '5';
flashvars.slideShowTime = '1000';
flashvars.slideShow = '1';
flashvars.slideShowLoop = '1';
flashvars.imagePadding = '130';
flashvars.angle = '45';
flashvars.vertical = '0.2';
flashvars.iwidth = '';
flashvars.iheight = '';
flashvars.listheight = '200';
flashvars.alpha = '40';
flashvars.clipAlpha = '100';
flashvars.distance = '2';
flashvars.matrixRatio = '255';
flashvars.matrixDropOff = '3';
var params = {};
params.menu = 'true';
params.width = '958';
params.height = '300';
params.src = 'flowlist_xml.swf';
params.quality = 'high';
params.pluginspage = 'http://www.macromedia.com/go/getflashplayer';
params.align = 'middle';
params.play = 'true';
params.loop = 'false';
params.scale = 'showall';
params.wmode = 'transparent';
params.devicefont = 'false';
params.bgcolor = '';
params.allowFullScreen = 'sameDomain';
params.salign = '';
var attributes = {};
attributes.id = "flowlist_xml";
attributes.name = "flowlist_xml";
swfobject.embedSWF('flowlist_xml.swf', 'ejsiwt', '958','300', "8.0.0",'', flashvars, params, attributes);
</SCRIPT>
<DIV id=ejsiwt></DIV><NOSCRIPT>
<OBJECT id=flowlist_xml
codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0
height=300 width=950 align=middle
classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000><PARAM NAME="allowScriptAccess" VALUE="sameDomain"><PARAM NAME="allowFullScreen" VALUE="true"><PARAM NAME="movie" VALUE="flowlist_xml.swf"><PARAM NAME="quality" VALUE="high"><PARAM NAME="bgcolor" VALUE="">
<embed
src="flowlist_xml.swf"
quality="high" bgcolor="" width="958" height="300" name="flowlist_xml"
align="middle" allowScriptAccess="sameDomain" allowFullScreen="true"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</OBJECT></NOSCRIPT>
</BODY></HTML>
用到的flash,JS和xml文件
http://www.corange.cn//uploadfiles/flashxml_10271.rar
原文地址:http://www.corange.cn/archives/2009/12/3517.html