Forums

ASP

This topic is locked

Mark search results

Posted 30 Apr 2001 22:15:23
1
has voted
30 Apr 2001 22:15:23 Viktor Farcic posted:
I've made a search and results page. I would like to mark (highlight) 'search word' in text with different color. Does anybody know of some way?



Edited by - vfarcic on 05/01/2001 15:29:58

Replies

Replied 30 May 2001 19:08:44
30 May 2001 19:08:44 Joel Martinez replied:
just use the <b>Replace()</b> function to replace the value with bold tags around it like so:

str = replace(Str, value, "&lt;b&gt;" & value & "&lt;/b&gt;"



...is this thing on?
Replied 31 May 2001 10:52:53
31 May 2001 10:52:53 Viktor Farcic replied:
I needed more. If you're searching for 'web' on a details page it should be like:
&lt;b&gt;Web&lt;/b&gt; master is...
In other words it should keep the same case as in original taxt.
In the meantime I've found solution and it works fine. If somebody needs it I can send it on UDZone.com

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
just use the <b>Replace()</b> function to replace the value with bold tags around it like so:

str = replace(Str, value, "&lt;b&gt;" & value & "&lt;/b&gt;"



...is this thing on?
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Reply to this topic