Results 1 to 7 of 7

Thread: browser resize detect

  1. #1
    Join Date
    Jan 2008
    Posts
    441
    Thanks
    67
    Thanked 4 Times in 4 Posts

    Default browser resize detect

    Hi, i have a flash file in html container that scales according to browser resize, however i would like to set a condition so that when the browser is smaller than 800 x 600 scroll bars appear. how would i write that in javascript

    thank you

  2. #2
    Join Date
    Jun 2007
    Posts
    543
    Thanks
    3
    Thanked 78 Times in 78 Posts
    Blog Entries
    1

    Default

    does the flash file resize, or the html container?
    [Jasme Library (Javascript Motion Effects)] My Site
    /\/\@§†ê® §©®¡þ† /\/\@|{ê®
    There are 10 kinds of people in the world, those that understand binary and those that don't.

  3. #3
    Join Date
    Jan 2008
    Posts
    441
    Thanks
    67
    Thanked 4 Times in 4 Posts

    Default

    yes, the flash file resizes, but i can set parameters on that. in the html i have it set to 100%

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Scroll bars will appear as needed on any HTML page as long as you haven't already done something to prevent that. If you want the scrollbars to appear within the Flash object, javascript cannot help or can only at best partially help you with that. If it is only the Flash object that you are concerned with, it can best be accomplished entirely with the Action Script prior to compilation of the Flash object.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Jan 2008
    Posts
    441
    Thanks
    67
    Thanked 4 Times in 4 Posts

    Default

    i'm not looking for scrollbars in flash, however in order to scale the swf, i had to set the dimensions to 100% and because of this the scrollbars are not appearing in the html container

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You set what dimensions where to 100%? It sounds to me as though you set them in the Action script of the Flash, but maybe you mean the object tag on the page, or the style for the body and/or html element of the page.

    You are also implying that the Flash movie or whatever it is has certain minimum dimensions, is that true?

    In any case, I'd like to have a link to the page, rather than continue a back and forth over what you have set where, and what is happening to what and when.

    Please post a link to the page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #7
    Join Date
    Jan 2008
    Posts
    441
    Thanks
    67
    Thanked 4 Times in 4 Posts

    Default

    thank you so much, i will post a link in a few.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •