Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Baloon with PHP code?

Status
Not open for further replies.

svar

Programmer
Aug 12, 2001
349
GR
I wonder if it is possible to display baloon widgets with PHP/html?

The idea is that following a database query, a table is displayed. Table entries have further information that is too detailed to display, hence it might be a good idea to have a ballon pop up when the mouse hovers over that entry. Is this possible or are there alternative ways(sort of a button) for achieving this?
 
This is an HTML/CSS or JavaScript query. Not php

Answer in brief:

In HTML you can use the title attribute of the relevant control.

In CSS you can use the :hover pseudo selector to cause a related div to become visible.

In JavaScript you can monitor hover events (mouse over) and show a div (or whatever) however you want (ie by Dom injection or manipulating the display property)
 
Hi

Just one thing to add. Pure client-side solutions require the balloon content to be delivered together with the page itself. Given you will display a table and the visitor will rarely hover on all table rows, many balloon content will remain undisplayed. So in case of big table and/or big balloon contents better think to use AJAX to acquire the balloon content on demand.


Feherke.
feherke.ga
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top