<script type="text/javascript">
var swf_width = 350;
var swf_height = 200;
var config = ‘5|0xffffff|0x666666|80|0xffffff|0x666666|0x000000‘;
var files = ‘‘, links = ‘‘, texts = ‘‘;
var a=escape("&");
files += ‘|图片路径|图片路径|图片路径‘;
links += ‘|xxxx?id&tid‘.replace("&",a);//替换链接里的&字符
texts += ‘|标题‘;
files = files.substring(1); links = links.substring(1); texts = texts.substring(1);
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="‘ + swf_width + ‘" height="‘ + swf_height + ‘">‘);
document.write(‘<param name="movie" value="/Templet/ch/images/xitongimages/focus.swf" />‘);
document.write(‘<param name="quality" value="high" />‘);
document.write(‘<param name="menu" value="false" />‘);
document.write(‘<param name=wmode value="opaque" />‘);
document.write(‘<param name="FlashVars" value="config=‘ + config + ‘&bcastr_flie=‘ + files + ‘&bcastr_link=‘ + links + ‘&bcastr_title=‘ + texts + ‘" />‘);
document.write(‘<embed src="/Templet/ch/images/xitongimages/focus.swf" wmode="opaque" FlashVars="config=‘ + config + ‘&bcastr_flie=‘ + files + ‘&bcastr_link=‘ + links + ‘&bcastr_title=‘ + texts + ‘& menu="false" quality="high" width="‘ + swf_width + ‘" height="‘ + swf_height + ‘" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />‘);
document.write(‘</object>‘);
</script>
files: 指明交替的图片路径,以“|”进行分隔;
links: 指明点击每幅图片打开的链接,以“|”进行分隔,一一对应files;
texts: 指明每幅图片的文字说明,以“|”进行分隔 一一对应files;