Molokyle: skal denne browsersniffing sættes ind alle steder ?
Og det skal være på en ny side at siden skal være mindre, synes ikke at det fungerer helt endnu, den fylder hele siden, her er det:
<html>
<head>
<meta http-equiv="Content-Language" content="da">
<meta http-equiv="Content-Type" content="text/html; charset=windows-500">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Behandling 1</title>
</head>
<script type="text/javascript" language="javascript">
<!--
function expandingWindow(website,x_dim,y_dim) {
var heightspeed = 8; // vertical scrolling speed (higher = slower)
var widthspeed = 8; // horizontal scrolling speed (higher = slower)
var leftdist = (screen.width - x_dim) / 2;
var topdist = (screen.height - y_dim) / 2;
if (document.all) {
var winwidth = window.screen.availWidth - (window.screen.availWidth - x_dim);
var winheight = window.screen.availHeight - (window.screen.availHeight - y_dim);
var sizer = window.open("","","left=" + leftdist + ",top=" + topdist +
",width=1,height=1,location=yes,menubar=yes,scrollbars=yes,status=yes,titlebar=yes,
resizable=yes,toolbar=yes");
for (sizeheight = 1; sizeheight < winheight; sizeheight += heightspeed) {
sizer.resizeTo("1", sizeheight);
}
for (sizewidth = 1; sizewidth < winwidth+widthspeed; sizewidth +=
widthspeed) {
sizer.resizeTo(sizewidth, sizeheight);
}
sizer.location = website;
}
else
window.location = website;
}
//-->
</SCRIPT>
<body>
<a href="
http://dmi.dk" onClick="expandingWindow
('
http://dmi.dk',340,180);return false;">DMI 340 x 180</a>
</body>
</html>