Resolution Independent Layout - Home

Javascript code:

 

/* Author: Francesco Galgani
This script changes "body.style.zoom" according to the screen resolution. You can freely distribute this script. Please don't remove any comment. See more details on:
http://digilander.libero.it/indipendent_res/
*/

window.onload = check_width

function check_width() {
var correctwidth=800;

// You can personalize "correctwidth" according to your layout.

if (screen.width!=correctwidth) {
document.body.style.zoom = screen.width / correctwidth;
}
}