Get the App
SLTechnology News&Howtos  ›  Servers  › 

Dream weaving dedecms article list how to achieve the effect of "interlaced color change"

Shulou Source: shulou.com Published: 2022-06-02 01:23:52 10月02日 Update

This article is about how to achieve the "interlaced color change" effect in the list of dream weaving dedecms articles. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.

Use the article list interlaced color change can make a difference between the two displayed, many websites in the list page are used in the interlaced color change display method, the following I will be in dedecms v5.7 to achieve interlaced color change code posted, so that you like dedecms friends can refer to the following code for modification, in order to achieve the desired display effect.

The list is separated by 5 lines plus one line:

{dede:list pagesize='50'} [field:title function= "cn_substr (@ me,48)" /] [field:pubdate runphp='yes'] $a = ".strftime ('% MFI% dudes)."; $b=strftime ('% MMI% dudes)); $ntime = time (); $day3 = 3600 * 24transferif (($ntime-@ me) < $day3) @ me = $ntime @ me = $b; [/ field:pubdate]

[field:global name=autoindex runphp= "yes"] if (@ me%5==0) @ me= "; else @ me="; [/ field:global] {/ dede:list} Thank you for reading! On the dream weaving dedecms article list on how to achieve "interlaced color change" effect is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.

Tags: Articles effects content code more references good practical one line methods friends look knowledge articles websites real help related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Shulou Information Xiaomi MariaDB Huawei