Link to home
Start Free TrialLog in
Avatar of linque
linque

asked on

Please help with hot spot link

I have an image with hotspots using Dreamweaver 8.  I am trying to open a new window.  This code works fine without an area map, but falls to pieces when I"m trying to use the image map.  I need to open a new window.

Without the image map, here is the code working fine.  I don't know how to adjust this.

do I

      put part or all of this in front of the <area shape="rect" coords="1,1,233,167" href="#">  (I wouldn't think so, since there is a place for href=)

do I

    have to leave off quotes or other such parts?    

I'm having trouble knowing if I need single quotes, double quotes etc.  In fact, I think I need an example.  


I did try using Behaviors just now.  I did get a window to open, but it opens before a click (just on rollover - which is not so terrible but I prefer a click) but the rest of the samples I have, such as the code given, open it at the top left on the browser window.  This opens the window right in the middle - not acceptable for this project.



Here is the code that works without an image map (such as highlighting and then linking text)

<a href='javascript:var deliverywin=window.open("filename.html","deliverywin","width=523,height=540,top=0,left=0 ,resizable=no,scrollbars=no,no")'></a>

Please, if you don't mind, could someone create the entire code sequence using the area shape co-ordinates as a sample.  Thank you

ASKER CERTIFIED SOLUTION
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of linque
linque

ASKER

it works and it is a lifesaver - thank you!
Wow.  Lucky guess on my part.  

Glad it works.