知道灵丹已经弄好了,还是要发一下
修改方法很简单,找到根目录下的tags.asp,打开,找到以下代码:
下面的只是我做的,灵丹把她的TAGS页面做的很精致,号召大家去扒她的皮
--------------------------------------------------------------------------------
Dim Tag
Dim strTagCloud
For Each Tag in Tags
If IsObject(Tag) Then
strTagCloud=strTagCloud & "<span style='font-family:verdana,sans-serif;line-height:150%;font-size:"& 12 + (Tag.Count/2) &"px;margin:10px;'><a title='" & Tag.Count & "' alt='"& Tag.Count &"' href='" & Tag.Url &"'>" & Tag.name & "</a></span>"
End If
Next
修改成以下代码:
--------------------------------------------------------------------------------
Dim Tag
Dim strTagCloud
strTagCloud="<table width=100% >"
dim i '循环记数器
i=0
dim rowcount '每行显示几个标签
rowcount=3
For Each Tag in Tags
If IsObject(Tag) Then
if i=0 then
strTagCloud=strTagCloud &"<tr height=22>"
end if
strTagCloud=strTagCloud & "<td><span style='font-family:verdana,sans-serif;font-size:12px;line-height:150%;margin:10px;'><a title='这个标签下有 " & Tag.Count & " 篇文章,点击查看' href='" & Tag.Url &"'>" & Tag.name & " - " & Tag.Count & "篇</a></span></td>"
if i=(rowcount-1) then
strTagCloud=strTagCloud &"</tr>"
end if
i=(i+1) mod rowcount
End If
Next
if i<>0 then
strTagCloud=strTagCloud & "<td colspan=""" & rowcount-i & """> </td></tr>"
end if
strTagCloud=strTagCloud &"</table>"
效果见
http://www.busfly.cn/tags.asp
当然,你最好自己改一下样式,使得看起来更漂亮