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
https://forums.phpfreaks.com/topic/221245-question-about-resolution/
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>

 

Archived

This topic is now archived and is closed to further replies.

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