在html文件中嵌入的代码如下:
<script type="text/javascript">
var xmlUrl="news.xml";
var swfURL="news.swf";
var img_Speed=2;
var page_Speed=3000;
var TextPosition="down";
var HeadlineColor="#ff0000";
var HeadlineFont="14px";
var borderwidth=355;
var borderheight=210;
var TextSize = 30;
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ borderwidth +'" height="'+ borderheight +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="'+swfURL+'"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">');
document.write('<param name="menu" value="false"><param name="wmode" value="opaque">');
document.write('<param name="FlashVars" value="borderwidth='+borderwidth+'&borderheight='+borderheight+'&TextSize='+TextSize+'&TextPosition='+TextPosition+'&HeadlineColor='+HeadlineColor+'&HeadlineFont='+HeadlineFont+'&img_Speed='+img_Speed+'&page_Speed='+page_Speed+'&xmlUrl='+xmlUrl+'">');
document.write('<embed src="'+swfURL+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+borderwidth+'" height="'+borderheight+'"></embed>');
document.write('</object>');
</script>
在ie6中测试没有问题,在火狐3.5.6能显示flash动画,但是不能加载图片,不知道问题出在哪,请指教,谢谢