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

popup rollover text

Status
Not open for further replies.

philstockham

Technical User
Feb 21, 2005
20
GB
Hi

i am using dreamweaver to get floating text to be displayed when someone 'rolls over' a link.

Any help would be much appreciated.

 
sorry i worded my post wrongly. i meant to say i am unable to do this rollover floating text in dreamweaver
 

If you want help with how to do this in Dreamweaver, you will need to ask in the Dreamweaver forum.

If you want help on how to do this in HTML, then just ask.

Neither of your posts make it clear which of these you wish.

Dan


The answers you get are only as good as the information you give!

 

Are you hoping the text will appear in:

(a) the status bar (at the bottom of the window)
(b) some specific location on screen (within a DIV or something)
(c) like a "tool tip" that appears when you spend a second or so over an item with a "title" (or sometimes just an "alt") tag
(d) other

I'm also thinking that if you are using Dreamweaver, then you may find this very difficult... unless you are able to edit the page content "by hand". Are you experienced in inserting HTML/Javascript by hand into the page?

Could you indicate which option you want?

Jeff

 
i would like it to be like (c) so that when someone rolls over the link a text box that contains text on that link is displayed. i have very limited experience in javascript.
 


No problem. You need to modify your links by adding an extra tag to the link. In this case you add in the TITLE tag. IE also uses the ALT tag (in the absence of the TITLE tag) - but it is more compatible to stick with the TITLE tag.

See the example below:

Code:
<a href="somefile.html" title="This is a title">Sample</a>

Now some Dreamweaver help (the last time I touched Dreamweaver was about 4 years ago - so apologies if it doesn't make sense... maybe someone will correct me)...

Using Dreamweaver, you have the ability to flip into "HTML code" mode... where you can see the contents of the HTML. Hilight the link in "WYSIWYG" mode, and then flip into "HTML code" mode... and add in the TITLE tag to the <a href>.

Hope that does it for you.

Jeff
 
<a href=" target="_blank" title="A regularly updated website containing information on all leading search engines.">searchenginewatch.com </a>

I am using the code above but the title text is not being displayed.
 

I copied your code into a new document and viewed it using Safari v1.2.4, Firefox and IE 5.2 on MacOSX. It works as expected in all those browsers. You will need to move the mouse over the link and pause for up to a second or so (without moving the mouse).

What operating system and browser are you having this problem with? When you test it using another browser (say Firefox) does it work for you?

Jeff

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top