HTML Help Forum HTML Help
Please Search for the answer to your question before asking it! Thanks.
 

How to Create Descriptive Titles
Post a Reply to this Topic Ask a New Question
Click here to go to the original topic
       HTML Help Forum -> General HTML
View previous topic :: View next topic  
Author Message
Mori



Joined: 20 Jul 2009
Posts: 21

Posted: Wed Sep 30, 2009 12:46 pm     How to Create Descriptive Titles  

Hi,

I'd like to put a sentence on my page so that when a user puts their mouse over a certain word, a tooltip appears including some information. I know how to create a linked word with title, but I don't want it to be a link.
Also how should I do it for an image.


Thanks in advance!
Regards
Mori
PayneLess Designs



Joined: 28 Feb 2007
Posts: 4289
Location: MS

Posted: Wed Sep 30, 2009 2:18 pm      

You can use the title="" attribute with the image tag and pretty much all other tags. This gives the normal tooltip popup. If you want something facier on a mouseover than what the title="" attribute gives you, you'll have to use a script code. See...

Popup information box
DHTML Tooltips
Mori



Joined: 20 Jul 2009
Posts: 21

Posted: Wed Sep 30, 2009 3:31 pm      

I need something very simple. Are the following codes correct:

For text: <a title=".....">text</a>

For images: <img title="..." src="html://www.example.com/image.jpg" />


Any better suggestions?
PayneLess Designs



Joined: 28 Feb 2007
Posts: 4289
Location: MS

Posted: Wed Sep 30, 2009 3:52 pm      

Code: Image  Popup:

<p><img style="width: XXpx; height: YYpx; border: 0;" src="Path to image" title="Mouseover Description" alt="Text Description"></p>

Text Popup:

<p><span  title="Mouseover Description">These words have a tooltip</span>. These don't.</p>

You can change the "p" tags to div tags and style as needed to make a nice div container for links.
 
 
DARFUR
HOSTING / DESIGN
MAKE MONEY

       HTML Help Forum -> General HTML
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group