Hi leudde
naja der betreff meines postings sagts schon fast
ich suche ein script das automatisch die auflösung von 800x600 oder 1024x768 wählt und dann dementsprechend auf die richtige seite weiterleitet. wär nett wenn ihr mir helfen könnt
mfg
stefan
<HTML><P align="center">
<head><script language="JavaScript1.2" type="text/javascript">
<!--
function Umleitung()
{
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 = '800x600/index.htm';
else if (FBreite < 800 && FHoehe < 550)
self.location.href = '800x600/index.htm';
else if (FBreite < 1024 && FHoehe < 700)
self.location.href = '1024x768/index.htm';
else
self.location.href = '1024x768/index.htm';
}
// -->
</script>
</head>
<body bgcolor='#FFFFFF'onLoad="Umleitung()" >
Ihre Bildschirmauflösung wird festgestellt ... bitte warten!
<P align="center"><a href="800x600/index.htm">800x600</a>
<P align="center"><a href="1024x768/index.htm">1024x768</a>
</body></html>