PHP Classes

Mini HTML Helper: Display links with CSS based tooltips

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
Not enough user ratingsTotal: 994 All time: 3,666 This week: 206Up
Version License PHP version Categories
mhh-class 1.0.0GNU General Publi...5HTML, PHP 5
Description 

Author

This class can display links with CSS based tooltips.

It can generate HTML for a link with a given text using CSS to make a tooltip show when the user drags the mouse over the link.

The class can use custom HTML for the link and the tooltip, as well show an icon image near the link.

Innovation Award
PHP Programming Innovation award nominee
September 2011
Number 4


Prize: One copy of DWebPro Standard License
Tooltips are small elements of information that appear on the page when you drag the mouse over a page element that accomplishes a certain functionality.

The information contained in the tooltip aims to clarify what is the purpose of the page element associated to the tooltip.

Most browsers support simple single line tooltips defined in title attributes of the associated page element, but usually that is not enough to clarify its purpose.

There are more sophisticated tooltip solutions that require JavaScript code to manage how and when the tooltip shows or hides, but those do not work if JavaScript is disabled.

This class implements a simpler tooltip solution for HTML link elements that does not require JavaScript. It generates HTML which along with some CSS definitions can show a more elaborated tooltip than just single line text tooltips.


Manuel Lemos
Picture of soroush khosravi
Name: soroush khosravi <contact>
Classes: 1 package by
Country: Iran Iran
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files (4)  
File Role Description
Accessible without login Image file 1.png Photo image for example
Accessible without login Plain text file index.php Example Example
Plain text file mhhclass.php Class Link Generator
Accessible without login Plain text file tool.css Data CSS File

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:994
This week:0
All time:3,666
This week:206Up