JavaScript and client side scripting.
Moderator: General Moderators
hawleyjr
BeerMod
Posts: 2170 Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA
Post
by hawleyjr » Fri Aug 06, 2004 12:47 pm
If you have an image you can use alt="my text" to display text when the mouse goes over the image.
Can you do this to a Href link?
Works:
Code: Select all
<img src="/pix/button_drop.png" alt="Delete test">
Doesn't work:
Code: Select all
<a href="#" alt="my text">Click Here</a>
Joe
Forum Regular
Posts: 939 Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow
Post
by Joe » Fri Aug 06, 2004 1:02 pm
I do not think that is possible. However, if it is possible then I am curious how that would work out!
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Fri Aug 06, 2004 1:06 pm
Code: Select all
<a href="#" title="my text" alt="my text">Click Here</a>
Joe
Forum Regular
Posts: 939 Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow
Post
by Joe » Fri Aug 06, 2004 1:10 pm
OK well I have just realised something. The link you posted has the links which contain "alt" however, it only works in IE and not mozilla. Interesting...
Joe
Forum Regular
Posts: 939 Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow
Post
by Joe » Fri Aug 06, 2004 1:13 pm
OK well feyd's code worked on both browsers, hmm
Code: Select all
<a href="#" title="my text">Click Here</a>
It appears that "title" is doing the work
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Fri Aug 06, 2004 1:21 pm
older browsers will use the alt (if they support it outside img tags), and newer ones will use title..
Joe
Forum Regular
Posts: 939 Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow
Post
by Joe » Fri Aug 06, 2004 1:23 pm
Ah I see, Thanks for the explination feyd!
Draco_03
Forum Regular
Posts: 577 Joined: Fri Aug 15, 2003 12:25 pm
Location: Montreal, Canada
Post
by Draco_03 » Mon Aug 09, 2004 8:38 am
they didn't do it like that else it would have worked in mozilla
they used
Code: Select all
.overlink {
cursor:pointer;
cursor:hand;
text-decoration: underline;
} It's not a well written css, they tried putting hand and pointer to make it cross-browser, but it's not the right way.