Malte1019: Auflösung optimieren

Beitrag lesen

hallo,

folgende datei ist eine möglichkeit:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>resolution</title>
<script type="text/javascript"><!--
function resindex()
{
var FBreite = 0;
var FHoehe = 0;
if (document.all) {
FBreite = document.body.clientWidth;
FHoehe = document.body.clientHeight;
}
else if (document.layers) {
FBreite = window.innerWidth;
FHoehe = window.innerHeight;
}
if (FBreite < 640 || FHoehe < 450)
self.location.href = '640_und_niedriger_Datei.html';
else if (FBreite < 800 && FHoehe < 550)
self.location.href = '800_und_niedriger_datei.html';
else if (FBreite < 1024 && FHoehe < 700)
self.location.href = '1024_und_höher_datei.html';
else
self.location.href = '1024_und_höher_datei.html';
}
// --></script>
<body onload="resindex()">
hinweise für user mit de-aktiviertem JavaScript...
</body>
</html>

Malte