dedecms幻灯片代码,完美性!! – DeDecms


avatar
pcwnas 2023-04-21 209

原文来自:https://www.zixuephp.com

dedecms幻灯片代码,完美性!!

  1. <scriptlanguage='javascript'>
  2. linkarr=newArray();
  3. picarr=newArray();
  4. textarr=newArray();
  5. varswf_width=950;
  6. varswf_height=240;
  7. //文字颜色|文字位置|文字背景颜色|文字背景透明度|按键文字颜色|按键默认颜色|按键当前颜色|自动播放时间|图片过渡效果|是否显示按钮|打开方式
  8. varconfigtg='xffffff||0xffffff|0|0xdddddd|0xC5DDBC|0x000033|5|3|1|_blank';
  9. varfiles="";
  10. varlinks="";
  11. vartexts="";
  12. //这里设置调用标记
  13. {dede:arclisttypeid='9'row='5'}
  14. linkarr[[field:global.autoindex/]]="[field:arcurl/]";
  15. picarr[[field:global.autoindex/]]="[field:litpic/]";
  16. textarr[[field:global.autoindex/]]="[field:titlefunction='html2text(@me)'/]";
  17. {/dede:arclist}
  18. for(i=1;i<picarr.length;i++){
  19. if(files=="")files=picarr[i];
  20. elsefiles+="|"+picarr[i];
  21. }
  22. for(i=1;i<linkarr.length;i++){
  23. if(links=="")links=linkarr[i];
  24. elselinks+="|"+linkarr[i];
  25. }
  26. 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+'">');
  27. document.write('<paramname="movie"value="/templets/default/images/bcastr3.swf"><paramname="quality"value="high">');
  28. document.write('<paramname="menu"value="false"><paramname=wmodevalue="opaque">');
  29. document.write('<paramname="FlashVars"value="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'&bcastr_config='+configtg+'">');
  30. 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>');
  31. </script>