是不是觉得PJBlog置顶的日志标题不够醒目?想修改吗?其实不难~来,我们加个醒目的标题!
PJBlog分静态日志和动态日志两种模式,且静态和动态时都有普通显示和列表显示日志的选项,所以,我们要改4个地方。
动态模式:
打开class/cls_default.asp 搜索
<%If CanRead Then%>
(共找到2个,一个普通模式,一个列表模式,都要改)
第一处,原来是这样:
<a class="titleA" href="article.asp?id=<%=webLogArr(0,PageCount)%>"><%=HtmlEncode(webLogArr(3,PageCount))%></a>
修改成:
<a class="titleA" href="article.asp?id=<%=webLogArr(0,PageCount)%>"><%if webLogArr(9,PageCount) then response.Write "<font color='#ff0000'>热点聚焦∴ </font>"%><%=HtmlEncode(webLogArr(3,PageCount))%></a>
第二处:
原来是这样
<a href="<%=logLink%>" title="作者:<%=webLogArr(2,PageCount)%> 日期:<%=DateToStr(webLogArr(4,PageCount),"Y-m-d")%>"><%=HtmlEncode(webLogArr(3,PageCount))%></a>
改成:
<a href="<%=logLink%>" title="作者:<%=webLogArr(2,PageCount)%> 日期:<%=DateToStr(webLogArr(4,PageCount),"Y-m-d")%>"><%if webLogArr(9,PageCount) then response.Write "<font color='#ff0000'>热点聚焦∴ </font>"%><%=HtmlEncode(webLogArr(3,PageCount))%></a>
静态模式:
打开class/cls_logAction.asp
搜索
Temp1=Replace(Temp1,"<$log_Title$>",HtmlEncode(log_View("log_Title")))
改为:
现在改为:
if log_View("log_IsTop") then
Temp1=Replace(Temp1,"<$log_Title$>","<font color='#ff0000'>热点聚焦∴ </font>"&HtmlEncode(log_View("log_Title")))
Else
Temp1=Replace(Temp1,"<$log_Title$>",HtmlEncode(log_View("log_Title")))
End if
刚改完的上面是普通模式,下面是列表模式
搜索:
Temp2=Replace(Temp2,"<$log_Title$>",HtmlEncode(log_View("log_Title")))
改为:
现在改为:
if log_View("log_IsTop") then
Temp2=Replace(Temp2,"<$log_Title$>","<font color='#ff0000'>热点聚焦∴ </font>"&HtmlEncode(log_View("log_Title")))
Else
Temp2=Replace(Temp2,"<$log_Title$>",HtmlEncode(log_View("log_Title")))
End if