<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">

观点

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

在dedecms文章列表中添加hot,new图标

时间:2020-12-15

针对个性化的新闻列表展示,我们对于织梦可能用默认的方法实现不了,那么需要我们配合判断语句来添加,并且需要我们会CSS样式,来配合语句来完成,就相当完美了。

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
    首页
    案例
    关于
    联系