当前位置:首页 > CMS教程 > DeDecms > 列表

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

发布:smiling 来源: PHP粉丝网  添加日期:2014-11-13 09:53:57 浏览: 评论:0 
  1. <script language='javascript'
  2.                 linkarr = new Array(); 
  3.                 picarr = new Array(); 
  4.                 textarr = new Array(); 
  5.                 var swf_width=950; 
  6.                 var swf_height=240; 
  7.                 //文字颜色|文字位置|文字背景颜色|文字背景透明度|按键文字颜色|按键默认颜色|按键当前颜色|自动播放时间|图片过渡效果|是否显示按钮|打开方式 
  8.                 var configtg='xffffff||0xffffff|0|0xdddddd|0xC5DDBC|0x000033|5|3|1|_blank'
  9.                 var files = ""
  10.                 var links = ""
  11.                 var texts = ""
  12.                 //这里设置调用标记 
  13.         {dede:arclist typeid='9' row='5' } 
  14.       linkarr[[field:global.autoindex/]] = "[field:arcurl/]"
  15.       picarr[[field:global.autoindex/]]  = "[field:litpic/]"
  16.       textarr[[field:global.autoindex/]] = "[field:title function='html2text(@me)'/]"
  17.       {/dede:arclist} 
  18.                 for(i=1;i<picarr.length;i++){ 
  19.                 if(files=="") files = picarr[i]; 
  20.                 else files += "|"+picarr[i]; 
  21.                 } 
  22.                 for(i=1;i<linkarr.length;i++){ 
  23.                 if(links=="") links = linkarr[i]; 
  24.                 else links += "|"+linkarr[i]; 
  25.                 } 
  26.    
  27.                 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 +'">'); 
  28.                 document.write('<param name="movie" value="/templets/default/images/bcastr3.swf"><param name="quality" value="high">'); 
  29.                 document.write('<param name="menu" value="false"><param name=wmode value="opaque">'); 
  30.                 document.write('<param name="FlashVars" value="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'&bcastr_config='+configtg+'">');//开源软件:phpfensi.com 
  31.                 document.write('<embed src="/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>'); 
  32.                 </script>

Tags: dedecms幻灯片代码 dede幻灯片

分享到:

相关文章