A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: set background color of frame OR browser?

  1. #1

    set background color of frame OR browser?

    I've got a frameset that I'm loading different pages into the bottom frame. The whole site has a black background, and the problem is that when a new page loads in the lower frame, the whole frame flashes white until the content loads. (Doesn't do it in Firefox on Mac, but definitely Safari, and IE)

    You can see how it looks at:
    http://www.poddesign.com/myvu2
    -- just navigate with the menu along the top and you'll see the bottom half flash white before each section loads ("buzz" "company" etc.)

    Is there a way (by CSS or Javascript) to set the background color of the browser or of the frame to black?

    I tried using an inline style in the frame tag of my index page:

    <frame style="background: #000000" id="changethis" name="content" src="home.html" marginheight="0" marginwidth="0" frameborder="0" border="0" noresize="yes" />

    but didn't work. Any help out there?

    thanks,
    sigmundsquirrel

  2. #2
    FK's Official Mac Hater jasonsplace's Avatar
    Join Date
    Mar 2002
    Location
    Provo, Utah
    Posts
    2,245
    Probably not. When you click a link, the browsers that have this problem close the current page and then load in the new one. It just shows white while nothing is loaded. One thing that might be a suitable solution would be to use a JavaScript page transition. You know where you click a link and you get the corny fade look. I've never done one but it should be pretty easy to customize if you find one and maybe you could even just have it skip the whole fading stage.
    Jason L. Wright
    I'm not that hard to imitate. Just make some random negative claim at Apple or anything else for that matter and then have nothing to back it up.

  3. #3
    No I can't do it by tommorow.. 1stbite's Avatar
    Join Date
    Feb 2003
    Location
    UK
    Posts
    1,300
    ignore me.... my ideal wont work just tried it...
    Last edited by 1stbite; 12-28-2006 at 08:04 PM.
    and in a blink of an eye...
    Media and Multimedia Courses in Nottingham - First Diploma | IMedia | HND | Foundation Degrees | BA(Hons) Top Ups.

    Give a Twit a chance!

  4. #4
    For now, I've solved it by using two frame tag properties in the main frameset: "allowtransparency=true" and "style=background:black"

    This works for IE and Firefox (which is probably 96% of browsers out there...) so I can live with it. These properties allow the frame window to have a background color independent of the HTML page that is loaded into it -- so I don't get the flash of default white in between page loads that I was getting before. Good enough for me...!

    Jason, I've never seen these javascript page transitions, so I'm interested. Maybe they're so old they're new again? How do they work, and how were you thinking they might apply to my particular problem?

    thanks,
    sigmundsquirrel

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