HighDots Forums  

How to highlight the searched words ?

alt.html.dhtml alt.html.dhtml


Discuss How to highlight the searched words ? in the alt.html.dhtml forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Roland
 
Posts: n/a

Default How to highlight the searched words ? - 12-02-2004 , 08:39 AM






Hello there
I wrote one program in VC++ to highlight all words found in page
currently navigated in browser. For that I am just appending
"<span id=\"HTMLSEARCH\" STYLE=\"background-color: Highlight
COLOR:HighlightText\"\\>" it to words found so as to highlight the
words. My problem is that if the background color is same as
highlighted color them you can't read the word. I want to highlight
the word just like when you select any word using mouse. It highlights
the word and sets the background color which is exact reverse to
previous background color. How can I do this ?
Should I chage the background-color and color ?

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.