优晟SEO

您现在的位置是:首页 > CMS教程 > 帝国cms > 正文

帝国cms

帝国CMS[showtags]标签随机颜色大小显示TAGS

帝国   大小   颜色  
佚名 2024-08-27帝国cms
帝国CMS使用[showtags]随机颜色大小显示tags标签  在要显示TAGS的地方粘贴下列代码:<divid="tags">[showtags]'',10,10,'numdesc',0,'s,r','',1,''[/showtags]</div><scrip……

帝国CMS[showtags]标签随机颜色大小显示TAGS

帝国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)