desjardins2010 Posted December 10, 2010 Share Posted December 10, 2010 Hey Guys/Gals I have a page that resembles your desktop the issue were having is that when you view the page you have to scroll up and down left and right and this isn't what we want.. we want it to be full screen no scrolling needed for any user regardless of there resolution being used.. how can I accomplish this? Quote Link to comment Share on other sites More sharing options...
ricky_vancouver Posted December 11, 2010 Share Posted December 11, 2010 Here you go. Adjust this code for your convenience. Create main html (index.html) and use this code alone. <script> if (screen.width <= 640) { alert("Sending you to a page appropriate for screen resolution 640x480."); document.location = "index640x480.html"; } else if (screen.width <= 800) { alert("Sending you to a page appropriate for screen resolution 800x600."); document.location = "index800x600.html"; } else if (screen.width <= 1024) { alert("Sending you to a page appropriate for screen resolution 1024x768."); document.location = "index1024x768.html"; } else if (screen.width <= 1152) { alert("Sending you to a page appropriate for screen resolution 1152x864."); document.location = "index1152x864.html"; } else if (screen.width >= 1152) { alert("Sending you to a page appropriate for screen resolution bigger than 1152x864."); document.location = "index_largest.html"; } </script> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.