织梦幻灯FLASH
1 <script language='javascript'> 2 picarr = new Array(); 3 var swf_width=970; 4 var swf_height=336; 5 //文字颜色|文字位置|文字背景颜色|文字背景透明度|按键文字颜色|按键默认颜色|按键当前颜色|自动播放时间|图片过渡效果|是否显示按钮|打开方式 6 var configtg='0xffffff|2|0x3FA61F|10|0xffffff|0xC5DDBC|0x000033|5|3|1|_blank'; 7 var files = ""; 8 //这里设置调用标记 9 //{dede:arclist typeid=1,2,3,4,6,7,8,9 row='5'} 10 //picarr[[field:global.autoindex/]] = "[field:litpic/]"; 11 //{/dede:arclist} 12 picarr[1] = "/images/banner_4.jpg"; 13 picarr[2] = "/images/banner_5.jpg"; 14 picarr[3] = "/images/banner_1.jpg"; 15 picarr[4] = "/images/banner_3.jpg"; 16 for(i=1;i<picarr.length;i++){ 17 if(files=="") files = picarr[i]; 18 else files += "|"+picarr[i]; 19 } 20 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 +'">'); 21 document.write('<param name="movie" value="{dede:global.cfg_templeturl /}/default/images/bcastr3.swf"><param name="quality" value="high">'); 22 document.write('<param name="menu" value="false"><param name=wmode value="opaque">'); 23 document.write('<param name="FlashVars" value="bcastr_file='+files+'&bcastr_config='+configtg+'">'); 24 document.write('<embed src="{dede:global.cfg_templeturl /}/default/images/bcastr3.swf" wmode="opaque" FlashVars="bcastr_file='+files+'&bcastr_config='+configtg+'&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>'); 25 26 </script>