呵呵,帮版主哦,找到ks_cls/KS.RCls.asp文件大约755行处
Function GetTags(TagType,Num)
if not isnumeric(num) then exit function
dim sqlstr,sql,i,n,str
select case cint(tagtype)
case 1:sqlstr="select top 500 keytext,channelid from ks_keywords order by hits desc"
case 2:sqlstr="select top 500 keytext,channelid from ks_keywords order by lastusetime desc,id desc"
case 3:sqlstr="select top 500 keytext,channelid from ks_keywords order by Adddate desc,id desc"
case else
GetTags="":exit function
end select
dim rs:set rs=conn.execute(sqlstr)
if rs.eof then rs.close:set rs=nothing:exit function
sql=rs.getrows(-1)
rs.close:set rs=nothing
for i=0 to ubound(sql,2)
if KS.FoundInArr(str,sql(0,i),",")=false then
n=n+1
str=str & "," & sql(0,i)
gettags=gettags & "<a href=""" & domainstr & "plus/search.asp?searchtype=5&channelid=" & sql(1,i) & "&tags=" & sql(0,i)& """ target=""_blank"">" & sql(0,i) & "</a> "
end if
if n>=cint(num) then exit for
next
End Function