Jump to content

question about resolution?


desjardins2010

Recommended Posts

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?

Link to comment
Share on other sites

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>

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.