Popup Mac
Jeg har nedenstående code der åbner en calender i et popup, kan man tilføje noget kode så den åbner en anden størrelse på mac?function PopWin(url,h,w) { var ww = 480, wh = 340, leftPos = null, topPos = null;
IE=(document.all)?true:false;
var wh = (IE)?document.body.clientHeight : window.innerHeight;
var ww = (IE)?document.body.clientWidth : window.innerWidth;
if (top.screen){
if (screen.width){
leftPos = Math.round((ww-w-10)/2);
topPos = Math.round((wh-h-29)/2);
} else {
leftPos = 50
topPos = 50
}
}
popupWin = window.open(url, '1', 'height=' + h + ',width=' + w + ',top=' + topPos + ',left=' + leftPos + '')
}
// -->
<!-- Script that find out what month it is, and when you press the calender image it will open it for the correct month -->
function aabnKalenderVindue() {
var months = new Array("Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec");
var d = new Date();
var data = months[d.getMonth()] + d.getFullYear();
PopWin("calender/"+data+".htm", 800, 800);
}
