PJ-Blog教程┊将日志归档改为下拉列表框
见到很多朋友想知道怎么将日志归档改成下拉列表,本来早想写出来的,可惜这几天一直没时间,呵呵
演示看我的网站吧~www.x-force.cn
首先打开common/cache.asp,找到这一段代码www.x-force.cn '-----------------读取日志归档缓存--------------------
if action<>2 then
Dim archive_item_Len,Month_array
if ubound(blog_archive,1)=0 then archive="":exit function
Month_array=Array("一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月")
archive_item_Len=ubound(blog_archive,2)
For i=0 to archive_item_Len
archive=archive&""&blog_archive(1,i)&"年"&Month_array(blog_archive(2,i)-1)&" ["&blog_archive(0,i)&"]"
Next
end if
end function
把他们修改成:www.x-force.cn '-----------------读取日志归档缓存--------------------
if action<>2 then
Dim archive_item_Len,Month_array
if ubound(blog_archive,1)=0 then archive="":exit function
Month_array=Array("一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月")
archive_item_Len=ubound(blog_archive,2)
'==========X-Force修改的日志归档下拉列表==========
archive="