您现在的位置:首页 >> web >> web知识 >> 内容

DEDE V5.6默认幻灯去掉头部文字方法

双击自动滚屏      时间:2011-2-22 15:11:26  点击:3129

  核心提示:script language=’javascript’linkarr = new Array();picarr = new Array();textarr = new Array();var swf_width=212;var swf_height=173;//文字颜色|文字位置|文字背景颜色|文...

<script language=’javascript’>
linkarr = new Array();
picarr = new Array();
textarr = new Array();
var swf_width=212;
var swf_height=173;
//文字颜色|文字位置|文字背景颜色|文字背景透明度|按键文字颜色|按键默认颜色|按键当前颜色|自动播放时间|图片过渡效果|是否显示按钮|打开方式
var configtg=’0xffffff|0|0x3FA61F|5|0xffffff|0xC5DDBC|0×000033|2|3|1|_blank’;
var files = “”;
var links = “”;
var texts = “”;
//这里设置调用标记
{dede:arclist flag=’f’ row=’5′  typeid=’7′}
linkarr[[field:global.autoindex/]] = “[field:arcurl/]“;
picarr[[field:global.autoindex/]]  = “[field:litpic/]“;
textarr[[field:global.autoindex/]] = “[field:title function='html2text(@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=”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_templeturl /}/default/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+’&bcastr_config=’+configtg+’”>’);
document.write(‘<embed src=”{dede:global.cfg_templeturl /}/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>

红色部分修改为
var configtg=’0xffffff|2|0x3FA61F|0|0xffffff|0xC5DDBC|0×000033|2|3|1|_blank’; 
绿色代码删除

改后的代码就是

<script language=’javascript’>
linkarr = new Array();
picarr = new Array();
textarr = new Array();
var swf_width=212;
var swf_height=173;
//文字颜色|文字位置|文字背景颜色|文字背景透明度|按键文字颜色|按键默认颜色|按键当前颜色|自动播放时间|图片过渡效果|是否显示按钮|打开方式
var configtg=’0xffffff|2|0x3FA61F|0|0xffffff|0xC5DDBC|0×000033|2|3|1|_blank’; 
var files = “”;
var links = “”;
var texts = “”;
//这里设置调用标记
{dede:arclist flag=’f’ row=’5′  typeid=’7′}
linkarr[[field:global.autoindex/]] = “[field:arcurl/]“;
picarr[[field:global.autoindex/]]  = “[field:litpic/]“;
textarr[[field:global.autoindex/]] = “”;
{/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=”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_templeturl /}/default/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+’&bcastr_config=’+configtg+’”>’);
document.write(‘<embed src=”{dede:global.cfg_templeturl /}/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>

作者:亮亮 录入:亮亮 来源:原创
共有评论 0相关评论
发表我的评论
  • 大名:
  • 内容:
本类固顶
  • 没有
  • 永年区网(www.yongnianxian.com) © 2018 版权所有 All Rights Reserved.
  • 站长联系方式 Email:ynxwang@126.com QQ:695600675
  • 广告总代理 永年双珲商贸有限公司