Discuss: Enhance Usability by Highlighting Search Terms
by Brian Suda, Matt Riggott
- Editorial Comments
22 Too much highlighting
Highlighting is nice if the words you were looking for are in an obscure part of the page. However, it quickly becomes annoying when the searched words are very common in the main text. Precisely because those words stand out, it gets very hard to read the rest.
posted at 02:58 am on October 2, 2004 by Matijs van Zuijlen
23 Parse, not hack
I’d recommend using XML/DOM parser instead of risky and costly regular expressions. And here you go – another advantage of using valid XHTML.
posted at 08:27 am on October 7, 2004 by porneL
24 congratulations for the article.
congratulations for the article.
posted at 02:34 am on October 20, 2004 by diseño web
25 watches
<h1>You are invited to check the sites about[url=“http://www.adult-dvd-top-shop.info/”] adult dvd [/url] | adult dvd | [url=“http://www.adult-dvd-top-shop.info/”]http://www.adult-dvd-top-shop.info/[/url] | <br>[url=“http://www.card-credit-4u.info/”] card credit [/url] | card credit | [url=“http://www.card-credit-4u.info/”]http://www.card-credit-4u.info/[/url] | <br>[url=“http://www.apply-card-credit-4u.info/”] apply card credit [/url] | apply card credit | [url=“http://www.apply-card-credit-4u.info/”]http://www.apply-card-credit-4u.info/[/url] | <br>[url=“http://www.cheap-flight-e-site.info/”] cheap flight [/url] | cheap flight | [url=“http://www.cheap-flight-e-site.info/”]http://www.cheap-flight-e-site.info/[/url] | <br>[url=“http://www.emc-mortgage-advisor.info/”] emc mortgage [/url] | emc mortgage | [url=“http://www.emc-mortgage-advisor.info/”]http://www.emc-mortgage-advisor.info/[/url] | <br>[url=“http://www.dating-e-site.info/”] dating [/url] | dating | [url=“http://www.dating-e-site.info/”]http://www.dating-e-site.info/[/url] | <br>[url=“http://www.card-credit-unsecured-4u.info/”] card credit unsecured [/url] | card credit unsecured | [url=“http://www.card-credit-unsecured-4u.info/”]http://www.card-credit-unsecured-4u.info/[/url] | <br>[url=“http://www.personal-loans-bad-credit-ebanking.info/”] personal loans bad credit [/url] | personal loans bad credit | [url=“http://www.personal-loans-bad-credit-ebanking.info/”]http://www.personal-loans-bad-credit-ebanking.info/[/url] | <br>[url=“http://www.credit-report-4u.info/”] credit report [/url] | credit report | [url=“http://www.credit-report-4u.info/”]http://www.credit-report-4u.info/[/url] | <br>[url=“http://www.equipment-used-for-golf-e-course.info/”] equipment used for golf [/url] | equipment used for golf | [url=“http://www.equipment-used-for-golf-e-course.info/”]http://www.equipment-used-for-golf-e-course.info/[/url] | <br>[url=“http://www.debt-management-solution-advisor.info/”] debt management solution [/url] | debt management solution | [url=“http://www.debt-management-solution-advisor.info/”]http://www.debt-management-solution-advisor.info/[/url] | <br>[url=“http://www.top-card-credit-one-4u.info/”] capital card credit one [/url] | capital card credit one | [url=“http://www.top-card-credit-one-4u.info/”]http://www.top-card-credit-one-4u.info/[/url] | <br>… </h1>
posted at 02:09 pm on November 1, 2004 by watches
26 Use default highlighting color
Rather than defining colors to use for highlighting, you can use css colors to automatically specify whichever colors the browser uses by default for highlighting. Look here: http://bombingpixels.com/css/testing/css-user-interface.htm
posted at 10:05 pm on November 6, 2004 by Jeff
27 diseño web
“Gracias” in inglés es “Thanks” no “Congratulations”.
posted at 02:34 pm on November 14, 2004 by Dante
Discussion Closed
New comments are not being accepted, but you are welcome to explore what people said before we closed the door.
Got something to say?
Discuss this article. We reserve the right to delete flames, trolls, and wood nymphs.
Create a new account or sign in below if you’d like to leave a comment.
Subscribe to this article's comments: RSS (what’s this?)






21 Bugs with Special Characters
Nice script, but when your search term includes a German “Umlaut” like “ü” (ü), all text vanishes!
Also I got strange results when the searched text includes several <div>s, <!— comments —>, and <?php ?> tags, don’t know which is responsible. Then the first <div> block is ignored and only text in the second is highlighted…
posted at 11:28 am on September 27, 2004 by Martin Kliehm