Open Browser Window behaviour - no centering option

Hi everyone,
I used the Open Browser Window behaviour in Dreamweaver to
open up a small browser window when a link is clicked, but the
behaviour doesn't provide an option to position the window in the
centre of the screen. Does anyone know if there's another behaviour
that provides this option, or how to edit the javascript to get it
to work?
The code that Dreamweaver generated is below.
Thanks for any help offered.

DW doesn't offer this in any built-in function. You can
manually hack the
code inserted to produce that effect (you would have to
Google to find the
necessary changes), or you can use a 3rd party extension to
do that and much
more. I routinely use DivaPOP for things like this -
http://www.divahtml.com
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"gwhPoster" <[email protected]> wrote in
message
news:g1gjr7$hri$[email protected]..
> Hi everyone,
>
> I used the Open Browser Window behaviour in Dreamweaver
to open up a small
> browser window when a link is clicked, but the behaviour
doesn't provide
> an
> option to position the window in the centre of the
screen. Does anyone
> know if
> there's another behaviour that provides this option, or
how to edit the
> javascript to get it to work?
>
> The code that Dreamweaver generated is below.
>
> Thanks for any help offered.
>
>
>
> <script type="text/JavaScript">
> <!--
> function MM_openBrWindow(theURL,winName,features) {
//v2.0
> window.open(theURL,winName,features);
> }
> //-->
> </script>
>
> p>Text here. Text here. Text here. <a href="#"
>
onclick="MM_openBrWindow('offers.php','SpecialOffer','width=400,height=200')"
> style="text-decoration:none; color: #634A95;
font-weight:
> bold;">More...</a></p>
>

