Solved

Please help with hot spot link

Posted on 2006-07-06
3
326 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

739 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