// fullScreen method var myBrowser; // 横の余裕 var MARGINX = 0; // ウインドウのサイズ //var WINWIDTH = 1024; var WINWIDTH = 1024; var WINHEIGHT = 768; //var WINHEIGHT = 68; if(navigator.platform){ myBrowser=new Browser((parseInt(navigator.appVersion.charAt(0)) >= 4),(navigator.platform.indexOf('Win32') != -1),(navigator.appName.indexOf('Microsoft') != -1)); } function Browser(version,platform,type){ this.version=version; this.platform=platform; this.type=type; } var window_size; function openWindow(url){ var newwin; if(!url) url='main.html'; if(myBrowser.version){ if(myBrowser.type){ //IEの場合 if(myBrowser.platform){ //WIN IEの場合 if(navigator.appVersion.indexOf("MSIE 7") != -1){ // IE7 newwin=window.open(url,"main_win","resizable=yes,menubar=no,left=0,top=0"); WINHEIGHT = 750; }else{ // IE7以外 newwin=window.open(url,"main_win","resizable=yes,location=no,menubar=no,status=no,scrollbars=yes,left=0,top=0"); } if(WINHEIGHT>screen.availHeight){ WINHEIGHT = screen.availHeight; } newwin.resizeTo(WINWIDTH,WINHEIGHT); }else{ //Mac IEの場合 newwin=window.open(url,"main_win","resizable=yes,location=no,menubar=no,status=no,scrollbars=yes,left=0,top=0"); newwin.resizeTo(WINWIDTH,WINHEIGHT); } }else{ //IE以外の場合 //var thisWinWidth=screen.availWidth-MARGINX; //var thisWinHeight=screen.availHeight-30; if(WINHEIGHT>screen.availHeight){ WINHEIGHT = screen.availHeight; } window_size = "width=" + WINWIDTH + ",height=" + WINHEIGHT +",innerWidth=" + WINWIDTH + ",innerHeight=" + WINHEIGHT; newwin=window.open(url,"main_win","resizable=yes,location=no,menubar=no,status=no,scrollbars=yes," + window_size); // newwin.moveTo(0,0); } newwin.focus(); } }