Centering a popup window?

Ask a Question related to Macromedia Flash Sitedesign, Design and Development.

  1. #1

    Default Centering a popup window?

    I am creating a Flash site that opens a popup window when the user clicks a
    button. I have been able to edit the html code, using notepad, to achieve this,
    however the popup automaticaly appears in the top left corner of the screen.
    does anyone know what code I need to make it appear in the centre of the screen?

    I would apreciate any help you could offer.

    TeeMouse Guest

  2. Similar Questions and Discussions

    1. Popup menu on popup window
      Hi, I want to create a popup menu when a button on a popup window is clicked. I have this in my popup window: myMenu =...
    2. centering stand alone window
      hi, is there any way that when you release a stand alone projector (at least for windows), you can tell it to run center_aligned in the screen? (not...
    3. centering flash in browser window
      hello. i know this is asked a lot but i looked at previous posts and none of the solutions helped me. i am making a website purely in flash mx. i...
    4. can a popup window return data to parent window?
      Is it possible to do the following in php: I want to have a main form open. In the form I want a button that will open a popup window so the user...
    5. REQ: Help with popup window....
      I am a confessed novice with Dreamweaver MX & web design. I am looking for some help in creating a popup window, NOT a popup message, on my...
  3. #2

    Default Re: Centering a popup window?

    Try this. Just fix a few things. It will work.

    ++ place this in the head tag ++

    function MM_openBrWindow (theURL, winName, features){
    var popup_width=731
    var popup_height=316
    var screen_width=window.screen.width
    var screen_height=window.screen.height
    var popup_left=Math.round((screen_width-popup_width)/2)
    var popup_top=Math.round((screen_height-popup_height)/2)

    newwindow=window.open(theURL,"gallery","height=" + popup_height + ",width=" +
    popup_width +
    ",menubar=0,resizable=0,scrollbars=no,status=0,tit lebar=no,toolbar=0," +
    "left=" + popup_left + ",top=" + popup_top);
    if (window.focus) {newwindow.focus()}
    }


    ++ place this in the map area ++

    onclick="MM_openBrWindow('home.html')"

    creativity06 Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139