Hallo!
Ich habe mir ein Script gemacht, aber irgendwie funktioniert es nicht. Ich habe eine Auflösung von 1280 und dennoch wird die Seite diagnose.htm aufgerufen! Was habe ich falsch gemacht? Ich hoffe, dass mir jemand helfen kann!
Hier das Script:
<script language=javascript>
function Diagnose()
{
if (window.screen)
{
if (screen.width >= "1024")
window.location.href = "index1024.htm";
if (screen.width >= "1280")
window.location.href = "index1280.htm";
if (screen.width >= "800")
window.location.href="index800.htm";
if (screen.width <= "800")
alert('Achtung!!! Ihre Auflösung liegt unter 800*600 Pixel!!! In dieser Auflösung ist es nicht gewährleistet, dass die Website fehlerfrei dargestellt wird. Bitte erhöhen Sie Ihre Auflösung wenigstens auf 800*600 Pixel!!!');
window.location.href="diagnose.htm";
}
else
window.location.href="diagnose.htm";
}
</script>
Danke für die Hilfe!
Bye, Matthias