dcsimg
A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Browser Size

  1. #1
    Member
    Join Date
    Dec 2000
    Posts
    37

    Smile

    Can someone tell me how to specify the size of the browser in a get url action. It's for my portfolio so the url are jpgs.

  2. #2
    Junior Member
    Join Date
    Apr 2001
    Posts
    17
    Place the javascript function newWin() inbetween the head tags of the page the swf movie is located in. In the getURL field of the button used to call the window of the swf movie type in javascript:newWin()

    This is the code for the html page

    <SCRIPT LANGUAGE="JavaScript">
    <--
    function newWin() {
    window.open("yourpicpage.html","anyname","width=40 0,height=300,scrollbars=yes")
    }
    // -->
    </SCRIPT>

    You need to insert your pic into a standard html page.

    Hope this helps


  3. #3
    Member
    Join Date
    Dec 2000
    Posts
    37

    Angry

    thanx for the reply. I'm not quite sure what you mean by "in the getURL field of the button used to call the window of the swf movie type in javascript:newWin()" where do I specify the file name?


  4. #4
    Registered User
    Join Date
    Sep 2000
    Posts
    9
    you need a button to launch the popup window, right?
    so when the user presses this button, youll call the get URL command, which is "javascript.newWin()"
    this in turn will call the javascript written in the html page...
    this javascript (located in the head of your html page) specifies the file name, in the

    window.open("yourpicpage.html","anyname","width=40 0,height=300,scrollbars=yes")

    where your file name is "yourpicpage.html"

    hope that helps...

  5. #5
    Member
    Join Date
    Dec 2000
    Posts
    37
    I'm sorry if I'm being a pain, but what I don't understand is if I have say 20 buttons and each one
    has a get url javascript:newWin() how does it associate
    with each picture. Does the name go inside the ()'s??


  6. #6
    Junior Member
    Join Date
    Apr 2001
    Posts
    17
    Look I'm not too sure if this will work but try it out...

    In the javascript function declaration placed into your html page place a variable into the function as a parameter, like this function newWin(page){....

    and into your window.open action substitute the page variable for the URL of the page like this
    window.open(page,anyname,width=2000.....)

    Then in the getURL of your flash movie type in
    javascript:newWin(yourpage.html)

    Hope this works


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