PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
  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 (13 years ago) RSS 2.0 feedNot enough user ratingsTotal: 575 All time: 5,088 This week: 1,145Up
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

  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:575
This week:0
All time:5,088
This week:1,145Up