D8论坛

 找回密码
 5秒注册

QQ登录

只需一步,快速开始

查看: 111|回复: 0

DEDECMS默认幻灯片修改:去掉幻灯片标题方法

[复制链接]
  • TA的每日心情
    开心
    2018-9-28 11:40
  • 发表于 2013-9-16 10:39:58 | 显示全部楼层 |阅读模式
    1#-右侧预留位置
    如果想去掉头部介绍文字的方法,去掉下面这段代码就可以了:
    1. textarr[[field:global.autoindex/]] = "[field:title function='html2text(@me)'/]";
    复制代码
    修改后的幻灯片代码为:
    1. <script language='javascript'>
    2. linkarr = new Array();
    3. picarr = new Array();
    4. textarr = new Array();
    5. var swf_width=280;
    6. var swf_height=192;
    7. //文字颜色|文字位置|文字背景颜色|文字背景透明度|按键文字颜色|按键默认颜色|按键当前颜色|自动播放时间|图片过渡效果|是否显示按钮|打开方式
    8. var configtg='0xffffff|0|0x3FA61F|5|0xffffff|0xC5DDBC|0x000033|2|3|1|_blank';
    9. var files = "";
    10. var links = "";
    11. var texts = "";
    12. //这里设置调用标记
    13. {dede:arclist flag='f' 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;
    20. else files += "|"+picarr;
    21. }
    22. for(i=1;i<linkarr.length;i++){
    23. if(links=="") links = linkarr;
    24. else links += "|"+linkarr;
    25. }
    26. for(i=1;i<textarr.length;i++){
    27. if(texts=="") texts = textarr;
    28. else texts += "|"+textarr;
    29. }
    30. 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 +'">');
    31. document.write('<param name="movie" value="{dede:global.cfg_templeturl /}/模板名/images/bcastr3.swf"><param name="quality" value="high">');
    32. document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
    33. document.write('<param name="FlashVars" value="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'&bcastr_config='+configtg+'">');
    34. document.write('<embed src="{dede:global.cfg_templeturl /}/模板名/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>');
    35. </script>
    复制代码
    如果这样做后 原幻灯片标题位置出现白条,请修改这里:
    1. /文字颜色|文字位置|文字背景颜色|文字背景透明度|按键文字颜色|按键默认颜色|按键当前颜色|自动播放时间|图片过渡效果|是否显示按钮|打开方式
    2. var configtg='0xffffff|100|0x3FA61F|100|0xffffff|0xC5DDBC|0x000033|5|3|1|_blank';
    复制代码
    觉得晕,不知道怎么修改了,可以直接使用下面的代码:
    <script language='javascript'>
    linkarr = new Array();
    picarr = new Array();
    textarr = new Array();
    var swf_width=980;
    var swf_height=321;
    var files = "";
    var links = "";
    var texts = "";
    //这里设置调用标记
    {dede:arclist flag='f' row='5'}
    linkarr[[field:global.autoindex/]] = "[field:arcurl/]";
    picarr[[field:global.autoindex/]]  = "[field:litpic/]";
    {/dede:arclist}
    for(i=1;i<picarr.length;i++){
      if(files=="") files = picarr;
      else files += "|"+picarr;
    }
    for(i=1;i<linkarr.length;i++){
      if(links=="") links = linkarr;
      else links += "|"+linkarr;
    }
    for(i=1;i<textarr.length;i++){
      if(texts=="") texts = textarr;
      else texts += "|"+textarr;
    }
    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 +'">');
    document.write('<param name="movie" value="{dede:global.cfg_templets_skin/}/images/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.cfg_templets_skin/}/images/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="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>');
    </script>
    您需要登录后才可以回帖 登录 | 5秒注册

    本版积分规则

    QQ|手机版|id申诉解禁|小黑屋|织梦吧 ( 闽ICP备17002340号-2 )

    GMT+8, 2019-10-23 16:10 , Processed in 0.031858 second(s), 26 queries .

    Powered by Discuz! X3.4

    © 2001-2017 Comsenz Inc.

    快速回复 返回顶部 返回列表