PDA

View Full Version : Double Linking - OnMouseOver & OnMouseClick


Manic Man
03-10-2009, 07:35 AM
A small little problem has appeared to me and seams to be a bit of a pain right now. I'm using a Javascript tooltip script whichyou use via:

<a href="javascript:void(0);" onmouseover="return'

Now, the problem is i ALSO want to stick in a link so you either get basic infor via the tool tip or click for a more detailed page. When i put in the onmouseclick event, it doesn't want to work right, probebly because of the href link is already set as a Javascript function. Any ideas what i'm doing wrong or how to get it to also go to another page when it is clicked on?

Seymour Clufley
03-10-2009, 07:46 AM
Try calling the JS script from OnMouseOver. Use the HREF to call the info/detailed page.

Manic Man
03-10-2009, 08:06 AM
I put the 'javascript:void(0);' into OnMouseOver and it doesn't seam to want to display the tool tip now...

If it helps, the full use of it is:

<a href="javascript:void(0);" onmouseover="return' escape('
Whatever you want to display here
')
">

the tooltip JSfile and such is from http://www.walterzorn.com and is wz_tooltip.js

If you need that much information ^_^ which can sometimes help a bit. I got no idea why the end of return is a ' not a ".. but it seams to work.