Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ondblclick within <area> in Netscape 4x

Status
Not open for further replies.

Angel2228

Programmer
Feb 22, 2001
26
US
does anyone know how to use the 'ondblclick' event to access a link within an image map? i have been able to get this to function with in IE, but not in Netscape.

i have tried the following:

1. <area href=&quot;Javascript:void(0)&quot; ondblclick=&quot;document.location.href='url'&quot; shape=&quot;rect&quot; coords=&quot;75, 151, 156, 168&quot;>
and
2. <area href=&quot;Javascript:void(0)&quot; ondblclick=&quot;changePage('pagename')&quot; coords=&quot;75, 151, 156, 168&quot;>
with the following function:
function changePage(linkName)
{
document.location.href= linkName + &quot;.html&quot;;
}

any ideas?

to see the actual page, go to

i can create a separate page for netscape if your solution does not work in IE.

beware!! this page has sound!!!!

thanks.
 
I am developing simple lessons for distance training, where the user must simulate the actions of using a program. Since certain functions of these programs require the user to double-click, I need to make this function work. The majority of the potential users only use NS4, hence the basis of my entire problem.
 
I just checked your code.

The answer is simple: onDblClick event cannot be applyed to an AREA of an image map.
You should create a simple image link:

<a href=&quot;#&quot; onDblClick=&quot;document.location.href='view_track5.html'&quot;><img border=&quot;0&quot; src=&quot;someimage.gif&quot;></a>

This works without problems!
So you have to cut your image tp_sel_white_anim.gif into pieces, in order to avoid image maps.

Andrew | starway@mail.com
 
I was afraid of that. What a pain in my arse.

Thank you anyway!!!!
 
No, I can handle it. I am a web designer too. I mentioned it was a pain because there are two other pages that i have to fix too. But that's what they pay me for!!

Thanks for the offer!!!

Angel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top