Similar Messages

  • Open Browser Window Behaviour

    Hi,
    I want a client to be able to attach pop up window behaviours
    to images on their web page. Is it possible to attach behaviours in
    Contribute ?
    thanks
    Simon

    I successfully opened every single text link that loads the
    songs, and also
    opened every single image link on the right hand side.
    I don't see a problem here on Firefox w/ Windows XP Home SP2.
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    "buzzzzzzzz" <[email protected]> wrote in
    message
    news:e20bkm$1uv$[email protected]..
    > Hi........I have an issue with my DWMX open browser
    window behaviour. I
    > have
    > about 10 text links and 5 image links (ahref#) on my
    page using this
    > behaviour.
    > It would seem this intermittently works with each link,
    however it is
    > typical
    > for it work 2 or 3 times, then - nothing. No further
    windows/links will
    > open,
    > the page will stop working (can't even refresh)
    > The code for each image link is:
    > ...... <td width="6%" rowspan="16"
    valign="top"><div align="left"><a
    > href="#"><img src="assets/demoVox.jpg" alt="Renae
    Suttie" width="70"
    > height="84" border="0"
    > onClick="MM_openBrWindow('
    http://www.swingcollective.com/assets/audio/demoVx.htm
    > ','','width=275,height=250')"></a> .......
    >
    > The page is
    http://www.swingcollective.com
    - go to demos page and see.
    > Thanks in advance for any help.
    >
    > DC
    >

  • Window size will not change in open browser window behaviours

    Despite changing the sizes of the window in the edit function of
    edit open browser window it always opens up as one big page.
    My code is
    <p><a href="popup.html"><img src="../Existing business1.jpg" alt="existing1" name="services" width="359" height="283" id="services" longdesc="http://Hr existing" onclick="MM_openBrWindow('popup.html','popup','width=430,height=300')" /></a></p>
    Can anyone help?
    Thanks

    Which browser(s) are you testing?
    Have you got a URL to your test pages yet?  That's the best way to get help.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Open browser window behaviour help

    hi guys first just want to thank you all found loads of help
    on this site !!!
    i am getting stuck in to my first real development, played
    around before using dreamweaver 8 etc i have learned a bit of code
    (html php mysql) played in flash but still limited as im still
    learning but found it works best for me to get stuck in!!!
    on my website i have a catalog page that i designed to open
    in a new window behavior when the link is clicked from the menu
    column but as standard the catalog is on the home page. when
    catalog is accessed from the menu column the size is set to W:600
    H:300 on this page i have logo's linking to pages with products
    once a logo is clicked the page it links to opens within the same
    window which is too small is their a way to get the page to
    automatically adjust full screen or do i have to use the open new
    browser window behavior and do it that way?
    hopefully i have explained this so it makes sense !

    There is nothing you can do about that if that is the setting you have
    made for your browser. You may also be looking at this in an emulator
    (Adobe Browser Labs) or a non-standard config, or through a local
    preview, in which cases, things might not work normally.
    It is paramount in the web design business that you not tamper with a
    user's settings.
    For me, in a default installation of IE7, the popups open in their own
    little windows. You are going to have to live with this or deconstruct
    all of your pages and use a modal window script - which pops up what
    looks like a window, but is actually a DIV on the same page. You were
    given links to free sources that require considerable setup or you can
    look at automated Dreamweaver extensions (not free) like this:
    http://www.projectseven.com/products/tools/horizontal-glider/examples/lightshow.htm
    Al Sparber - PVII
    http://www.projectseven.com
    The Finest Dreamweaver Menus | Galleries | Widgets
    Since 1998

  • Using "Open Browser Window" behaviour

    In IE7 the page selected in my behavior appears on a full
    browser screen, then a blank screen (in the size specified in the
    behavior) comes up. Works fine in IE6 and Foxfire. Anyone have
    suggestions?
    Reno

    that it works remotely is all that matters, of course. That
    IE gives
    troubles locally is by (its) design. You can get around the
    local issue
    by adding a "mark of the web" to the page (see
    Commands/Onsert Mark of
    the web)
    emichael brandt
    /Reneaux wrote:
    > I don't know what's going on. I just tried it again
    (online, in IE7) and it works as it should. However, it still
    doesn't properly using the files on my hard drive.

  • Behaviours, open browser window

    hi,
    have an annoying problem using the "open browser window"
    Behaviour. Basically whats happening is that i put up a page of
    photos that i have reduced in size, users then click on a photo
    that they want to see. Using the "open browser window" a new page
    appears with the enlarged photo on it. The problem is this, if
    users scroll down my webpage and select a photo, the new window
    opens no prob but when they return to the original previewing page
    it has returned to the top of the page again. The use then has to
    scroll back down to where they left off! this is very annoying for
    me and them. HOW DO I FIX?
    here is the page im question so you can see for yourself
    http://www.vas-ni.com/spares%20gallery.html
    i am using Dreamweaver 8. I create hotspots then assign
    behaviours to them..
    thanks

    Change this -
    <area shape="rect" coords="3,3,101,76" href="#"
    onclick="MM_openBrWindow('web
    pages/15.html','','width=400,height=300')" />
    to this -
    <area shape="rect" coords="3,3,101,76" href="#"
    onclick="MM_openBrWindow('web
    pages/15.html','','width=400,height=300');return false;"
    />
    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
    ==================
    "ncaskey" <[email protected]> wrote in
    message
    news:e3t6n0$5fo$[email protected]..
    > hi,
    >
    > have an annoying problem using the "open browser window"
    Behaviour.
    > Basically
    > whats happening is that i put up a page of photos that i
    have reduced in
    > size,
    > users then click on a photo that they want to see. Using
    the "open
    > browser
    > window" a new page appears with the enlarged photo on
    it. The problem is
    > this,
    > if users scroll down my webpage and select a photo, the
    new window opens
    > no
    > prob but when they return to the original previewing
    page it has returned
    > to
    > the top of the page again. The use then has to scroll
    back down to where
    > they
    > left off! this is very annoying for me and them. HOW DO
    I FIX?
    >
    > here is the page im question so you can see for yourself
    >
    http://www.vas-ni.com/spares%20gallery.html
    >
    > i am using Dreamweaver 8. I create hotspots then assign
    behaviours to
    > them..
    >
    > thanks
    >
    >

  • Behaviour open browser window

    basically what i´m trying to do is to map part
    of an image so when clicking on it a small browser window opens.
    i´ve read the using dremawaver help but.. didn´t help me.
    have googled it but still can´t get it to work. i´m not
    sure exactly what to do, do I save a file first and then give it
    the behaviour? do i link this file to the mapped image? well,
    obviously that´s not the way its done cause it is not
    working...
    if anyone could give me just the steps from the moment i map
    the image to the moment when i press f12 and !voila! a browser
    window opens, I would be more than happy and appreciative. Thanx so
    much in advance.

    plinares wrote:
    >
    basically what i?m trying to do is to map part of an
    image so when
    > clicking on it a small browser window opens. i?ve read
    the using dremawaver
    > help but.. didn?t help me. have googled it but still
    can?t get it to work. i?m
    > not sure exactly what to do, do I save a file first and
    then give it the
    > behaviour? do i link this file to the mapped image?
    well, obviously that?s not
    > the way its done cause it is not working...
    >
    > if anyone could give me just the steps from the moment i
    map the image to the
    > moment when i press f12 and !voila! a browser window
    opens, I would be more
    > than happy and appreciative. Thanx so much in advance.
    >
    select the image-map.
    In the property inspector, in the link box, write
    javascript:;
    Open the behavior panel. Click on the + sign. Select "Open
    Browser Window". follow the steps.
    When you have applied the behavior, look in your behavior
    panel, your behavior should show.
    (note that ALL this time, your image map is still selected)
    Next to the shown behavior, you see the action that triggers
    it; it's a drop-down select menu.
    Select onClick.
    seb ( [email protected])
    http://webtrans1.com | high-end web
    design
    Downloads: Slide Show, Directory Browser, Mailing List

  • Open Browser Window & IE6

    Im converting one of my flash sites into HTML. In gallery I
    have thumbnails that open a new window. Im using the same method
    I've always used but for some reason my IE6 on only my laptop seems
    to be having trouble opening them. Im wondering if I am just having
    a problem with my IE or if visitors may potentially exerience the
    same thing. Heres the site:
    http://jaredseff.com/temp/progress.htm
    My usual method is to select the thumbnail, click Behaviours,
    then Open Browser Window (onClick). After I've filled the options
    in that window I click ok and then insert," javascript:; " (no
    quotes) in the properties panel so that the little hand icon will
    show with mouseover.
    My behaviour panel is showing events for IE4.
    Could it be my browser? Its working fine on Opera, Firefox
    & my other PC's IE6.
    TIA,
    Amelia

    check menu item Tools/Popup Blocker... bet it is set to block
    all popups.
    emichael brandt
    StargrrlGrafx wrote:
    > Im converting one of my flash sites into HTML. In
    gallery I have thumbnails
    > that open a new window. Im using the same method I've
    always used but for some
    > reason my IE6 on only my laptop seems to be having
    trouble opening them. Im
    > wondering if I am just having a problem with my IE or if
    visitors may
    > potentially exerience the same thing. Heres the site:
    >
    >
    http://jaredseff.com/temp/progress.htm
    >
    > My usual method is to select the thumbnail, click
    Behaviours, then Open
    > Browser Window (onClick). After I've filled the options
    in that window I click
    > ok and then insert," javascript:; " (no quotes) in the
    properties panel so
    > that the little hand icon will show with mouseover.
    >
    > My behaviour panel is showing events for IE4.
    >
    > Could it be my browser? Its working fine on Opera,
    Firefox & my other PC's IE6.
    >
    > TIA,
    > Amelia
    >

  • Open Browser Window Location

    I use "open browser window" for dynanic display of pictures and it normally opens a window at the top/left side of the screen.
    I know there are tools where you can specify the location of such a window, but I don't use them: top/left is OK for me.
    Strangely enough, the same window opens at the center of the screen on my wife's notebook. It doesn't seem to be a Dreamweaver option, but most probably a windows (IE) option.
    We both use Windows 7 with same version of Internet Explorer (8.0.7600). Can anybody explain this behaviour?
    Ray

    quote:
    Originally posted by:
    Newsgroup User
    "Alan" <[email protected]> wrote in
    message
    news:C596B4D8.31C779%[email protected]..
    >
    >
    >> The problem I am having is that the new
    >> browser opens up bringing the main page back to the
    top with the new
    >> window at
    >> the top. How can I get is to open in the exact
    location where the photo
    >> is
    >> shown without bringing the main browser window to
    the top?
    >
    > If the page with the link is jumping to the top, a guess
    would be you have
    > used # as the null link? Which the browser sees as an
    empty anchor link.
    >
    > change the # to
    > javascript:;
    It would be better to use an arbitrary string after the "#",
    making sure
    that that fragment identifier does *not* match a named anchor
    on the page.
    That way the document won't jump *and* won't freeze either;
    which can happen
    in IE6 when users click on links that have "javascript;" for
    href values.
    An even better approach of course would be to use a "real"
    href (what's
    loaded in the popup) with a "return false" statement...
    Thierry | Adobe Community Expert | Articles and Tutorials ::
    http://www.TJKDesign.com/go/?0
    Spry Widgets |
    http://labs.adobe.com/technologies/spry/samples/
    [click on
    "Widgets"]
    Spry Menu Bar samples |
    http://labs.adobe.com/technologies/spry/samples/menubar/MenuBarSample.html
    Thanks for the responses. The java script command worked
    well. To avoid IE issues, I made the link like this: #!. That makes
    it pop up right there. The open browser command was done on the a
    tag for the image (the original # place holder). How would you use
    a "real" href with the return false command? Can you give me an
    example?
    Here is the html code:
    <a href="#!"
    onclick="MM_openBrWindow('assets/images/portfolio/halfup_48.jpg','halfup48','width=480,he ight=640')"><img
    src="assets/images/portfolio/halfup_48.jpg" alt="halfup48"
    width="135" height="203" /></a>
    M

  • A:hover with "open browser window" behavior?

    Hi,
    Is it possible to make a text link follow the a:hover style (CSS?) with the behavior of "open browser window"?
    I've been using the "OnClick" option (for behaviors), but the cursor doesn't turn into the little hand symbol so I feel like people won't know that you can click on it.  If I could make it change color like it does when it is a direct link, or if i could make the hand symbol appear, that would be great.
    Thank you in advance!!

    We'd need to see your code but I'm guessing you did not highlight the link text and make it a null link.
    http://alt-web.blogspot.com/2010/02/making-pop-up-window-in-dreamweaver.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Trouble with the Open Browser Window behavior

    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

    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" <[email protected]> wrote in
    message
    news:f8t28c$b6j$[email protected]..
    >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
    >

  • Open Browser Window Problem

    I used an extension I bought to have more control over
    flash's "Open Browser Window' behavior. The new windows open at a
    smaller size and are centered in Safari and Firefox on my Mac but
    do nothing when the browser is Internet Explorer on a PC.
    Thanks if you can help.
    See code:

    ask for you money back and use the externalinterface class to
    call a javascript function that controls your new window.

  • Text link and open browser window

    Hello
    I have successfully done this clicking on an image using
    behaviours 'open browser window' to open a larger version of the
    image and I would like to do the same with a text link eg 'click
    here for Terms and Conditions' and have that web page open in the
    same way setting the width, height etc. I can't seem to do it. Any
    help gratefully accepted!
    Thank you very much in advance.

    James Shook wrote:
    > ... Search this newsgroup's archives for the way to do
    this so it will
    > work well in browsers with JavaScript turned off.
    An easy way to do follow James sage advice, once you've added
    the Open
    Browser Window behavior to your's link, is to run the free DW
    Extension
    divaFreeTools on your page. It will update the DW
    OpenBrowserWindow
    Behavior to work properly when javascript is off and help
    Search Engines
    find your linked page/image.
    http://divahtml.com/products/divaFreeTools/free_dreamweaver_tools.php
    E. Michael Brandt
    www.divahtml.com
    www.divahtml.com/products/scripts_dreamweaver_extensions.php
    Standards-compliant scripts and Dreamweaver Extensions
    www.valleywebdesigns.com/vwd_Vdw.asp
    JustSo PictureWindow
    JustSo PhotoAlbum, et alia

  • Open Browser Window behavior not working

    Just getting started with DW from GL - have successfully imported a few sites into DW from GL and am having trouble getting the Open Browser Window behavior to work. Worked fine in GL, code is similar but different. Have tried different things and am out of ideas. I'm not too code-savy.
    Here's where the non-working behaviors/actions are: http://www.philasecurities.com/data/luncheon.html
    When a user clicks on the red "more..." links they should open a new browser window like they do in the "Click
    here for previous years..." section.
    Any help would be appreciated!

    bregent, thanks for your input but unfortunately most of that's greek to me. Could you either supply me with sample code for one of these links or explain what I'm doing wrong in the design mode? I've followed DW instructions and as far as I can tell I'm doing what I'm supposed to in the behaviors tag inspector. Not sure about some of the settings I should have when browsing for the linked file to open in the new browser window. What should the parameters be set to? What should the relative link be set to, document or site root? How about some of the other options like Select file name from: data sources, server, site root? I've messed with them and tried different combinations but nothings working for me.

  • "open browser window" size

    I am updating a site that uses pop-ups for definitions
    throughout the site. This is a medical site, so the pop-up
    definitions are essential. The site was built before pop-up
    blockers came onto the scene. I have tried replacing the script
    with the "open browser window" action under the tag inspector but
    cannot seem to get that to work. I do rely on DW for Java script as
    it is not my strong suit. I cannot find a way to have small windows
    open with DW - and avoid pop-up blockers. Does anyone have a
    solution?
    Thank you!

    > blocker doesn't even sound - only a new page saying
    "page cannot be found"
    Then this is not the pop-up blocker at work. This means that
    your path to
    the file is wrong.
    > I will search for some updated Java
    Then you won't find it - it's javascript not Java.
    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
    ==================
    "Reed8" <[email protected]> wrote in message
    news:e50330$j08$[email protected]..
    > Thanks, but it's actually long content. Sometimes up to
    3 paragraphs.
    > The
    > customer doesn't want to re-work the whole site to have
    this information
    > load
    > onto "regular" web pages. But, the javaScript is so old
    that the pop-up
    > blocker doesn't even sound - only a new page saying
    "page cannot be
    > found". I
    > though that the behaviour panel would help to update the
    script - adding
    > "open
    > browser window" but it doesn't show up as a link when I
    use this method -
    > and
    > these need to be clearly defined as links. I will search
    for some updated
    > Java
    > - but I had hoped that DW studio 8 would have this a
    solution.
    > I do love the 'overlib' though - thanks for the tip!
    >

Maybe you are looking for