Login   Register  
PHP Classes
elePHPant
Icontem

File: test.madlibs.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Andrew Collington  >  MadLibs  >  test.madlibs.php  >  Download  
File: test.madlibs.php
Role: Example script
Content type: text/plain
Description: An example of using the class
Class: MadLibs
Add a 'madlibs' game to your Web site.
Author: By
Last change:
Date: 2003-09-03 23:49
Size: 990 bytes
 

Contents

Class file image Download
<html>

<head>
    <style>
        body
        {
            background-color: #FFFFFF;
            color: #000000;
            font-family: Verdana, Arial, Helvetica, sans-serif;
            font-size: 12px;
        }

        .madlibTable
        {
            padding : 5px;
            border : 1px solid black;
            font-family: Verdana, Arial, Helvetica, sans-serif;
            font-size: 12px;
        }

        .madlibTable td
        {
            background-color: #EEEEEE;
        }

        .madlibTable input
        {
            border : 1px solid;
            padding: 2px;
            width: 300px;
        }

        .madlibTitle
        {
            font-family: Verdana, Arial, Helvetica, sans-serif;
            font-size: 14px;
            font-weight: bold;
            margin-bottom: 20px;
        }

        .madlibStory
        {
            font-family: Tahoma, Arial, Helvetica, Verdana, sans-serif;
            font-size: 12px;
        }

        .madlibWord
        {
            font-weight: bold;
            color: #800000;
        }
    </style>
</head>

<body>
<?php

    
require 'class.madlibs.php';

    
$ml = new madlibs();
    
$ml->useFS('.''.txt');
    
$ml->displayMadlib();

?>
</body>

</html>