homepage Welcome to WebmasterWorld Guest from 54.145.182.50
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Change Resolution
Need a javascript?
kingkelly

10+ Year Member



 
Msg#: 280 posted 4:32 pm on Feb 6, 2003 (gmt 0)

I need a javascript to change the resolution of the viewers computer, then change back when they exit the window. Ive seen this used in many games, but thats all programming.

This is for a CDROM yearbook, and i am going to make it all in HTML, and launch a full screen borderless window to view it all. I dont feel like making it look good in 800*600 and 1024*768, so i would like to change the res upon launching the index.html file to 800*600.

please help!

 

choster

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 280 posted 4:44 pm on Feb 6, 2003 (gmt 0)

You cannot change screen resolution with Javascript. The best you can do is change the size of the browser window, and even doing that will earn you some fierce language.

You could

- fix the size of the content at 800x600 and center it, so it appears full screen at that resolution and in a box in the middle of the screen at higher resolutions
- build the whole yearbook in Flash or another vector-based format which will scale exactly at any resolution
- find a runtime utility to change the resolution and launch it in the CD-ROM's autorun (in which case you'd need separate programs for Windows, Mac, or any other platforms you want to support)

DrDoc

WebmasterWorld Senior Member drdoc us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 280 posted 4:44 pm on Feb 6, 2003 (gmt 0)

I am afraid that is an impossible task. It can't be done .. not from a Web site.

Dreamquick

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 280 posted 4:58 pm on Feb 6, 2003 (gmt 0)

I'd just like to add that my pet hate about temporary resolution changes is when someone's program changes my resolution the wrong way - mostly because they can't be bothered creating a program that works properly at any resolution other than their development resolution.

Why is this so annoying? It messes up all the icons placed strategically across my desktop and piles them into the space someone decided my desktop should be resized to for their program.

Normally this ends up with me never using that program again and emailing a complaint to whoever created/published it...

- Tony

kingkelly

10+ Year Member



 
Msg#: 280 posted 7:18 pm on Feb 6, 2003 (gmt 0)

I thought about flash, but might be too clunky since their will be pictures of every kid int he school, etc...

I guess I could do that fixed window size thing...

Putting something in the autorun is another option, and it shouldnt mess up yer icons since most games change resolution on you.

Thanks all....

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved