PHP Classes

File: examples/fxWidth.example.php

Recommend this page to a friend!
  Classes of Hasin Hayder   MooFx Generator   examples/fxWidth.example.php   Download  
File: examples/fxWidth.example.php
Role: Example script
Content type: text/plain
Description: fxWidth Example
Class: MooFx Generator
PHP wrapper to MooFx JavaScript effects library
Author: By
Last change:
Date: 17 years ago
Size: 1,330 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 close the following para</h3>
<div id="stretched1" style="width: 400px;" >
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 close the following para</h3>
<div id="stretched2" style="width: 400px" >
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>
<?
$fw
= new fxWidth("stretcher1","stretched1", 500);
$fw->generate();
$fw2 = new fxWidth("stretcher2","stretched2", 500);
$fw2->generate();
?>
</html>