PHP Classes

Photo Show and Hide: Output page with dynamically expansible thumbnails

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 59%Total: 1,623 All time: 2,429 This week: 44Up
Version License Categories
cphoto_showhide 1.0GNU Free Document...HTML, Graphics
Description 

Author

The purpose of this package is to combine some CSS tricks and PHP code into a class that accomplishes the task of adding images into text blocks where the text flows around the image.

This can easily be accomplished with CSS and PHP, but this class can not only embed the thumbnail but to make it expandable, to reflow the text and to do this without having to reload the page

It can accomodate more than one image in the same page by the means of dynamically generating div tags with unique id attributes.

The class can generate HTML code with mouseover event attributes to make the larger image appear inline as an object on the page.

This generated HTML relies heavily on CSS and a little on a Javascript trick to show and hide div tags by id.

You can specify file path, file name and type, and also request a float left or right, AND set the size of each thumbnail.

Picture of Joseph Rubenstein
Name: Joseph Rubenstein <contact>
Classes: 1 package by
Country: China China

  Files folder image Files (3)  
File Role Description
Plain text file class_photoinclude.php Class Photo Show/Hide Class File
Accessible without login Plain text file demo_photoinclude.php Example A demo page with instructions
Accessible without login Plain text file photo_include.css Data The CSS to include

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,623
This week:0
All time:2,429
This week:44Up
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:87%StarStarStarStarStar
Documentation:-
Examples:87%StarStarStarStarStar
Tests:-
Videos:-
Overall:59%StarStarStar
Rank:1341