Setting fixed browser size?

Im not shure this is the right place to post this, but here goes… I’ve just made a flash site that can’t be scaled, and can’t have repeating backgrund, so i need to lock the browser size to the flash dimentions (950x700) Im trying to do this in css but i suck at css and cant get it to work. Iv’e tried using <body onload=“changeScreenSize(950,700)”> and

<script>
function changeScreenSize(w,h)
{
window.resizeTo( w,h)
}
</script>

but can’t get it to work… it pops right back to a smaller window and scrolling becomes nessesary…
I was also hoping for the window not to be scaleable…

Any ideas?

It’s possible, but it’s such incredibly bad practice I’ll hold my tongue ; )

Find a better solution to your problem and you’ll have a better site.

why is it sutch a incredibly bad practice? :s

Do YOU like it when a site takes control of your browser size?

I hate it, I close down anything that does that in .1 ms. People don’t just have ONE tab open you know (FF, Opera, Safari etc)

oh i see :o of course… it rezizes everything, not just my page :-/ … i think ill work around it… add a black fadeout around the edge and go with a center posision and black background or something like that …

I think a better solution would be to open a popup window with fixed width/height, that way you are not screwing up someones surfing experience by locking their window. This is pretty common practice for this exact situation. Sekasi is right, you shouldn’t attempt this with the current window.

If you need to know how to open a centered popup, go here:

Embed your flash into the page the call is opening, and set the w,h parameters 950, 700. It’s already setup to not be resizable. This is what you should do. :hr:

<a href="#" onclick="javascript:popupWin(950,700,'yourflashpage.html');">Enter Site</a>