Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Linking to external .swf - resize window?

Options
  • 09-05-2007 12:20pm
    #1
    Closed Accounts Posts: 199 ✭✭


    When creating a link to a .swf on an external page, is it possible to specify the size of the window that will be opened once the user clicks on it?

    Whats the code behind this?


Comments

  • Registered Users Posts: 21,257 ✭✭✭✭Eoin


    baguio wrote:
    When creating a link to a .swf on an external page, is it possible to specify the size of the window that will be opened once the user clicks on it?

    Whats the code behind this?

    I've never used javascript to resize the main window as I think it's a nasty practise, but if you're talking about a popup window then the standard code should work:
    <script type="text/javaScript">
        var newWin = window.open("myfile.swf", "windowname", "height=300,width=300,<rest of properties");
    </script>
    


  • Closed Accounts Posts: 199 ✭✭baguio


    Thats exactly what I was looking for Eoin. Thanks.


Advertisement