Forum Moderators: phranque

Message Too Old, No Replies

Replacing HTML

         

DennyTang

2:45 am on Apr 2, 2005 (gmt 0)

10+ Year Member



Have you seen those ads that takes every keyword on a website and converts them to a link?

Is it possible in apache to setup something in an .htaccess file that converts the keyword "keyword" (with or without captials) to <a href="http://domain.com">keyword</a>?

leadegroot

9:12 am on Apr 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't think it can be done with .htaccess, but Dean Allen has Google Hilite at textism.com - I think the techniques there could be adapted to preprocessing the page body to create a link on defined terms on the page.

Sadu

10:49 am on Apr 2, 2005 (gmt 0)



Don't forget that those keyword ads are actually quite annoying....

DennyTang

10:26 pm on Apr 3, 2005 (gmt 0)

10+ Year Member



Actually what I wanted was something excatly like IntelliTXT. It turns keywords into links where if hovered over, a small popup with a description and link shows up. I mainly want to use this like a glossary or instruction for certain keywords in my website.

jdMorgan

11:02 pm on Apr 3, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can mark the text with a "title" attribute, using an existing tag or a <span>:

<td title="HTTP protocol requested by your browser or proxy">HTTP protocol:</td>

Jim