Knowledge Transfer

Tuesday, May 20, 2008

A Simple Tooltip With Images and text in javascript ,CSS, HTML

Writing a tooltip is quite simple. This is a simple tooltip for our web pages with minimal code. Images, text and HTML code can be shown inside the tooltip.

First, we have to define a div which is our tooltip that we are going to use for our tooltip. Using a div will help us to show images, HTML code etc. inside a tooltip.

We can define the styles of the tooltip like transparency, font etc.

Once the tooltip div is OK, we have to add some attributes/events to the elements for which we are going to use this tooltip.



Click here for more info

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]



<< Home