此幻灯可以兼容GIF与JPG并且能够自动调整图片不会出现缩略图大小不一造成的拉升变形等问题效果大家可以去看看官网https://www.dedecms.com/和演示站点https://demo.dedecms.com
Copy code:<script language='javascript'>linkarr = new Array();picarr = new Array();textarr = new Array();var swf_width=280;var swf_height=220;var files = "";var links = "";var texts = "";{dede:arclist row='5' att='3' type='p_w_picpath.'}linkarr[[field:global name=autoindex/]] = "[field:arcurl/]";picarr[[field:global name=autoindex/]] = "[field:litpic/]";textarr[[field:global name=autoindex/]] = "[field:title function='ClearHtml(@me)'/]";{/dede:arclist}for(i=1;i<picarr.length;i ){if(files=="") files = picarr[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('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="[url]https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6[/url],0,0,0" width="' swf_width '" height="' swf_height '">');document.write('<param name="movie" value="{dede:global name='cfg_templeturl'/}/p_w_picpaths/bcastr3.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="{dede:global name='cfg_templeturl'/}/p_w_picpaths/bcastr3.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="[url]https://www.macromedia.com/go/getflashplayer"[/url] />'); document.write('</object>');</script>上面的代码是调用最新的5条带缩略图的文档并且要是文档属性是幻灯显示如果需要改成最新的5条带缩略图的文档用{dede:arclist row='5' type='image.'}即可附件里的文件直接覆盖 emplets就可以了
Quote:高级设置:默认参数字符串0xffffff:文字颜色| 2:文字位置| 0xff6600:文字背景颜色| 60:文字背景透明度| 0xffffff:按键文字颜色| 0xff6600:按键默认颜色| 0x000033:按键当前颜色| 8:自动播放时间(秒)| 2:图片过渡效果| 1:是否显示按钮| _blank:打开新窗口颜色都以0x开始16进制数字表示文字颜色:题目文字的颜色文字位置:0表示题目文字在顶端,1表示文字在底部,2表示文字在顶端文字背景透明度:0-100值,0表示全部透明按键文字颜色:按键数字颜色按键默认颜色:按键默认的颜色按键当前颜色:当前图片按键颜色自动播放时间:单位是秒图片过渡效果:0,表示亮度过渡,1表示透明度过渡,2表示模糊过渡,3表示运动模糊过渡是否显示按钮:0,表示隐藏按键部分,更适合做广告挑轮换打开窗口:_blank表示新窗口打开。_self表示在当前窗口打开修改的方法为在上面幻灯代码的bcastr_title=' texts '后面添加下面的代码相关参数可以参考上面的说明&bcastr_config=0xffffff:文字颜色|2:文字位置|0x0066ff:文字背景颜色|60:文字背景透明度|0xffffff:按键文字颜色|0x0066ff:按键默认颜色|0x000033:按键当前颜色|8:自动播放时间(秒)|2:图片过渡效果|0:是否显示按钮|_blank:打开窗口。想要标题显示在下面的话可以用下面的代码:
Copy code。<script language='javascript'>linkarr = new Array();picarr = new Array();textarr = new Array();var swf_width=280;var swf_height=220;var files = "";var links = "";var texts = "";{dede:arclist row='5' att='3' type='p_w_picpath.'}linkarr[[field:global name=autoindex/]] = "[field:arcurl/]";picarr[[field:global name=autoindex/]] = "[field:litpic/]";textarr[[field:global name=autoindex/]] = "[field:title function='ClearHtml(@me)'/]";{/dede:arclist}for(i=1;i<picarr.length;i ){if(files=="") files = picarr[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('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="[url]https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6[/url],0,0,0" width="' swf_width '" height="' swf_height '">');document.write('<param name="movie" value="{dede:global name='cfg_templeturl'/}/p_w_picpaths/bcastr3.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 '&bcastr_config=2:1">');document.write('<embed src="{dede:global name='cfg_templeturl'/}/p_w_picpaths/bcastr3.swf" wmode="opaque" FlashVars="bcastr_file=' files '&bcastr_link=' links '&bcastr_title=' texts '&bcastr_config=2:1& menu="false" quality="high" width="' swf_width '" height="' swf_height '" type="application/x-shockwave-flash" pluginspage="[url]https://www.macromedia.com/go/getflashplayer"[/url] />'); document.write('</object>');</script>