PDA

View Full Version : hover script


treepixie
09-28-2004, 05:17 PM
Hi! I'm trying to find a script that will make the little text box like the 'alt' tag pop up and stay up as long as the cursor is over the image. I haven't been able to figure it out yet. Will someone help me please? The words in the 'alt' tag are the words I want to show in the hovering text box. Here is the code around the image that I want the text box to hover over:


<tr>

<td height="100%" valign="bottom" align="left" width="606">


<p align="center"><font size="2" face="Verdana" color="#000066"><b><br>&quot;The perishability of flowers adds magic to the message.&quot; <br>
- - Pua<br><br></b></font><font size="5" face="Verdana" color="#000066"><b>&quot;I
Love you!&quot;<br></b></font><font size="2" face="Verdana" color="#000066"><b><br>

<img src="homepage/Specials/Country_Bliss.20in.3499.2.JPG" width="199" height="265" border="0" alt="3 Sunflowers, 5 Liatris, 6 Roses, 2 Oriental Lilies, 1 Fall Pick, 20 inches Tall, Red Hypericum, Purple Sinuata Statice, Golden Asters, Baby Blue Euccalyptus"></b></font><B><FONT face=Verdana color=red size=2><BR><br></FONT></B><font size="2" face="Verdana" color="#000066">

<b>- hover your cursor over the picture for full details -</b></font><FONT face=Verdana color=#000066 size=2><BR></FONT>

Thaks for your help!!

jbot
09-28-2004, 05:27 PM
i reckon you should just do a search on the net for one. there's already bound to be one kicking around somewhere :)

treepixie
09-28-2004, 06:32 PM
I found one that worked with some text but I couldn't figure out how to put it in an image tag... :confused:

Roy Sinclair
09-28-2004, 06:46 PM
Move the text to the "title" property and it should work for any element on your web page.

The "alt" property works on some items but it's not supposed to be used for that purpose, it's supposed to be used as alternative text for people who can't see the image. The "title" property is supposed to be used for that purpose and it's also supposed to work on pretty much any element you need it for so use it instead.

treepixie
09-28-2004, 11:54 PM
I tried doing this as a "title" item but the text box didn't seem to stay up any longer than the alt box does. I was hoping to find a script that kept the text box open as long as the mouse hovered over the hot area. Thanks!

glenngv
09-29-2004, 04:05 AM
http://www.klproductions.com/kltooltips.html
http://www.siteexperts.com/tips/webfx/ts02/page1.asp