Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 How to highlight the keywords I searched

Author  Topic 

donar
Starting Member

22 Posts

Posted - 2005-03-10 : 13:06:45
This question is more concern about web pages. Since when I use the search function in the forum, the search result will highlight the words I searched for.
Can anyone help me and tell me how to do that?

It is a very nice feature.

Thanks a lot!

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2005-03-10 : 13:12:15
when building a page from a recordset you check each row for search keywords and if it's there you wrap it in a font tag with a background color or a css class.

Go with the flow & have fun! Else fight the flow
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2005-03-10 : 13:42:54
The Snitz forum code used to host these forums has this feature, it is freely available here:

http://forum.snitz.com/

You can check it out and look at how they did it.
Go to Top of Page
   

- Advertisement -