Hallo Mathias,
also irgendwie schnall ich das nicht.
Auch nachfolgender Code funktioniert nicht mit IE7.0.
[code=html]<!-- DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd" -->
<html><head>
<title>Größenänderung überwachen</title>
<script type="text/javascript">
var x,y;
if (self.innerHeight) // all except Explorer
{
x = self.innerWidth;
y = self.innerHeight;
}
else if (document.documentElement && document.documentElement.clientHeight)
// Explorer 6 Strict Mode
{
x = document.documentElement.clientWidth;
y = document.documentElement.clientHeight;
}
else if (document.body) // other Explorers
{
x = document.body.clientWidth;
y = document.body.clientHeight;
}
document.write (x + ' x ' + y)
</script>
</body></html>[/code]