Tricky

January 30, 2004 by Kutt Niinepuu
It's kind of tricky with Javascript, because to highlight the found words the page shoud be refreshed, and when the page gets refreshed the javascript gets reloaded as well... It could be easier with PHP perhaps, as you can utilise some global variables there which will not be reset upon refresh and a little script in the head that the rest of the code passes before getting written on the screen. I'm not competent enough to give you the code, though. Just an idea.