Weave Dream Dedecms Slideshow Customization Settings

Source: Internet
Author: User

The following modifications apply only to the default templates provided by Dedecms and are valid for the V57 version. are: Adjust the first page slide size of the DEDECMS official template. A picture of a slide can be specified by itself. The slide link jumps to the specified URL (such as an ad page) instead of the site article page.

1, adjust the DEDECMS official template of the first page slide size.

Open the homepage template file templets/default/index.htm, find the following code:

<!–size:280px * 192px–>
<script language= ' JavaScript ' >
Linkarr = new Array ();
Picarr = new Array ();
Textarr = new Array ();
var swf_width=280;
var swf_height=192;

Modify the 280 190 to the width and height you want. Then open Templets/style/page.css and find the following code:

. index. flashnews{width:280px;  height:192px;  Overflow:hidden;  Float:left; }

Change the 280 190 to the width and height you want, and note that it is consistent with the previous one.

2, the picture of the slide can be specified by oneself.

Open the homepage template file templets/default/index.htm, find the following code:

{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}

Remove the {dede:arclist flag= ' F ' row= ' 5′} and {/dede:arclist} and change [field:arcurl/] to the address you want to jump to [field:litpic/] Change to the address of the picture you want to display on the slide, and change [Field:title function= ' Html2text (@me) '/] to the text you want to display on the slide. Change [field:global.autoindex/] all to 1, after the modification is completed as follows:

LINKARR[1] = "Address"; PICARR[1] = "Picture address"; TEXTARR[1] = "Text content area".

3. The slide link jumps to the specified URL (such as the ad page) instead of the site article page.

Then you find that there is only one picture on the slide, and if you want to change it to multiple charts, change it to the following:

LINKARR[1] = "url"; PICARR[1] = "Picture address"; TEXTARR[1] = "Text content area". LINKARR[2] = "url"; PICARR[2] = "Picture address"; TEXTARR[2] = "Text content area". LINKARR[3] = "url"; PICARR[3] = "Picture address"; TEXTARR[3] = "Text content area".

It's worth noting that the slides don't seem to support off-site images, so you have to upload the images you want to display in your own website space.

Weave Dream Dedecms Slideshow Customization Settings

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.