My favorites | Sign in
Project Logo
             
Show all Featured downloads:
pcdtr1.9.5.zip
People details
Project owners:
  joaomak

A PHP + CSS script (javascript-free) that dynamically replaces html text using any custom font. All styles go in the CSS file!

Version updated. Now supports any css selector!

Installation

  1. At the very beginning of the file insert: <?php include 'pcdtr/php/class.php'; ?>, and at the end: <?php ob_end_flush(); ?>
  2. Link the stylesheet: <link href="pcdtr/styles.css" rel="stylesheet" type="text/css" />
  3. Copy your font files (.ttf or .otf) to the PCDTR folder and start styling!

Usage Example

HTML:

<h1>My <a href="#">Example</a> Heading</h1>

CSS:

h1{
	font-family: MyCustomFont, Helvetica, Arial, sans;
	font-size:20pt;
	color:#2F751F;
	background-color:#fff;
}
h1 a{
        font-family: AnotherCustomFont, Times, serif;
	color:#2977C7;
        text-decoration:underline;
}
h1 a:hover{
	color:#eeb43f;
	text-decoration:none;
}

Demo

This is the demo included in the download

Requires PHP 5.1+

Tested with Firefox 2+, Internet Explorer 6+, Safari 3, Opera 9.5









Hosted by Google Code