PHP Classes

File: example.php

Recommend this page to a friend!
  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: 20 years ago
Size: 521 bytes


Class file image Download

// 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

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