Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Change Resolution

Need a javascript?



4:32 pm on Feb 6, 2003 (gmt 0)

10+ Year Member

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!


4:44 pm on Feb 6, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

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)


4:44 pm on Feb 6, 2003 (gmt 0)

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

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


4:58 pm on Feb 6, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

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


7:18 pm on Feb 6, 2003 (gmt 0)

10+ Year Member

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....


Featured Threads

Hot Threads This Week

Hot Threads This Month