废话不多说 需要看演示的可以到:www.21863.cn 右侧靠下点
懒得写了 直接上我网站上的代码了 只有一个ID是主要的 放到你网站任何一个地方都可以
<div id="tagCloud" class="yellowpage In_Tag">
<div class="title">热门TAG<span><a href="{$GetSiteUrl}plus/tags.asp" target="_blank" title="热点家政标签Tags">更多</a></span></div>
<div class="content">
{=GetTags(1,25)}
</div>
<div class="bottom">
</div>
</div> |
css代码:
#tagCloud a{ text-decoration:none; padding:3px; }
#tagCloud a:hover{ background:#69f; color:#fff; }
.color0{ color:#76B504; }
.color1{ color:#AC1BF2; }
.color2{ color:#9E6FC5; }
.color3{color:#FBA426; }
.color4{ color:#CAC83B; }
.color5{ color:#C8A453; }
.color6{ color:#AB2846; }
.weight0{ font-weight:100; }
.weight1{ font-weight:300; }
.weight2{ font-weight:500; }
.weight3{ font-weight:700; }
.weight4{ font-weight:900; }
.weight5{ font-weight:bold; }
.weight6{ font-weight:bolder; }
.size0{ font-size:12px; }
.size1{ font-size:13px; }
.size2{ font-size:14px; }
.size3{ font-size:15px; }
.size4{ font-size:16px; }
.size5{ font-size:17px; }
.size6{ font-size:18px; }
|
javascript代码:
<script language="javascript" type="text/javascript">
eval(function(p, a, c, k, e, d) { e = function(c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) { d[e(c)] = k[c] || e(c) } k = [function(e) { return d[e] } ]; e = function() { return '\\w+' }; c = 1 }; while (c--) { if (k[c]) { p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]) } } return p } ('G d(){1 4=9 b("E","K","x","w","v","y","u");1 5=9 b("B","A","C","n","p","o","t");1 6=9 b("r","z","S","N","M","O","D");1 k=4.3;1 l=5.3;1 m=6.3;1 8=h.P("8");1 7=8.Q("a");1 j=7.3;F(i=0;i<j;i++){7.H=4[2.c(k*2.e())]+" "+5[2.c(l*2.e())]+" "+6[2.c(m*2.e())]}}J(h.g){f.g(\'R\',d,s)}q{f.I(\'L\',d)}', 55, 55, '|var|Math|length|colors|sizes|weights|tagLinks|tagCloud|new||Array|floor|setTagCloudStyle|random|window|addEventListener|document||tagLinksLen|colorsLen|sizesLen|weightsLen|size3|size5|size4|else|weight0|false|size6|color6|color4|color3|color2|color5|weight1|size1|size0|size2|weight6|color0|for|function|className|attachEvent|if|color1|onload|weight4|weight3|weight5|getElementById|getElementsByTagName|load|weight2'.split('|'), 0, {}))
</script> |
以上这些东西就可以实现了!