MRB
12-31-2002, 12:43 PM
Hi,
can anyone please help with the following...
Id like to search thro the text of a page and change the color (or preferably STYLE) of ALL words or part words that matched a certain text string, lets say"my text".
So that if "my text" appeared in the document more than once, every occurence would appear in a different colour (or style).
I understand the principle here but dont know the syntax, I think that by looping thro' 'document.all' I can change the style of a particular element, but how could I do this with a peice of text?
many thanks to anyone who can give me any pointers.
can anyone please help with the following...
Id like to search thro the text of a page and change the color (or preferably STYLE) of ALL words or part words that matched a certain text string, lets say"my text".
So that if "my text" appeared in the document more than once, every occurence would appear in a different colour (or style).
I understand the principle here but dont know the syntax, I think that by looping thro' 'document.all' I can change the style of a particular element, but how could I do this with a peice of text?
many thanks to anyone who can give me any pointers.