帝国CMS[showtags]标签随机颜色大小显示TAGS
帝国CMS使用[showtags]随机颜色大小显示tags标签 在要显示TAGS的地方粘贴下列代码:<divid="tags">[showtags]&#39;&#39;,10,10,&#39;numdesc&#39;,0,&#39;s,r&#39;,&#39;&#39;,1,&#39;&#39;[/showtags]</div><scrip……
帝国CMS使用[showtags]随机颜色大小显示tags标签
在要显示TAGS的地方粘贴下列代码:
<divid="tags">[showtags]'',10,10,'numdesc',0,'s,r','',1,''[/showtags]</div><script>varbcolor=document.getElementById("tags").getElementsByTagName("a");for(i=0;k=bcolor.length,i<k;i++){varstr="0123456789ABCDEF";vart="#";for(j=0;j<6;j++){t=t+str.charAt(Math.random()*str.length);}varfsize;fsize=parseInt(Math.random()*(20)+6);if(fsize<12){fsize=12}bcolor[i].style.color=t;bcolor[i].style.fontSize=fsize+"px";}</script>
或
<divid="ctag">[showtags]'',40,0,'rand()',0,'s,r','',0,''[/showtags]</div><scriptlanguage="javascript">varbcolor=document.getElementById("ctag").getElementsByTagName("a");for(i=0;k=bcolor.length,i<k;i++){varstr="0123456789ABCDEF";vart="#";for(j=0;j<6;j++){t=t+str.charAt(Math.random()*str.length);}varfsize;fsize=parseInt(Math.random()*(20)+6);bcolor[i].style.color=t;bcolor[i].style.fontSize=fsize+"px";}</script>
************************************************************************************
注释:
[showtags]'',10,10,'num desc',0,'s,r','',1,''[/showtags]
''=指定ID,
10=调用总数量,
10=每行显示数量,
num desc=显示排序,
0=只显示推荐的(0为不显示,1为显示),
s,r=推荐TAGS属性(s为加粗,r为加红),
''=显示间隔符(一般为空格符: ),
1=显示信息数量(0为不显示,1为显示),
''=链接使用变量(一般为tagname和tagid)
- 上一篇
帝国CMS会员中心调用会员发布信息总数
希望在会员中心首页,调用显示会员总共投稿发布了多少篇信息,以帝国CMS7.0为例,代码如下:<?=$empire->gettotal("select count(*) as total from phome_ecms_info where userid='$user[userid]' ")?>这是根据数据表查询调
- 下一篇
帝国CMS7.5编辑器按enter回车换行
帝国CMS7.5编辑器中按enter换行,如何将<br>改成<p>?修改方法如下:第一个在:eadminecmseditorinfoeditorconfig.js;第二个在:eadminecmseditorempeditorconfig.js;第三个在:edataecmseditorinfoeditorconfig.js;你要把这三个文件