// ********************************************************* // 関数 // IE6 : OK // Firefox : OK // Opera : 内部ウインドウが最大化されていない場合に // Opera 内でのみ動作します // IE7 : 未確認 // ********************************************************* function doAction( nType ) { window.focus(); var nWidth; var nHeight; switch( nType ) { case 1: nWidth = 400; nHeight = 400; window.resizeTo(nWidth, nHeight); if (window.navigator.appName.toLowerCase().indexOf("microsoft") <= -1) { window.moveBy(0, 0); } window.moveTo(0, 0); break; case 2: nWidth = 400; nHeight = 400; window.resizeTo(nWidth, nHeight); if (window.navigator.appName.toLowerCase().indexOf("microsoft") <= -1) { window.moveBy(top.screen.width-nWidth, 0); } window.moveTo(top.screen.width-nWidth, 0); break; case 3: nWidth = 400; nHeight = 400; window.resizeTo(nWidth, nHeight); if (window.navigator.appName.toLowerCase().indexOf("microsoft") <= -1) { window.moveBy(0, top.screen.height-nHeight-32); } window.moveTo(0, top.screen.height-nHeight-32); break; case 4: nWidth = 400; nHeight = 400; window.resizeTo(nWidth, nHeight); if (window.navigator.appName.toLowerCase().indexOf("microsoft") <= -1) { window.moveBy(top.screen.width-nWidth, top.screen.height-nHeight-32); } window.moveTo(top.screen.width-nWidth, top.screen.height-nHeight-32); break; case 5: if (window.navigator.appName.toLowerCase().indexOf("microsoft") <= -1) { window.moveBy(0, 0); } else { window.moveTo(0, 0); } nWidth = top.screen.width; nHeight = top.screen.height-32; window.resizeTo(nWidth, nHeight); window.moveTo(0, 0); break; } }