½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
happycgi
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > JAVASCRIPT > javascript ¼Ò½ºÃ¢°í > À©µµ¿ìâ°ü·Ã > »õâ¿­±â (Open Window) »ó¼¼Á¤º¸
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
Javascript
PHP
html
asp
mysql
CSS
mobile
jquery
image
slide
�޴�
������Ʈ
¸Þ´º
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
»õâ¿­±â (Open Window)
¼Ò½ºÅë°èÁ¤º¸ ¿À·ù½Å°í ¹× ¹®ÀÇ
ÇØÇÇÆÀ
³×ƼÁð
Æ®À§ÅÍ·Î º¸³»±â ÆäÀ̽ººÏÀ¸·Î º¸³»±â
¼Ò½ººÐ·ù À©µµ¿ìâ°ü·Ã
´Ù¿î·Îµå Ƚ¼ö 1135 ȸ
°£´Ü¼³¸í »õâ¿­±âÀÇ ´Ù¸¥ Çü½ÄÀ¸·Î ¸¸µé¾îÁø ½ºÅ©¸³´Ï´Ù.
Æò°¡Çϱâ ÈǸ¢ÇÔ ¸Å¿ìÁÁÀ½ ÁÁÀ½ ±¦ÂúÀ½ º¸Åë º°·Î
ȨÆäÀÌÁö¹Ù·Î°¡±â ¼Ò½º´Ù¿î·Îµå µ¥¸ð ¹Ì¸®º¸±â ½ºÅ©·¦Çϱâ

[ JS ]

/**
*
*  Javascript open window
http://www.webtoolkit.info/
*
**/

function openWindow(anchor, options) {

 var args = '';

 if (typeof(options) == 'undefined') { var options = new Object(); }
 if (typeof(options.name) == 'undefined') { options.name = 'win' + Math.round(Math.random()*100000); }

 if (typeof(options.height) != 'undefined' && typeof(options.fullscreen) == 'undefined') {
  args += "height=" + options.height + ",";
 }

 if (typeof(options.width) != 'undefined' && typeof(options.fullscreen) == 'undefined') {
  args += "width=" + options.width + ",";
 }

 if (typeof(options.fullscreen) != 'undefined') {
  args += "width=" + screen.availWidth + ",";
  args += "height=" + screen.availHeight + ",";
 }

 if (typeof(options.center) == 'undefined') {
  options.x = 0;
  options.y = 0;
  args += "screenx=" + options.x + ",";
  args += "screeny=" + options.y + ",";
  args += "left=" + options.x + ",";
  args += "top=" + options.y + ",";
 }

 if (typeof(options.center) != 'undefined' && typeof(options.fullscreen) == 'undefined') {
  options.y=Math.floor((screen.availHeight-(options.height || screen.height))/2)-(screen.height-screen.availHeight);
  options.x=Math.floor((screen.availWidth-(options.width || screen.width))/2)-(screen.width-screen.availWidth);
  args += "screenx=" + options.x + ",";
  args += "screeny=" + options.y + ",";
  args += "left=" + options.x + ",";
  args += "top=" + options.y + ",";
 }

 if (typeof(options.scrollbars) != 'undefined') { args += "scrollbars=1,"; }
 if (typeof(options.menubar) != 'undefined') { args += "menubar=1,"; }
 if (typeof(options.locationbar) != 'undefined') { args += "location=1,"; }
 if (typeof(options.resizable) != 'undefined') { args += "resizable=1,"; }

 var win = window.open(anchor, options.name, args);
 return false;

}


[ HTML ]


[¿É¼Çµé]//////////////////////////////////////////////////////////////////////
width:°ª
height:°ª
center:true;
fullscreen:true;
scrollbars:true;
menubars:true;
locationbar:true;
resizable:true;
////////////////////////////////////////////////////////////////////////////////////

<a href="http://www.happycgi.com" title="À¥ÇÁ·Î±×·¥ ¹«·á¼Ò½º õ±¹"
onclick="return openWindow(this, {width:960,height:450,center:true,scrollbars:true})">
ÇØÇÇCGI »õâ¿­±â
</a>


³×ƼÁð ÀÇ°ß   ÀÌ¿ëÇϽŠÀÚ·áÀÇ Èı⸦ ÀÚÀ¯·Ó°Ô ÀÛ¼ºÇϼ¼¿ä. (»ó¾÷ÀûÀÎ ±¤°í ¹× µµ¹è¼º ±Û µîÀº »çÀüÅ뺸¾øÀÌ »èÁ¦µÉ ¼ö ÀÖ½À´Ï´Ù.)
³»¿ë ¾ÆÀ̵ð ÀÇ°ß³²±â±â
µî·ÏµÈ ÀÇ°ßÀÌ ¾ø½À´Ï´Ù.
1
À̸§
³»¿ë
:³×¸Â¾Æ¿ä: :È­³ª´Â±º¿ä: :Àá¿Í: :¿ì¿ïÇØ: :À̰ǾƳÄ: :¿ÕÇÏÇÏ: ¿Õ¿ôÀ½~ ³î·¥~
Æò°¡Çϱâ ÈǸ¢ÇÔ ¸Å¿ìÁÁÀ½ ÁÁÀ½ ±¦ÂúÀ½ º¸Åë º°·Î
µµ¹è¹æÁöÅ°
 10491134 º¸ÀÌ´Â µµ¹è¹æÁöÅ°¸¦ ÀÔ·ÂÇϼ¼¿ä.