2694 Tipps & Tricks
Kategorie: Programmieren / Java Script Tipp im neuen Fenster anzeigen
automatische Bildschirmauflösung (627 x gelesen)

<html>
<head>
<title>zur Seite springen</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
</head>
<script language="JavaScript">
<!--
ScreenRes = screen.width;
if(ScreenRes == "1280") res = "r1";
else if (ScreenRes == "1024") res = "r2";
else if (ScreenRes == "800") res = "r3";
else if (ScreenRes == "640") res = "r4";

if (res == "r1") {
    location.href="1280.html";
    }
if (res == "r2") {
    location.href="1024.html";
    }
if (res == "r3") {
    location.href="800.html";
    }
if (res == "r4") {
    location.href="640.html";
    }
//-->
</script>

<body>
</body>
</html>
Es wird keine Verantwortung übernommen. Die Benutzung erfolgt auf eigene Gefahr.
alle Tipps & Tricks
Validator XHTML + CSS ® 2012   GADDO.DE   BAR-GAMES.DE