<!DOCTYPE html PUBLIC>
<html>
<title>Example of fxHeight</title>
<?
include("../moo.class.php");
mooFxGenerator::initiate();
?>
<body>
<h3 id="stretcher1">Click on me to increase the fontsize</h3>
<div id="stretched1" style="width: 400px; font-size: 14px;" >
When PHP parses a file, it looks for opening and closing tags, which tell PHP to start and stop interpreting the code between them. Parsing in this manner allows php to be embedded in all sorts of different documents, as everything outside of a pair of opening and closing tags is ignored by the PHP parser. Most of the time you will see php embedded in HTML documents, as in this example.
</div>
<h3 id="stretcher2">Click on me to decrease the fontsize</h3>
<div id="stretched2" style="width: 400px;font-size: 24px;" >
When PHP parses a file, it looks for opening and closing tags, which tell PHP to start and stop interpreting the code between them. Parsing in this manner allows php to be embedded in all sorts of different documents, as everything outside of a pair of opening and closing tags is ignored by the PHP parser. Most of the time you will see php embedded in HTML documents, as in this example.
</div>
</body>
<?
$ft = new fxText("stretcher1","stretched1", 1);
$ft->generate();
$ft2 = new fxText("stretcher2","stretched2", -1);
$ft2->generate();
?>
</html>
|