<%
response.write replace(rs("字段X"),searchname,"<font color=#FF0000>" & searchname & "</font>")
%>
说明:rs为记录集对象,searchname为搜索的关键词
该文章转载自[余志国网站设计工作室]:http://www.yuzhiguo.com/articleview.asp?id=349
ASP搜索关键词时结果用红色显示代码
最新推荐文章于 2024-05-13 17:49:29 发布