HTMLfixIT.com
JavaScript swap stylesheet based on screen resolution tutorial.
How to swap stylesheets based on screen width using JavaScript.
1. Place the following in its entirety between the head tags of your page.
Congratulations!
If you did all that correctly, your page should now change stylesheets based on your screen resolution. If you want to offer people an option box by which they can select which stylesheet to run manually, here are some additional steps you should take.
Add this javascript code inside the head tags of your page.
Place this select box somewhere within your body tags.
The end result will look like this. (select one, it works.)
If you are unsure of any of the above steps, view the source code of this page as it has all the relevant bits in the relevant places.