织梦CMS默认模板幻灯片文字和颜色的修改方法,
导读:dedecmsdedecms织梦CMS的默认模板中,首页的幻灯片文字太小且颜色不好看。决定动手修改下,但是我一名菜鸟,不太懂这些代码,只好到网站寻找相关说明教程了,经过一番努力,我发现一个织梦的模板织梦模板修改。
织梦CMS的默认模板中,首页的幻灯片文字太小且颜色不好看。决定动手修改下,但是我一名菜鸟,不太懂这些代码,只好到网站寻找相关说明教程了,经过一番努力,我发现一个比较简单的设置方法。
首先,打开首页模板,找到以下代码
<!-- size: 280px * 192px --> <script language='javascript'> linkarr = new Array(); picarr = new Array(); textarr = new Array(); var swf_width=280; var swf_height=192; var files = ""; var links = ""; var texts = ""; //这里设置调用标记 {dede:arclist flag='f' row='5'} 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++){ &n织梦模板bsp; 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/}/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=0xffffff|1|0x0066ff|60|0xffffff|0x0066ff|0x000033|3|2|1|_blank">'); document.write('<embed src="{dede:global.cfg_tempdede手机模板leturl/}/images/bcastr3.swf" wmode="opaque" FlashVars="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'&bcastr_config=0xffffff|1|0x0066ff|60|0xffffff|0x0066ff|0x000033|3|2|1|_blank& 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>
声明: 本文由我的SEOUC技术文章主页发布于:2023-07-21 ,文章织梦CMS默认模板幻灯片文字和颜色的修改方法,主要讲述幻灯片,颜色,CMS网站建设源码以及服务器配置搭建相关技术文章。转载请保留链接: https://www.seouc.com/article/web_32724.html