Welcome to WebmasterWorld Guest from 18.104.22.168
Forum Moderators: lawman
I just came here to webmasterworld.com via google. And I'm impressed, that all searchwords, which I typed in google, are highlighted on webmasterworld! That is a very interesting function.
I would like to have such a function on my website, too! Can anybody help me? Where can I find a script, which implement this function to my website?
Thanks a lot! And I'm very happy to have found your fantastic site. I already learned a lot.
I don´t believe this is exactly a secret. Anyway, since I do not know how Brett does it I felt free to post how I do it. Have a look at Bag-O-Tricks for PHP II - some code snippets that should be helpful for all in creating dynamic sites - Highlighting Search Terms [webmasterworld.com]
For all those who for whatever reasons do not understand German: Thanks for your help. Highlighting search terms is indeed easy to implement for dynamically generated pages. It seems that this requires a bit more thought for my own static pages, doesn´t it.
If your pages are truly static as in simple HTML pages then there is little you can do if you want to keep serving these static pages in a static way. You might however, want to have a look at Bag-O-Tricks for Perl - Let´s collect some nice and useful perl scripts - Highlighting Search Terms on Static Pages [webmasterworld.com] which uses mod_rewrite [httpd.apache.org] and a Perl [perl.com] script to highlight search terms.