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 Gianluca Zanferrari  >  Loading Div  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example file
Class: Loading Div
Display an animation while a page is loading
Author: By
Last change: Optimization for windows 7 / IE8
Date: 5 years ago
Size: 2,125 bytes
 

Contents

Class file image Download
<?
require_once ('class.loading.div.php');
$divLoader = new loadingDiv;
?>

Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content
Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content
Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content
Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content
Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content
Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content
Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content
Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content
Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content
Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content
Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content
Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content
Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content Content



<? $divLoader->loader();

        echo
str_pad('',1024); // minimum start for Safari
       
       
for ($i=7; $i>0; $i--) {
           
            echo
str_pad("$i<br>\n",8);
           
// tag after text for Safari & Firefox
            // 8 char minimum for Firefox
           
sleep(1);
           
           
$divLoader->loaderFlush();
        }
       
   

echo (
'<br /><br /><br />MORE CONTENT DISPLAYED!');
?>