能否科汛改造成把内容关键词设置是否对博客有效?
我已经找到了相关的取代函数:
Public Function ReplaceInnerLink(Content)
If Not IsObject(Application(SiteSN & "_InnerLink")) then
Dim Rs:Set Rs = Conn.Execute("Select Title,Url,OpenType From KS_InnerLink Where OpenTF=1 Order By ID")
Set Application(SiteSN & "_InnerLink")=RecordsetToxml(Rs,"InnerLink","InnerLinkList")
Set Rs = Nothing
end if
Dim Node
For Each Node In Application(SiteSN & "_InnerLink").DocumentElement.SelectNodes("InnerLink")
If InStr(Content,Node.selectSingleNode("@ks0").text)>0 Then
Dim OpenTypeStr:OpenTypeStr = G_O_T_S(Node.selectSingleNode("@ks2").text)
Content= Replace(Content,Node.selectSingleNode("@ks0").text,"<a href="""&Node.selectSingleNode("@ks1").text&"""" & OpenTypeStr & ">"&Node.selectSingleNode("@ks0").text&"</a>")
End if
Next
ReplaceInnerLink = Content
End Function
把他放在什么地方就行了?