Bildschirmauflösung-Weiche

Folgende Routine verzweigt je nach verwendeter Bildschirmauflösung des
Browsers zu einer, für diese Auflösung optimierte, Html-Seite.


<script language="Javascript"><!--
if (screen.width < 641) {
document.location = "640x480.htm";
}
else if (screen.width < 801) {
document.location = "800x600.htm";
}
else if (screen.width < 1025) {
document.location = "1024x768.htm";
}
if (screen.width > 1024) {
document.location = "1024plus.htm";
}
//-->
</script

Weitere Texte im Textarchiv 7     Kommentar zum Text im Forum abgeben