In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Dedecms background upload pictures to achieve picture rotation method? This problem may be often seen in our daily study or work. I hope you can gain a lot from this question. The following is the reference content that the editor brings to you, let's take a look at it!
How to realize picture rotation when uploading pictures in dedecms background?
Several websites have been set up with dedecms, but the picture rotation has always changed the code by hand. Today, I studied how to upload pictures in the background to realize picture rotation.
First of all, of course, it is to set up the column of the website, my column name is to take the big eyes (casually picked here), the inner empty model: ordinary articles. Other settings are set according to your own needs (article template and list template are defined by yourself).
Then, we started to do the picture rotation. Find index.htm in dedecms's templates/default. This is the default home page template for dedecms. Open this, find the JS code for image rotation and copy it into your own template.
Let's change the code as needed. Dedecms picture rotation has a title by default. I didn't need this feature here, so I took it off. Several changes have been made. Textarr = new Array (); var texts = ""; delete these two first. The first array variable is used to store the title, and the second variable is the title of the current picture. ). Dedecms this code, there is a configuration variable, there is a description, we can modify according to the instructions. Because I just want to delete the title, so delete the configuration related to the title will be OK. (final result: var configtg='2 | 3 | 1 | _ blank';). In the dedecms tag: textarr [[field:global.autoindex/]] = "[field:title function='html2text (@ me)'/]"; delete this paragraph, and there is also a loop traversing the title, which should also be deleted. Dedecms photo rotation here is the way of flash, so we also need to delete the parameters related to the title. After all this work is done, we begin to add pictures in the background. In the column you just created, create a new article and enter the title of the article.
Select √, slide, scroll, picture, jump
At the place where you want to jump to the URL, enter the address you want to jump to
Then upload the picture, which is uploaded here in the thumbnail, not the text of the article. The text of the article is left blank.
After the picture was uploaded. Save it and OK.
Thank you for reading! After reading the above, do you have a general understanding of the method of dedecms background uploading pictures to achieve picture rotation? I hope the content of the article will be helpful to all of you. If you want to know more about the relevant articles, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.