View Full Version : Change window size
mandlebaum
10-08-2004, 12:42 AM
I have seen it on many websites, but what im trying to do is have the opening page have only a button on it, then once the button is clicked to enter the site, i want the window to change to fit my flash site perfectly... if u have an easy way of explaining this to me, then let me know. thank you
splict
10-08-2004, 01:57 AM
<input type="button" onclick="javascript: window.resizeTo(x, y);" />
although, I think most would agree that its annoying when a website does that.
mandlebaum
10-08-2004, 02:10 AM
well i was debating between that or, having a new window pop up..and i thought that it changing size would be more convenient. I dont want to just leave it because its an awkward rectangle shape.
splict
10-08-2004, 03:06 AM
Is it just for a regular website? Is there a specific reason why you can't just center the content in the browser? Maybe you could make the surrounding area a different color like black?
One of the reasons it is bad practice to resize a window is because of the growing population of people using tabbed browsers - now you just resized their browser that has all of their other windows in it, too. Especially bad if they opened your tab in the background. Personally, I have my browser set to not allow websites to change my browser's window size, so you're not really guarranteed that the window size will change. Now, I'm sure I'm in the minority there, but its just something to think about.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.