Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > HTML and JavaScript

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-08-2004, 12:42 AM   #1
mandlebaum
Registered User
 
Join Date: Apr 2004
Location: orange county
Posts: 23
Send a message via AIM to mandlebaum
Question Change window size

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
mandlebaum is offline   Reply With Quote
Old 10-08-2004, 01:57 AM   #2
splict
ruby on rails fan :)
 
splict's Avatar
 
Join Date: Oct 2003
Location: tampa, fl
Posts: 1,139
Send a message via AIM to splict Send a message via MSN to splict Send a message via Yahoo to splict
Default

<input type="button" onclick="javascript: window.resizeTo(x, y);" />

although, I think most would agree that its annoying when a website does that.
splict is offline   Reply With Quote
Old 10-08-2004, 02:10 AM   #3
mandlebaum
Registered User
 
Join Date: Apr 2004
Location: orange county
Posts: 23
Send a message via AIM to mandlebaum
Default

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.
mandlebaum is offline   Reply With Quote
Old 10-08-2004, 03:06 AM   #4
splict
ruby on rails fan :)
 
splict's Avatar
 
Join Date: Oct 2003
Location: tampa, fl
Posts: 1,139
Send a message via AIM to splict Send a message via MSN to splict Send a message via Yahoo to splict
Default

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.
splict is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:14 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.