一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

ZBLOG增加文章里的关键字替换

时间:2008-01-13 编辑:简简单单 来源:一聚教程网

内关键字替换

 Function AddLink(str)
  Dim Rs
  Set Rs = objConn.Execute("Select [KeyWords],[LinkUrl],[LinkTitle],[LinkWindow] FROM [blog_KeyLink]")
  While Not Rs.eof
   if instr(str,Rs(0))>0 then
    AddLink=Replace(str,Rs(0),"" & Rs(0) & "")
   end if
   Rs.movenext
  Wend
  Set Rs=Nothing
 End Function 网页教学网

 Public Property Get HtmlContent
  HtmlContent=AddLink(TransferHTML(UBBCode(Content,"[face][link][autolink][font][code][image][typeset][media][flash][key]"),"[html-japan][vbCrlf][upload]"))
 End Property

 

热门栏目