<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

DEDE织梦文章列表中添加hot和new图标方法

时间:2020-12-21

或许我们经常浏览网页发现文章列表中出现有new或者hot字样,对于织梦程序如何添加呢?

1.“new”的添加方法:

[field:pubdate runphp='yes']$ntime = time();$day3 = 3600 * 24 * 3;if(($ntime – @me) < $day3) @me = “<span class=’new_ico’></span>”;else @me =””;[/field:pubdate]

2.“hot”添加方法,这里用了一个简单的判断语句来实现:

[field:click runphp='yes']if(@me > 1000 )@me = ”<span class=’hot_ico’></span>”;else @me = “”;[/field:click]

这里点击率设定为1000,当“click”大于1000时,添加span标签,然后用CSS将其定位到合适的地方。

    0
    首页
    案例
    关于
    联系