Forum Moderators: open

Message Too Old, No Replies

Screen resolution sniffer.

Loads appropriate page for screen.

         

superfly

7:29 pm on Dec 3, 2004 (gmt 0)

10+ Year Member



I created a flash website. I have it how I want it in FF, NN, IE, etc. at 1024x768. I would like to have the first page redirect to 3 different pages, one for 800x600,1024x768,1152x864 or maybe 1280x1024. I'm sure this can be done easily with a function, var and href in Javascript. Does anyone know a code or example? Since the site is (all in one html file and everything is loaded into that) changing the table, swf size in a few new pages will be simple. Does anyone know the most popular screen resolution for web surfers? I use 1280x1024. Mine goes up to 1900 but it's too small for the web.
Thanks

adni18

11:05 pm on Dec 3, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



you can use window.screen.width and window.screen.height for the exact width and height, cor for the width and height not taken up by dock, start menu, etc. use window.screen.availHeight and window.screen.availWidth