A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Pop Up Help . . .

  1. #1
    Junior Member
    Join Date
    Feb 2001
    Posts
    5
    I'm trying to get another window to open when I click one of the buttons on my website. The thing is that I want it to remain the same size of the movie and without all the explorer buttons. Also I would like to make sure that the new window stays in the middle of the sceen. I know you can do this using javascipt, but I'm really bad with Javascript not to mention I don't know where to put it. If anyone could help it would be greatly appreciated.

  2. #2

  3. #3
    Senior Member
    Join Date
    Jan 2001
    Posts
    591
    Put this in the Get URL field:

    Javascript:window.open('link.html', 'WindowName',
    'width=200,height=300,top='+((screen.availHeight/2)-(height/2))+',left='+((screen.availWidth/2)-(width/2)toolbar=no, scrollbars=no,resizable=no,menubar=no,status=no,di rectories=no,location=no');
    void(0);

    I have all kinds of popup window scripts here:
    http://www.san-fran.com/tutorials/fl...lmenu_wframes/

  4. #4
    Junior Member
    Join Date
    Feb 2001
    Posts
    5
    Thx alot guys . . . only problem is that I still can't get the scrollbar and toolbar not to show up . . . it keeps giving me a runtime error every time if I turn them both off . . . if you guys have any ideas it would be great . . .

  5. #5
    Registered User
    Join Date
    Feb 2001
    Posts
    13,044
    Javascript:window.open('link.html', 'WindowName', 'width=200,height=300,top='+((screen.availHeight/2)-(height/2))+',left='+((screen.availWidth/2)-(width/2))+',toolbar=no, scrollbars=no,resizable=no,menubar=no,status=no,di rectories=no,location=no');

    just a typo

    Musicman

  6. #6
    Senior Bumbler
    Join Date
    Dec 2000
    Posts
    522
    or try my smart clip...

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