PDA

View Full Version : window resize



keljnr
July 11th, 2005, 10:10 AM
Is it possible to resize the current window to a fixed size.

I have a splash page, and when the "Enter" button is clicked, I want the current screen to resize to the size of my flash movie.

can anyone help me?

simplistik
July 11th, 2005, 10:12 AM
No... you have to do it via "popup"

ramie
July 11th, 2005, 02:13 PM
Yes using some simple javascript, you dont need a popup.

http://www.codeave.com/javascript/code.asp?u_log=7072

λ
July 11th, 2005, 02:17 PM
What's the point? My browser window is just fine the way I like it.. (and plus, I have Firefox set up to block attempts to resize/move windows).

lostinbeta
July 11th, 2005, 02:26 PM
Well you can, using resizeTo(), but some problems:

1) IE and Mozilla based browsers interpret this differently. IE counts the width/height as viewable page area, while Mozilla based browsers count the browser chrome in that as well, so it gives you a smaller area (and chrome can vary depending on a browser theme installed).

2) Everyone HATES when a site resizes itself. It's just flat out annoying. Most people (including myself) will close any site that does. And like λ I have my browser set to blck attempts to resize and move my windows.

simplistik
July 11th, 2005, 02:34 PM
that code ramie is limited... it resizes the current browser only on a click.... but you can't load a page into it. but I guess you could run a php query string, along w/ that and see if you can get it to work... but as is that script is sketchy

ramie
July 11th, 2005, 02:38 PM
yea, but he is entering the page with a click on the "enter" button, so it works in that respect, or just set a meta refresh on the page with the script.

I aggree with the others tho, it's the most annoying thing ever......

lostinbeta
July 11th, 2005, 04:31 PM
Well, you can do it when a page is entered, via the bodies onLoad capability.

But my original statements still stand :P