Advanced Search

Results 1 to 2 of 2

Thread: DHTML Window Widget (Position relative to image not window)

  1. #1
    Join Date
    Jul 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Red face DHTML Window Widget (Position relative to image not window)

    http://www.dynamicdrive.com/dynamici...ndow/index.htm

    I have the DHTML Window Widget working fine, but I'm looking to position the popup window relative to the image not the window.

    Here is a link to the project.
    http://www.viceroydesigns.com/Starwo...ng/Default.asp

    As it stands, if you click the "Explore Now" button I have the popup centering itself to the window. I would like to know how to alter the script to place the popup window center/right on the image.

    Here is a screen shot of how I would like the window to position itself.



    Here is my code as it stands:

    HTML Code:
    <img name="m_TennesseeMain" src="Images/TennesseeMain.jpg" width="825" height="500" border="0" id="m_TennesseeMain" usemap="#m_TennesseeMain" alt="Explore Now!" />
                        <map name="m_TennesseeMain" id="m_TennesseeMain">
                        <area shape="rect" coords="49,295,164,322" href="#" onClick="ajaxwin=dhtmlwindow.open('ajaxbox', 'ajax', 'WindowFiles/Destinations.asp', 'Choose Your Destination', 'width=350px,height=410px,resize=0,scrolling=1'); ajaxwin.moveTo('middle', 'middle'); return false;" alt="Explore Now!" />
                        </map>
    Any help would be greatly appreciated.
    -Kevin

  2. #2
    Join Date
    Aug 2004
    Posts
    9,862
    Thanks
    3
    Thanked 959 Times in 948 Posts
    Blog Entries
    15

    Default

    There's been a few threads on how to position the DHTML window relative to some element on the page. For example, please see my response in this thread: http://www.dynamicdrive.com/forums/s...ad.php?t=25050

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •