帝国cms tag 标签云的效果
2020-09-29 15:39:52
帝国CMS
人点赞
随机获取颜色和字体(style=字体大小控制在14px~16px之间)
[e:loop={"select * from [!db.pre!]enewstags order by num desc limit 33",0,24,0}]
<a href="<?=$public_r[ne
[e:loop={"select * from [!db.pre!]enewstags order by num desc limit 33",0,24,0}]
<a href="<?=$public_r[ne
随机获取颜色和字体(style=字体大小控制在14px~16px之间)
[e:loop={"select * from [!db.pre!]enewstags order by num desc limit 33",0,24,0}]
<a href="<?=$public_r[newsurl]?>e/tags/?tagid=<?=$bqr['tagid']?>" target="_blank" style="color:<?= '#'.sprintf('%02X',rand(0,255)).sprintf('%02X',rand(0,255)).sprintf('%02X',rand(0,255));?>;font-size:<?=rand(14,16)?>px;"><?=$bqr['tagname']?>(<?=$bqr[num]?>个)</a>
[/e:loop]
前端代码展示
<a href="/e/tags/?tagid=1" target="_blank" style="color:#9AB274;font-size:15px;">胡侃精选(15个)</a>
示例代码:
<!-- 侧边位:热门标签 -->
<div class="widget widget_ui_tags">
<h3>热门标签</h3>
<div class="items">
[e:loop={"select * from [!db.pre!]enewstags order by num desc limit 33",0,24,0}]
<a href="<?=$public_r[newsurl]?>e/tags/?tagid=<?=$bqr['tagid']?>" target="_blank" style="color:<?= '#'.sprintf('%02X',rand(0,255)).sprintf('%02X',rand(0,255)).sprintf('%02X',rand(0,255));?>;font-size:<?=rand(14,16)?>px;"> <?=$bqr['tagname']?>(<?=$bqr[num]?>)</a>
[/e:loop]
</div>
</div>
把调用tags列表的灵动标签函数复制到同一页面下(调用参考函数如下)。
[e:loop={"select * from [!db.pre!]enewstags order by tagid",0,24,0}]
<li><a href='<?=$public_r[newsurl]?>tagname=<?=$bqr['tagname']?>' class='tag-link-<?=$bqr['tagid']?>' title='<?=$bqr['tagname']?>'
target="_blank"><?=$bqr['tagname']?>(<?=$bqr[num]?>)</a></li>
[/e:loop]
前端代码展示
<a href='/tagname=深圳' title='深圳' target="_blank">深圳(2)</a>
[e:loop={"select * from [!db.pre!]enewstags order by num desc limit 33",0,24,0}]
<a href="<?=$public_r[newsurl]?>e/tags/?tagid=<?=$bqr['tagid']?>" target="_blank" style="color:<?= '#'.sprintf('%02X',rand(0,255)).sprintf('%02X',rand(0,255)).sprintf('%02X',rand(0,255));?>;font-size:<?=rand(14,16)?>px;"><?=$bqr['tagname']?>(<?=$bqr[num]?>个)</a>
[/e:loop]
前端代码展示
<a href="/e/tags/?tagid=1" target="_blank" style="color:#9AB274;font-size:15px;">胡侃精选(15个)</a>
示例代码:
<!-- 侧边位:热门标签 -->
<div class="widget widget_ui_tags">
<h3>热门标签</h3>
<div class="items">
[e:loop={"select * from [!db.pre!]enewstags order by num desc limit 33",0,24,0}]
<a href="<?=$public_r[newsurl]?>e/tags/?tagid=<?=$bqr['tagid']?>" target="_blank" style="color:<?= '#'.sprintf('%02X',rand(0,255)).sprintf('%02X',rand(0,255)).sprintf('%02X',rand(0,255));?>;font-size:<?=rand(14,16)?>px;"> <?=$bqr['tagname']?>(<?=$bqr[num]?>)</a>
[/e:loop]
</div>
</div>
参考2
把调用tags列表的灵动标签函数复制到同一页面下(调用参考函数如下)。
[e:loop={"select * from [!db.pre!]enewstags order by tagid",0,24,0}]
<li><a href='<?=$public_r[newsurl]?>tagname=<?=$bqr['tagname']?>' class='tag-link-<?=$bqr['tagid']?>' title='<?=$bqr['tagname']?>'
target="_blank"><?=$bqr['tagname']?>(<?=$bqr[num]?>)</a></li>
[/e:loop]
前端代码展示
<a href='/tagname=深圳' title='深圳' target="_blank">深圳(2)</a>
很赞哦! (
)
相关文章
-
无相关信息
830*140广告