ved resize, reload siden
Som der står i titlen; hvordan kan jeg få følgende script til at reloade ved resize af vinduet?<html>
<head>
</head>
<body>
<script language="JavaScript">
n = (document.layers) ? 1:0
ie = (document.all) ? 1:0
if (n) {
windowWidth = window.innerWidth-16
windowHeight = window.innerHeight
}
if (ie) {
windowWidth = document.body.offsetWidth-20
windowHeight = document.body.offsetHeight
}
document.writeln('<style type="text/css">');
document.writeln('<\!--');
document.writeln('#vert {position:absolute; left:'+(windowWidth/2-160/2)+'; top:'+(windowHeight/2-45/2)+'; width:160; height:45; clip:rect(0,160,45,0); background-color:#C0C0C0; layer-background-color:#C0C0C0;}');
document.writeln('-->');
document.writeln('</STYLE>');
</script>
<div id="vert">
Hvordan får man vinduet til at reloade ved resize?
</div>
</body>
</html>
