<script language='javascript' type="text/javascript">
var linkarr = new Array();
var picarr = new Array();
var textarr = new Array();
var swf_width=500;
var swf_height=400;
var files = "images/pic.jpg|images/pic1.jpg|images/pic2.jpg|images/pic3.jpg";
var links = "#|#|#|#";
var texts = "";
else files += "|"+picarr[i];
}
for(i=1;i<linkarr.length;i++){
if(links=="") links = linkarr[i];
else links += "|"+linkarr[i];
}
for(i=1;i<textarr.length;i++){
if(texts=="") texts = textarr[i];
else texts += "|"+textarr[i];
document.write('<param name="movie" value="images/indexpic.swf"><param name="quality" value="high">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'">');
document.write('<embed src="images/indexpic.swf" wmode="opaque" FlashVars="bcastr_file='+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>');
var linkarr = new Array();
var picarr = new Array();
var textarr = new Array();
var swf_width=500;
var swf_height=400;
var files = "images/pic.jpg|images/pic1.jpg|images/pic2.jpg|images/pic3.jpg";
var links = "#|#|#|#";
var texts = "";
if(files=="") files = picarr[i];/* for(i=1;i<picarr.length;i++){
else files += "|"+picarr[i];
}
for(i=1;i<linkarr.length;i++){
if(links=="") links = linkarr[i];
else links += "|"+linkarr[i];
}
for(i=1;i<textarr.length;i++){
if(texts=="") texts = textarr[i];
else texts += "|"+textarr[i];
}*/
document.write('<param name="movie" value="images/indexpic.swf"><param name="quality" value="high">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'">');
document.write('<embed src="images/indexpic.swf" wmode="opaque" FlashVars="bcastr_file='+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>
//应用起来,只需要改 var swf_width=500;
var swf_height=400;
var files = "images/pic.jpg|images/pic1.jpg|images/pic2.jpg|images/pic3.jpg";这三个地方,兼容了所有浏览器