Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Stanislav Karchebny  >  Simple banner rotator  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example
Class: Simple banner rotator
Text-Files-Based Banner Rotator
Author: By
Last change: - now uses class instead of fn
Date: 11 years ago
Size: 521 bytes
 

Contents

Class file image Download
<?include("Banner.php");

// Drop some 480x80 gifs or jpegs in banners/ dir and use this:
// press "Refresh" button in your browser several times to see
// your banners rotate.
// You should refresh only after TIMEOUT interval has passed, or you
// will see the same counter value everytime.
// For testing, you could just decrease TIMEOUT in Banner.php

?>
<table>
   <tr><td><!-- BANNER --><img src="<?=BannerR::rotate()?>" width="480" height="80" alt="BANNER" border="0"><!-- /BANNER --></td></tr>
</table>