Solved

Please help with hot spot link

Posted on 2006-07-06
3
322 Views
Last Modified: 2012-05-05
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

0
Comment
Question by:linque
  • 2
3 Comments
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 500 total points
ID: 17056170
Hi linque,

It may be easier on all of us if you post a link to the page in question, but here goes:

<area shape="rect" coords="1,1,233,167" href='javascript:var deliverywin=window.open("filename.html","deliverywin","width=523,height=540,top=0,left=0 ,resizable=no,scrollbars=no,no")'>

Rouchie, if you are checking tonight/tomorrow, please take a look at the above...
0
 

Author Comment

by:linque
ID: 17056357
it works and it is a lifesaver - thank you!
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 17056386
Wow.  Lucky guess on my part.  

Glad it works.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now