Avril
06-26-2006, 12:21 PM
My JavaScript is pretty elementary, but have been compiling a directory. Does anyone know of a simple code that will find a name on each page or several pages in the same file? Everything I have found so far is too elaborate and not explained clearly.
Thanks in advance!
Avril
vwphillips
06-26-2006, 01:31 PM
hmm
depends on what you mean by find
what you want to do with it
and if the 'name' is identified in any way or is any word.
Avril
06-26-2006, 07:43 PM
To explain -
A code which highlights any particular word that one is searching for on the page in a different colour, like with the "find - find again" forms one sees in many word-processors, or something similar. I have three scrolling divs on each page with one alphabet per div.
Thank you.
vwphillips
06-27-2006, 10:26 AM
This is not a trivial task
suggest you investigate google search
but did this a while ago
http://www.vicsjavascripts.org.uk/SearchForText/SearchForText.htm
Avril
06-27-2006, 11:38 AM
Cheeeesus! I took a look at it. Enough to deter even the stout-hearted! It seems easier to search for pages than words, huh?
Will go through it, though, and try, try, try again.
Thanks a lot for your unwavering help, Vic.