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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mouse over Text to show the full text

Status
Not open for further replies.

Nene75

Programmer
Feb 27, 2003
138
US
Hi everyone:

I would like user to see the full word/sentence of an abbreviated term when mouse over the text. i.e. if the word US then United States displays on mouse over behaviour.

How can I do this in Dreamweaver MX?

Any help provided would be appreciated.

Thanks!
 
Why Dreamweaver MX? it is only a tool to design websites using HTML, the visitors to your website won't be using DW MX.

One way to do this is to enclose the text in <span> tags then add a title attribute to the opening span tag

<span title=&quot;More Text&quot;>text</span> this will show the 'tooltip' of More Text when the mouse is over the span

also note that IE will (incorrectly) use the alt attribute to the same ends



Chris.

Indifference will be the downfall of mankind, but who cares?
 
no <span> no love
u can use &quot;show-hide layer&quot; where the layer = &quot;tool_tip&quot;
.....its pain if u have many acronims.
All the best!



> need more info?
:: don't click HERE ::
 
you can do the same with anchor tags. <a title = &quot;This is the whole text&quot;>Text</a>

but why not acronym tags?
<acronym title=&quot;World Wide Web&quot;>

A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
- Quote by Douglas Adams
 
Most HTML element can have a title attribute, without checking them I think only the non-visual elements don't support this (for fairly obvious reasons) and it does work on <acronym> btw

W3C spec

Chris.

Chris.

Indifference will be the downfall of mankind, but who cares?
 
Thanks all for your help:

I did the following and it worked well:

<a title=&quot;United Stated&quot; href=&quot;#US&quot;> ...

Nene!
 
aaa...it is so nice see some of the forgeotten topics/HTML tips
(I ment acronim...as a word not as an HTML tag...LOL....but even better..we got mmore examples out...)
All the best!

> need more info?
:: don't click HERE ::
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top