Home  >  Article  >  CMS Tutorial  >  What should I do if the slideshow on the homepage of DEDE does not display?

What should I do if the slideshow on the homepage of DEDE does not display?

藏色散人
藏色散人Original
2019-11-16 11:36:362917browse

What should I do if the slideshow on the homepage of DEDE does not display?

What should I do if the slideshow on the DEDE homepage does not display?

Reasons and solutions for the slideshow on the DEDE homepage not being displayed

Most of the reasons why the slideshow on the DEDE homepage is not displayed are because of the following two points :

1. The path of the .swf animation in the DEDE slide is wrong.

2. It's a problem with the format of the slideshow image attachment you set.

Recommended learning: dedecms tutorial

We usually mostly cause it due to the path. The following is a default slideshow code:

<script language=&#39;javascript&#39;> 
linkarr = new Array(); 
picarr = new Array(); 
textarr = new Array(); 
var swf_width=280; 
var swf_height=192; 
//文字颜色|文字位置|文字背景颜色|文字背景透明度|按键文字颜色|按键默认颜色|按键当前颜色|自动播放时间|图片过渡效果|是否显示按钮|打开方式 
var configtg=&#39;0xffffff|0|0x3FA61F|5|0xffffff|0xC5DDBC|0x000033|2|3|1|_blank&#39;; 
var files = ""; 
var links = ""; 
var texts = ""; 
//这里设置调用标记 
{dede:arclist flag=&#39;f&#39; row=&#39;5&#39;} 
linkarr[[field:global.autoindex/]] = "[field:arcurl/]"; 
picarr[[field:global.autoindex/]]  = "[field:litpic/]"; 
textarr[[field:global.autoindex/]] = "[field:title function=&#39;html2text(@me)&#39;/]"; 
{/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(&#39;<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
 codebase="#version=6,0,0,0" width="&#39;+ swf_width +&#39;" height="&#39;+ swf_height +&#39;">&#39;); 
document.write(&#39;<param name="movie" value="{dede:global.cfg_templeturl /}/default/images/bcastr3.swf">
<param name="quality" value="high">&#39;); 
document.write(&#39;<param name="menu" value="false"><param name=wmode value="opaque">&#39;); 
document.write(&#39;<param name="FlashVars" value="bcastr_file=&#39;+files+&#39;&bcastr_link=&#39;+links+&#39;
&bcastr_title=&#39;+texts+&#39;&bcastr_config=&#39;+configtg+&#39;">&#39;); 
document.write(&#39;<embed src="{dede:global.cfg_templeturl /}/default/images/bcastr3.swf" wmode=
"opaque" FlashVars="bcastr_file=&#39;+files+&#39;&bcastr_link=&#39;+links+&#39;&bcastr_title=&#39;+texts+&#39;&bcastr_config=
&#39;+configtg+&#39;&menu="false" quality="high" width="&#39;+ swf_width +&#39;" height="&#39;+ swf_height +&#39;" type=
"application/x-shockwave-flash" pluginspage="" />&#39;); document.write(&#39;</object>&#39;); 
</script>

There are two paths in the above code that you need to see clearly. If you really don’t know how to call the URL, it is recommended to fill in the absolute path directly.

1.

If the paths of these two pieces of code are the same, if you don’t understand the calling habits of {dede:global.cfg_templeturl /}, it is best to write the absolute path, for example :

Replace {dede:global.cfg_templeturl /} with your website address in this form to avoid error rates.

Of course, the above mentioned are all the default slides. Many friends use other people’s templates to install them and the slides do not display. We must first make sure that the .swf in the slides in other people’s templates is The file is there, and then modify the slide path in the template, as I said above, modify it in two places, and modify the paths in the two places to be the same. This should prevent it from not showing up. If it still doesn’t show up, it’s because of the image format. You can try it. When I copied the site in the past, it was because of the image format issue that it took me a long time to figure it out. A problem with the image format caused the slideshow to not display.

The above is the detailed content of What should I do if the slideshow on the homepage of DEDE does not display?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn