原文来自:https://www.zixuephp.com
dedecms幻灯片代码,完美性!!
- <scriptlanguage='javascript'>
- linkarr=newArray();
- picarr=newArray();
- textarr=newArray();
- varswf_width=950;
- varswf_height=240;
- //文字颜色|文字位置|文字背景颜色|文字背景透明度|按键文字颜色|按键默认颜色|按键当前颜色|自动播放时间|图片过渡效果|是否显示按钮|打开方式
- varconfigtg='xffffff||0xffffff|0|0xdddddd|0xC5DDBC|0x000033|5|3|1|_blank';
- varfiles="";
- varlinks="";
- vartexts="";
- //这里设置调用标记
- {dede:arclisttypeid='9'row='5'}
- linkarr[[field:global.autoindex/]]="[field:arcurl/]";
- picarr[[field:global.autoindex/]]="[field:litpic/]";
- textarr[[field:global.autoindex/]]="[field:titlefunction='html2text(@me)'/]";
- {/dede:arclist}
- for(i=1;i<picarr.length;i++){
- if(files=="")files=picarr[i];
- elsefiles+="|"+picarr[i];
- }
- for(i=1;i<linkarr.length;i++){
- if(links=="")links=linkarr[i];
- elselinks+="|"+linkarr[i];
- }
- document.write('<objectclassid="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('<paramname="movie"value="/templets/default/images/bcastr3.swf"><paramname="quality"value="high">');
- document.write('<paramname="menu"value="false"><paramname=wmodevalue="opaque">');
- document.write('<paramname="FlashVars"value="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'&bcastr_config='+configtg+'">');
- document.write('<embedsrc="/templets/default/images/bcastr3.swf"wmode="opaque"FlashVars="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'&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>');
- </script>