Login   Register  
PHP Classes
elePHPant
Icontem

PreLoad Images: Generate page with preloaded images

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (10)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2010-01-20 (4 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 1,047 All time: 3,284 This week: 1,439Up
Version License PHP version Categories  
preload-images 1.0.0GNU General Public Lice...3.0HTML, Databases, Graphics
Description Author  

This class can be used to generate page with preloaded images.

First, it can list images from a directory and store the list in a MySQL database.

The class can generate HTML with Javascript to preload all listed images in the user browser, so the next browsed pages that need the images can load much faster.

Innovation Award  
PHP Programming Innovation award nominee
January 2010
Number 3


Prize: One copy of Delphi for PHP
Some sites have pages that need to present slide shows or otherwise present many images that need to be displayed without delay.

Preloading is a technique for accelerating the display of images in a Web browser. It consists in creating invisible image objects in Javascript that make the browser load the images in memory before they are presented.

This class provides a generic solution for preloading images in a Web page generated by PHP.

Manuel Lemos
Picture of riccardo castagna
Name: riccardo castagna is available for providing paid consulting. Contact riccardo castagna .
Classes: 3 packages by
Country: Italy Italy
Age: 46
All time rank: 145859 in Italy Italy
Week rank: 1803 Down80 in Italy Italy Down
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Files folder imagedbimages (6 files)
Plain text file class.preloadimages.php Class file class
Plain text file config.php Conf. dbname dbuser
Plain text file index.php Example example first page
Plain text file viewimages.php Example example second page

  Files folder image Files  /  dbimages  
File Role Description
  Accessible without login Image file img01.jpg Data image
  Image file img02.jpg Data image
  Image file img03.jpg Data image
  Image file img04.jpg Data image
  Image file img05.jpg Data image
  Image file img06.jpg Data image

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,047All time:3,284
 This week:0This week:1,439Up