Page 1 of 1

Mouse Action

Posted: Wed Jan 14, 2004 7:36 am
by szms
I have couple of web links in my website and like to show more information about the web link when the mouse is over the web link. How to do that?

Posted: Wed Jan 14, 2004 7:44 am
by Nay
It's done by event attributes. Experiment with:

Code: Select all

<a href="#" onmouseover="alert('you are over me, get off of me!')">get over me</a>
There's plenty of free ones out there. Maybe at hotscripts?

-Nay

Posted: Wed Jan 14, 2004 8:06 am
by vigge89
do you really need the href='#' thing?
i don't know why that's important, to make the link appear as a link an not normal text or what?

Posted: Wed Jan 14, 2004 8:09 am
by twigletmac
You could avoid using javascript for this depending on what exactly you are trying to do, by using the title attribute:

Code: Select all

<a href="http://www.devnetwork.net" title="This is a link to www.devnetwork.net">PHPDN</a>
Mac

Posted: Wed Jan 14, 2004 8:10 am
by twigletmac
vigge89 wrote:do you really need the href='#' thing?
i don't know why that's important, to make the link appear as a link an not normal text or what?
# in nay's code is probably just being used as a place holder. You should never have a link on a live site with just # in it, normally that means your site will not work properly with Javascript turned off.

Mac

Posted: Wed Jan 14, 2004 9:56 am
by vigge89
twigletmac wrote:
vigge89 wrote:do you really need the href='#' thing?
i don't know why that's important, to make the link appear as a link an not normal text or what?
# in nay's code is probably just being used as a place holder. You should never have a link on a live site with just # in it, normally that means your site will not work properly with Javascript turned off.

Mac
oops, missed that he needed a LINK, and not just normal text with tip :roll: :?