¼Ò½º
<script language="JavaScript">
<!--
// »õâ ¿±â
function openPopup(sUrl, nWidth, nHeight, sOption){ // openPopup1('ÁÖ¼Ò', ³Êºñ, ³ôÀÌ, ¿É¼Ç)
var tmp = '';
tmp += 'width=' + nWidth + ',height=' + nHeight + ',top=' + (screen.availHeight - nHeight-50)/2 + ', left=' + (screen.availWidth - nWidth-10)/2 + ' ,';
if(sOption == null){
tmp += 'status=yes, menubar=no, scrollbars=no, resizable=no, toolbar=no';
}
else if(sOption == 'set1'){
tmp += 'status=yes, menubar=no, scrollbars=yes, resizable=yes, toolbar=no';
}
else{
tmp += sOption;
}
window.open(sUrl, '', tmp);
}
//-->
</script>
1024 * 768 »çÀÌÁî·Î ½ºÅ©·Ñ¹Ù ¾øÀÌ ¿±â<br>
<input type="button" value=" Ŭ ¸¯ " onclick="openPopup('http://superkts.tistory.com/', 1024, 768)"><br>
<br>
1024 * 768 »çÀÌÁî·Î ½ºÅ©·Ñ¹Ù ÀÖ°Ô ¿±â<br>
<input type="button" value=" Ŭ ¸¯ " onclick="openPopup('http://superkts.tistory.com/', 1024, 768, 'set1')"><br>
|