dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Pop up... want it in lower left corner.

  1. #1
    Member
    Join Date
    Jan 2004
    Posts
    53

    Pop up... want it in lower left corner.

    I have been using some of the java pop up generators like on frets-files which is great.

    I want one of my pop ups to open up in the lower left hand corner of the screen. Can this be done?

    Thanks!!
    Last edited by 0100; 11-30-2004 at 07:10 AM.

  2. #2
    Senior Member Lys12's Avatar
    Join Date
    Feb 2001
    Location
    Munich, Germany
    Posts
    5,237
    hi,

    try this:

    on (release) {
    javascript("window.open('http://www.yoururl.com','yoururl','width=300,height=200,r esizable=no,scrollbars=no,toolbar=no,top='+((scree n.availHeight)-(200))+',left='+((screen.availWidth)-(screen.availWidth))+'');void(0);");
    }

  3. #3
    Member
    Join Date
    Jan 2004
    Posts
    53
    onframe (21) {

    javascript("window.open('http://www.yoururl. com','yoururl','','width=178,height=70,resizable=n o,scrollbars=no,toolbar=no,top='+((screen.availHei ght/2)-(70/2))+',left='+((screen.availWidth/2)-(178/2))+'');parent.opener=top;opener.close();");
    }

    I used this script and it opens up a 178x70 window dead center. But want a 178x70 window to open in the left lower corner.

    I tried the script you posted and for some reason it opened the window, full screen with toolbar and everything which doesn't make sense. I must be doing something wrong.

  4. #4
    Senior Member Lys12's Avatar
    Join Date
    Feb 2001
    Location
    Munich, Germany
    Posts
    5,237
    you're mixing the two codes above i think. there's a difference between

    'yoururl','width

    and

    'yoururl','','width


    try this:

    Code:
    onframe(21) {
    javascript("window.open('http://www.yoururl. com','yoururl','width=178,height=70,resizable=no,
    scrollbars=no,toolbar=no,top='+((screen.availHeight)-(70))+',left='+((screen.availWidth)-(screen.availWidth))+'');void(0);");
    }

  5. #5
    Member
    Join Date
    Jan 2004
    Posts
    53
    I tried that script and it still opens the window full screen with toolbar and everything. Makes no sense with scrollbars=no,toolbar=no in the script. I don't understand why it's not working.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center