;

PDA

Click to See Complete Forum and Search --> : set background color of frame OR browser?


sigmundSquirrel
12-27-2006, 07:35 PM
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

jasonsplace
12-28-2006, 06:41 AM
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.

1stbite
12-28-2006, 08:01 PM
ignore me.... my ideal wont work just tried it... :(

sigmundSquirrel
12-28-2006, 08:28 PM
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