• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

A little help w/ search engine

yhlee

Senior member
I am running apache on a hpux 11.00 machine. I want to have the search engine "highlight" or "color" the words that are entered into the search on the resulting pages (kind of like google when you click on a cached page). Is there an app/script out there that does this already (I couldn't find one)?? I would hate to think of how inefficient my 'coding' of this would be... :frown:

-young
 
you can't do it to the real page, but if you do the kind of thing that google does with its cached pages, its pretty simple. you just open the cache, and send it to the client until you hit an occurance of the word(s). insert an html tag to color it, and continue.
 
This is fairly easy to do, we do it in fusetalk. Once your search results come up, use your scripting language to do a replace function. Just replace all instances of $keyword (or whatever your variable is) with <font style=&quot;background:#FFFF00&quot;>$keyword</font>. Something like that 😉 It all depends on your scripting language.
 
Back
Top