Welcome, Guest
  • Author Topic: Javascript pop up help  (Read 3105 times)

    nnnswordfish

    • Server what's that
    • *
    • Posts: 49
      • View Profile
      • Email
    Javascript pop up help
    « on: 05/23/08, 13:36 »
    hy, i use pop up generator from u site(thanks for it)

    here is as

    Quote
    on (release) {
    getURL ("javascript:NewWindow=window.open('mapservice.html','newWin','width=600,height=600,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=Yes,fullscreen=No');  NewWindow.focus();     screen_height = window.screen.availHeight; screen_width = window.screen.availWidth; left_point = parseInt(screen_width/2)-(800/2); top_point = parseInt(screen_height/2)-(600/2); setTimeout('NewWindow.moveTo(left_point,top_point)',100); void(0);");
    }

    but when i press on button first time window opened in left top corner and then it goes in centre,but i want when i press on button it to open in centre.can any one helps me to fix my as?

    BurtonRider1983

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 864
    • Rider-4-Life
      • AOL Instant Messenger - BurtonRider1983
      • View Profile
      • Flash Developer's Corner (being built)
    Re: Javascript pop up help
    « Reply #1 on: 05/25/08, 13:35 »
    Uncheck the (add move to) box when you generate the popup code and it will get rid of the movement.