PHP+ CSSDynamic Text Replacement (with word-wrapping and inner tags)

PHP + CSS Dynamic Text Replacement is a JavaScript-free version of the Dynamic Text Replacement method originally created by Stewart Rosenberger.

The initial P+C DTR method by R. Marie Cox was lacking word-wrapping and the ability to use inner tags, so I took the code and rewrote it, giving it more flexibility and performance. Any new ideas or suggestions, please contact me.

UPDATE: New version available!

CSS Rules that affect the font:

Still to come:

The cool thing about this is that you don't need to worry about long headings... also features:

Download & Install Instructions:

After more than 3700 downloads, this project is now hosted in Google Code.

  1. Download the zip and extract the files
  2. Include the script in your file
  3. Open the headings.css file to set the font you want to use, colors, size, etc.
  4. Copy your font files (ttf or otf) to the DTR folder
  5. Load the files to your server and give write permission to the cache folder.

If you would like to support further development, please consider a Donation.

If you don't see the heading text images, your server probably does not support PHP image generation.


joaomak.net Creative Commons License