Forum Moderators: open

Message Too Old, No Replies

Tooltip within image map and javascript execution

window.open and tooltip in image map

         

pixeldiver

3:18 am on Sep 11, 2009 (gmt 0)

10+ Year Member



Hi, I have the following problem with a line of code:

My intention is to use the wz_tooltip within an image map which contains the code:
<script src="JavascriptFiles/wz_tooltip.js" type="text/javascript"></script>

<area shape="circle" coords="513,411, 40" href="javascript:window.open('goma_3.htm','imgswapper3'); void(0)";" alt="" />

This opens 'goma_3.htm in iframe 'imgswapper3' which works perfect.

Now I want to integrate a tooltip in the same line of code:
onmouseover="Tip('TOOLTIP TEXT')" onmouseout="UnTip()"

I tried to put it like that (which doesn't work at all):
<area shape="circle" coords="513,411, 40" href="javascript:window.open('goma_3.htm','imgswapper3'); void(0)";" alt="" onmouseover="Tip('TOOLTIP TEXT')" onmouseout="UnTip()" />

Any ideas what could be wrong?

daveVk

3:54 am on Sep 11, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<area shape="circle" coords="513,411, 40" href="javascript:window.open('goma_3.htm','imgswapper3'); void(0)";" alt="" onmouseover="Tip('TOOLTIP TEXT')" onmouseout="UnTip()" />

Extra quote show in red ?

pixeldiver

11:16 pm on Sep 13, 2009 (gmt 0)

10+ Year Member



Thanks for your response daveVk,

I took out the quote and it still wouldn't work. Then I was looking for a missing link. The error was created because the link to the wz_tooltip was wrong. The actual image sits within an iframe and therefore the link to the root of the document was wrong, fixed it with ../../wz_tooltip.js and all is running as it should.