| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
I would like to use Javascript to create a hover box that will pop up when I move over text. In addition to that, I want this hover box to contain information from a field in a database associated with the text that I am mousing over. Does anyone know of a tutorial that will show me how to do this?
__________________
"We're Gonna Need A Lot More Men." Davy Crockett |
|
#2
|
||||
|
||||
|
do a google search for Overlib. It can give you the javascript code to do exactly what you're looking for. Instead of having the hover box display text you can just make it display the value from a recordset instead.
__________________
If you found a post of mine helpful, please click on the on my post to add to my reputation.
|
|
#3
|
|||
|
|||
|
Or you can just use the acronym tag.
Code:
<acronym title="World">Hello</acronym> I take it you're dynamically adding the text to the page, so just add the title for the acronym as you're creating the text. |
|
#4
|
||||
|
||||
|
the only problem with the title attribute is that it doesn't appear immediately. it's a good poor man's overlib
![]() |
|
#5
|
||||||
|
||||||
|
Quote:
The best way to achieve this is through CSS. I used it in a ASP.Net datagrid. Code:
<asp:TemplateColumn> <ItemTemplate> <a class="info" href="#"><strong><%# DataBinder.Eval(Container.DataItem, "title") %></strong><SPAN><%# DataBinder.Eval(Container.DataItem, "description")%></span></a> </ItemTemplate> </asp:TemplateColumn> CSS Code:
Jo. ![]()
__________________
Fitness & Diet resources Career Descriptions Boat Cruises All code that is posted by me has not been tested, and it should only be interpreted as a guideline to a solution. There is no guarantee that any of my code samples will work as provided, and should be customized to suite the required need. |
![]() |
| Viewing: ASP Free Forums > Web Design > Web Layout > Hover Pop Up With Database Field |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|