1 Reply Latest reply on Aug 2, 2007 10:00 AM by Newsgroup_User

    Trouble with the Open Browser Window behavior

    sammas
      I have a page with thumbnail images. I want to be able to click the thumbnail and have a new window open with just that image in the window. If I don't assign a link to the thumbnail, and select the Open Browser Window behavior, the only 3 options for when to open the window are onLoad, onError, or onAbort. I want it to be opened onClick. If I do assign a link to the image, and then select the Open Browser Window behavior, it gives me the option to open the window onClick. However, when I test it, it opens 2 new windows - the one I want, and the one that is the link that I assigned to the image.

      I can't figure this out! Any help would be greatly appreciated.

      Sam
        • 1. Re: Trouble with the Open Browser Window behavior
          Level 7
          You must always do the following when applying behaviors to images:

          1. Assign a link to the image first, even if it is a null link. Use the
          Property inspector to do this.
          2. Click on the image in Design view, then click on the <a> tag that you
          see on the Tag inspector bar at the bottom of the document pane so that the
          anchor tag is selected.
          3. Now apply your behavior.

          You *can* usually truncate this process as follows -

          1. Select the image in Design view and make sure that <img> is selected on
          the Tag selector bar.
          2. Apply the behavior.
          3. Use the behavior panel to set the event desired to <A> onClick, or <A>
          onMouseOver, or any of the appropriate "<A>" containing items in the list.

          --
          Murray --- ICQ 71997575
          Adobe Community Expert
          (If you *MUST* email me, don't LAUGH when you do so!)
          ==================
          http://www.dreamweavermx-templates.com - Template Triage!
          http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
          http://www.dwfaq.com - DW FAQs, Tutorials & Resources
          http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
          ==================


          "sammas" <webforumsuser@macromedia.com> wrote in message
          news:f8t28c$b6j$1@forums.macromedia.com...
          >I have a page with thumbnail images. I want to be able to click the
          >thumbnail
          > and have a new window open with just that image in the window. If I don't
          > assign a link to the thumbnail, and select the Open Browser Window
          > behavior,
          > the only 3 options for when to open the window are onLoad, onError, or
          > onAbort.
          > I want it to be opened onClick. If I do assign a link to the image, and
          > then
          > select the Open Browser Window behavior, it gives me the option to open
          > the
          > window onClick. However, when I test it, it opens 2 new windows - the one
          > I
          > want, and the one that is the link that I assigned to the image.
          >
          > I can't figure this out! Any help would be greatly appreciated.
          >
          > Sam
          >