Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: need code..  (Read 3026 times)

0 Members and 1 Guest are viewing this topic.

diablo416

  • Guest
need code..
« on: August 23, 2007, 10:02:48 AM »

hey
i need a html code that can mask a variable , like if the variable was the word "test" .. the result im looking for , is all the words that say "test" on the page would be masked.. or layerd to read "ok"

michaewlewis



    Intermediate
  • Thanked: 26
    • Yes
    • Yes
  • Experience: Expert
  • OS: Unknown
Re: need code..
« Reply #1 on: August 23, 2007, 01:25:33 PM »
you would have to use a scripting language like javascript or PHP in order to do that, not just HTML.
you'll need to parse the entire text of the page and put it into an array and search for the string "test" and for each instance that it occurs, replace it with "ok".
You can probably find some scripts that do that on just about any javascript or php site.