Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Linking to external .swf - resize window?

  • 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, Registered Users 2 Posts: 21,277 ✭✭✭✭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