PHP Classes

File: examples/fxText.example.php

Recommend this page to a friend!
  Classes of Hasin Hayder   MooFx Generator   examples/fxText.example.php   Download  
File: examples/fxText.example.php
Role: Example script
Content type: text/plain
Description: fxText Example
Class: MooFx Generator
PHP wrapper to MooFx JavaScript effects library
Author: By
Last change:
Date: 17 years ago
Size: 1,353 bytes
 

Contents

Class file image Download
<!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>