php hotlink help
- Started
- Last post
- 4 Responses
- airey
any info or help muchly appreciated.
i'm looking for info on how to add the 'hotlinks' to an html page automatically. the kind of thing where every say company name in a page auto links to the company site and has a info layer pop into existence on mouse hover.
not sure what it's called or how to do it. i know the css to manually do it but i need an auto function.
any help or leads appreciated!
- airey0
hey, thanks for trying but not actually what i'm after. the thing i need is obviously not called 'hotlinking' as i called it.
the style of thing i'm after is simply certain words on the page are made links which have onhover boxes to show a small amount of content and link to whatever is shown. an advertising device.
- welded0
I fucking hate those.
- heavyt0
you may have to use a str_replace on the text. I would think that you could write a function that looks for certain words, and then replaces the strings with all of teh html code that you need.
of course, you would need to pass all of your content text through that function before rendering the page.TR1