Ciao ciao,
ho usato questo JS per aprire le popup (lo so, ma il cliente la fa da padrone) al click di un link.
Codice PHP:
function apriFinestra( __href, __width, __height )
{
var _xPos = (screen.width - __width) / 2;
var _yPos = (screen.height - __height) / 2;
var _conf = "width=" + __width + ",height=" + __height +
",left=" + _xPos + ",top=" + _yPos +
",screenX=" + _xPos + ",screenY=" + _yPos +
" ,scrollbars=no,status=no,location=no,toolbar=no,resizable=no";
return window.open( __href, "_blank", _conf );
}
Con al tag <a> ho associato:
Codice PHP:
onClick="apriFinestra( 'popup/eno-raboso.html', 500, 600 );"
Ok con IE, bello con FF, mamma mia con Opera!
Ma con Safari non mi apre un cacchio.
Consigli?
Grassie,
goat