PHP Classes

Text Resizer: Resizes text on a page using styles and sessions.

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2003-08-22 (12 years ago) RSS 2.0 feedNot enough user ratingsTotal: 573 All time: 5,043 This week: 1,529Up
Version License Categories  
text-resizer 1.0GNU General Publi...HTML
Description Author  

This class allows your users to resize the text on your website.

Thanks to the cascading nature of CSS, a simple font-size percentage can be included in the head of any page to facilite this text resizer. It will not disturb any other attribute of your styles except the body's font size.

To use this, instantiate the class on any page where you want to use the resizer, call ProcessTextReset(), and reset the text size by passing query string variables: set_text=smaller, set_text=larger, or set_text=normal (the class uses sessions to remember values). The font size is reset to a percentage of the browser's default font size. See the example file for exact usage.

It requires PHP 4 or higher. Let me know if you find any problems.

Picture of kumar mcmillan
Name: kumar mcmillan <contact>
Classes: 7 packages by
Country: United States United States
Age: 36
All time rank: 15016 in United States United States
Week rank: 235 Down26 in United States United States Down

  Files folder image Files  
File Role Description
Accessible without login Plain text file text-resizer-example.php Example example of usage
Plain text file text-resizer.class.php Class class source
Accessible without login Plain text file text-resizer.css Data style sheet

 Version Control Unique User Downloads Download Rankings  
 0%Total:573All time:5,043
 This week:0This week:1,529Up