Ciao, fino ad ora ho usato per fare i fullscreen questo javascript:
var platform;
var browser;
var window_size;
var mode;
var w = screen.width - 12;
var h = screen.height - 31;
var file_path = "01.htm"+window.location.search;
//alert(file_path+" file_path");
if(navigator.userAgent.indexOf('Win') == -1) {
platform = 'MAC';
} else {
platform = 'WIN';
}
if(navigator.appName.indexOf('Netscape') == -1) {
browser = 'IE';
} else {
browser = 'NN';
}
function openWindow(arg){
mode = arg;
if(platform == 'WIN' && browser == 'IE'){
if (mode == 'fullscreen') {
DieDi=window.open(file_path,"DieDi","scrollbars=no ,resizable=no,location=no,menubar=no,status=no,ful lscreen=yes");
} else if (mode == 'pop_up'){
w = screen.width;
h = screen.height - 25;
DieDi=window.open(file_path,"DieDi","scrollbars=no ,resizable=no,location=no,menubar=no,status=no,lef t=0,top=0");
DieDi.resizeTo(w,h);
}
} else if (platform == 'MAC' && browser == 'IE'){
h = screen.height - 35;
w = screen.width;
DieDi=window.open(file_path,"DieDi","scrollbars=no ,resizable=no,location=no,menubar=no,status=no,lef t=0,top=0");
DieDi.resizeTo(w,h);
} else if (platform == 'MAC' && browser == 'NN'){
h = screen.height - 54;
window_size = "width=" + w + ",height=" + h +",innerWidth=" + w + ",innerHeight=" + h;
DieDi=window.open(file_path,"DieDi","scrollbars=no ,resizable=no,location=no,menubar=no,status=no," + window_size);
DieDi.moveTo(0,0);
} else if ( platform == 'WIN' && browser == 'NN'){
window_size = "width=" + w + ",height=" + h +",innerWidth=" + w + ",innerHeight=" + h;
DieDi=window.open(file_path,"DieDi","scrollbars=no ,resizable=no,location=no,menubar=no,status=no," + window_size);
DieDi.moveTo(0,0);
}
}
nell'html
apri1
se avessi due o piu' pulsanti di apertura e quindi 2 o più pagine da aprire in fullscreen?
Diciamo come avviene su http://www.ysl.com/ anche se qui è in flash