tooltips

Status
This thread has been Locked and is not open to further replies. The original thread starter may use the Report button to request it be reopened but anyone else with a similar issue should start a New Thread. Watch our Welcome Guide to learn how to use this site.

melias

Thread Starter
Joined
Dec 13, 2000
Messages
54
i want to put a mouseover tooltip on a link, and have found a cut and paste one at website abstraction that says it works in IE and netscape. however, i get a javascript error in netscape (the example works in my browser, so the error is in my page). i'm using claris home page. am i putting the code in the wrong places? is claris doing something to it? any suggestions? thanks.
~melias

this is the code i'm using:
http://wsabstract.com/script/script2/tooltip.shtml
 
Joined
Mar 18, 2001
Messages
1,741
Wouldn't it just be easier to use the "title=" parameter?

Like this:
Code:
&lta href="http://www.altavista.com" title="A search engine">Alta Vista&lt/a>
Hold your mouse over this Alta Vista link:

<a href="http://www.altavista.com" title="A search engine">Alta Vista</a>


Cheers, Mac
 

melias

Thread Starter
Joined
Dec 13, 2000
Messages
54
thanks mac,
that works in IE but not my netscape 4.72; however, it sure is easy so i'll try it and at least people using IE will be able to see it!
~melias
 
Joined
Mar 18, 2001
Messages
1,741
Hmmm... It doesn't work in NS 4.08 either.

Thanks for the reply, I didn't realize it was
IE specific. :)

Cheers, Mac
 
Joined
Mar 18, 2001
Messages
1,741
You might also consider using a bitmap for the link
and the "alt" parameter for a mouseover (works in
both IE and NS).

Cheers, Mac
 

melias

Thread Starter
Joined
Dec 13, 2000
Messages
54
AH! i had thought of that, but didn't know how to do it--i don't want to have a picture be the link, but is it possible to put like an invisible box around the link and then give it the alt name?
~melias
 
Joined
Mar 18, 2001
Messages
1,741
Nope, ya gotta have a pic for it to work properly.
Otherwise it has a place for the pic with the
alt parameter (tooltip) showing.
 
Joined
Mar 18, 2001
Messages
1,741
Here's how it looks with and without a pic.
The pic can be a URL or a local pic.
Press the "quote" button at the bottom to see the code.

With no pic:

<a href="http://www.altavista.com"> <img src="none" alt="Tooltip"> </a>

With a valid pic:

<a href="http://www.altavista.com"> <img src="http://www.techguy.org/images/menu_logo2.gif" alt="Tooltip"> </a>

BTW, both of these link to Alta Vista...

Cheers, Mac
 

aliisa

Banned
Joined
Nov 14, 1999
Messages
679
Just a thought, but have you considered incorporating a couple of transparent gifs, say 6 x 60 pixels, either side of the link text. There's every chance that the user will hover the mouse near to the text before clicking and this will activate the 'ALT' text contained within the gifs.
 
Status
This thread has been Locked and is not open to further replies. The original thread starter may use the Report button to request it be reopened but anyone else with a similar issue should start a New Thread. Watch our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top