Forum Moderators: open

Message Too Old, No Replies

How To Make Content Change Dynamically?

         

thedealmaker

5:25 am on Jul 11, 2005 (gmt 0)

10+ Year Member



Hi,
I want to change the content of the webpage dynamically, but it got to be done right after the page is loaded because I never know what the content is. For examples, I can highlight only certain words, but I don't know whether the page contains them beforehand. Some do, but some don't.

I think I should use javascript and php? But I don't want the javascript code to be shown to the public because I don't want to show the list of keywords I use to the public by showing a http link to a list of keywords I use. I also don't want to let people know the javascipt code to do the matching. But if I do everything with php, I am afraid that it will make the server too busy.

So what should I do?

Many thanks.

bono

2:29 pm on Jul 13, 2005 (gmt 0)

10+ Year Member



yeah i think you could do it in php but im not sure wether it would take up server time....

this is the way id do it in english....

put all page code into a variable

then search the code for your keywords
then add highlight tags either side..

ps i havnt a clue how to do this..

are your words the same all the time or do they change?