Ho provato - sulla base di varie ricerche - a fare questa modifica al codice JS:
Codice PHP:
var leftprop, topprop, screenX, screenY, cursorX, cursorY, padAmt
if(navigator.appName == "Microsoft Internet Explorer") {
screenY = document.body.offsetHeight screenX = window.screen.availWidth
} else {
screenY = screen.height;
screenX = screen.width;
}
cursorX = evnt.screenX
cursorY = evnt.screenY
padAmtX = 10
padAmtY = 10
if((cursorY + height + padAmtY) > screenY) {
padAmtY = (-30) + (height*-1);
}
if((cursorX + width + padAmtX) > screenX) {
padAmtX = (-30) + (width*-1);
}
if(navigator.appName == "Microsoft Internet Explorer") {
leftprop = cursorX + padAmtX
topprop = cursorY + padAmtY
} else {
leftprop = (cursorX - pageXOffset + padAmtX)
topprop = (cursorY - pageYOffset + padAmtY)
}
if (!this.dt_current) return;
var obj_calwindow = window.open('calendar.html?datetime=' + this.dt_current.valueOf()+ '&id=' + this.id,'Calendar', 'width=200,height='+(this.time_comp ? 215 : 190)+',status=no,resizable=no,toolbar=no,top='+topprop+',left='+leftprop+',dependent=yes,alwaysRaised=yes');
ma non funziona, non si aprono proprio più le popup!!!