Click to See Complete Forum and Search --> : replace text with a tag and text


jfluhmann
11-06-2008, 12:40 PM
I was unsure of where to post this. What I need to do is replace the word SALE (there are numerous occurrences of this word through a few pages) with

<span style="color:red">SALE</span>


I don't know the best way to do this. tools at my disposal are PHP and javascript. Any help would be appreciated.

Declan1991
11-09-2008, 01:38 PM
You could usedocument.body.innerHTML = document.body.innerHTML.replace("SALE",'<span style="color:red">SALE</span>');But how important is it?