PHP Classes

File: slideshow.txt

Recommend this page to a friend!
  Classes of Raymond Irving  >  Raxan Framework  >  slideshow.txt  >  Download  
File: slideshow.txt
Role: Documentation
Content type: text/plain
Description: Slide Show - Developing PHP Web Applications with the Raxan Framework
Class: Raxan Framework
A framework for building PHP/Ajax web applications
Author: By
Last change:
Date: 12 years ago
Size: 735 bytes


Class file image Download

require_once 'raxan/pdi/gateway.php';

$page = new RichWebPage();

$html = '';
for($i=0;$i<100;$i++) {
    $w = rand(1, 5); $h = rand(1, 5);
    $x = rand(10, 600); $y = rand(10, 300);
    $color = randomColor();  $bcolor = randomColor();
    $html.= '<div class="c'.$w.' r'.$h.'" style="position:absolute;'
        .'border:2px solid #'.$bcolor.'; background:#'.$color.';'


// set hover class on client


// generate random hex color
function randomColor() {
    return dechex(rand(20, 254)).dechex(rand(20, 254)).dechex(rand(20, 254));

For more information send a message to info at phpclasses dot org.