 |
|
|  |
|
 |
13³â Àü |
<head>
<style>
<!--
A:link {color:blue;text-decoration:none}
A:visited {color:blue;text-decoration:none}
A:active {text-decoration:none}
A:hover {color:#3366ff;text-decoration:none;}
-->
</style>
<script language="javascript">
<!--
function code_view() {
// °¢ ÆûÀÇ ÀԷ°ªÀ» ÀоîµéÀÓ
var value_a = document.gen_popup.code_name.value;
var value_b = document.gen_popup.page_path.value;
var value_c = document.gen_popup.popup_name.value;
var value_d = document.gen_popup.width_size.value;
var value_e = document.gen_popup.height_size.value;
var value_f = document.gen_popup.left_size.value;
var value_g = document.gen_popup.top_size.value;
var value_h = document.gen_popup.scroll_ynn.options[document.gen_popup.scroll_ynn.selectedIndex].value;
var value_i = document.gen_popup.resize_ynn.options[document.gen_popup.resize_ynn.selectedIndex].value;
var value_j = document.gen_popup.fun_name.value;
// °¢ üũ¹Ú½ºÀÇ Ã¼Å©¸¦ ÀоîµéÀÓ
var check_a = document.gen_popup.tool_cnu.checked;
var check_b = document.gen_popup.loca_cnu.checked;
var check_c = document.gen_popup.stat_cnu.checked;
var check_d = document.gen_popup.menu_cnu.checked;
// check_a°¡ üũ»óŶó¸é
if(check_a == true)
var opt_a = ',toolbar=yes'; // Åø¹Ù¸¦ »ç¿ëÇÏ°í
else // ¾ðüũ »ó·¡¶ó¸é
var opt_a = ''; // Åø¹Ù¸¦ »ç¿ëÇÏÁö ¾Ê´Â´Ù.
if(check_b == true)
var opt_b = ',location=yes'; // ÁÖ¼ÒâÀ» »ç¿ë
else
var opt_b = '';
if(check_c == true)
var opt_c = ',status=yes'; // »óŹٸ¦ »ç¿ë
else
var opt_c = '';
if(check_d == true)
var opt_d = ',menubar=yes'; // ¸Þ´º¹Ù¸¦ »ç¿ë
else
var opt_d = '';
// Æ˾÷ Äڵ带 »ý¼ºÇÏ´Â ºÎºÐ
this_code = '<script language="javascript">\n';
this_code += 'function '+value_j+'() {\n';
this_code += '\t'+value_a+' = window.open(\''+value_b+'\',\''+value_c+'\',\'width='+value_d+',height='+value_e+',left='+value_f+',top='+value_g+',scrollbars='+value_h+',resizable='+value_i+''+opt_a+opt_b+opt_c+opt_d+'\');\n';
this_code += '}\n';
this_code += '</script>\n';
this_code += '<a href=javascript:'+value_j+'();>⿱â</a>\n';
this_code += '<input type="button" value="⿱â" onclick="'+value_j+'();">\n';
this_code += '<input type="button" value="â´Ý±â" onclick="window.'+value_a+'.close();">\n';
// ¹Ì¸®º¸±â, Äڵ庹»ç ¹öÆ°À» È°¼ºÈ ½ÃÅ´
document.gen_popup.p_v.disabled = false;
document.gen_popup.c_c.disabled = false;
// Æ˾÷ Äڵ带 »ý¼ºÇÏ´Â ºÎºÐ¿¡ ÀûÇôÁø Äڵ带 textarea¿¡ º¹»çÇÔ
document.gen_popup.view_code.value = this_code;
}
function prev_view() {
temp = document.forms[0].view_code.value;
preWindow= open("", 'new_window','width=300,height=300,top=100,left=300,toolbar=1,status=1,menubar=1,scrollbars=1,resizable=1,copyhistory=no');
preWindow.document.open();
preWindow.document.write(temp);
preWindow.document.close();
}
function dis_pv() {
// ¹Ì¸®º¸±â, Äڵ庹»ç ¹öÆ°À» ºñÈ°¼ºÈ ½ÃÅ´
document.gen_popup.p_v.disabled = true;
document.gen_popup.c_c.disabled = true;
}
function copy_code() {
// textareaÀÇ Äڵ带 Ŭ¸³º¸µå·Î º¹»çÇÏ´Â ºÎºÐ
var tempval=eval("document.gen_popup.view_code");
tempval.focus();
tempval.select();
therange=tempval.createTextRange();
therange.execCommand("Copy");
alert('¼Ò½º¸¦ Ŭ¸³º¸µå¿¡ º¹»çÇß½À´Ï´Ù.'); // º¹»ç ¿Ï·á½Ã ¸Þ¼¼Áö
}
//-->
</script>
</head>
<body bgcolor="#CCCCCC">
<!-- Æû ±¸¼º ºÎºÐ //-->
<form name="gen_popup">
<table border="0" width="500" cellspacing="0" cellpadding="0" align="center">
<tr>
<th width="500" colspan="2"><font color="blue"><a href="http://xtx.kr">Æ˾÷ÄÚµå »ý¼º±â</a></font></th>
</tr>
<tr>
<th width="80"><span style="font-size:10pt;"><font color="#333333">°æ·Î</font></span></th>
<td width="420"><input type="text" name="page_path" size="56"></td>
</tr>
<tr>
<th width="80"><span style="font-size:10pt;"><font color="#333333">°¡·ÎÅ©±â</font></span></th>
<td width="420"><input type="text" name="width_size"> </td>
</tr>
<tr>
<th width="80"><span style="font-size:10pt;"><font color="#333333">¼¼·ÎÅ©±â</font></span></th>
<td width="420"><input type="text" name="height_size"></td>
</tr>
<tr>
<th width="80"><span style="font-size:10pt;"><font color="#333333">ÁÂÃøÀ§Ä¡</font></span></th>
<td width="420"><input type="text" name="left_size"></td>
</tr>
<tr>
<th width="80"><span style="font-size:10pt;"><font color="#333333">»ó´ÜÀ§Ä¡</font></span></th>
<td width="420"><input type="text" name="top_size"></td>
</tr>
<tr>
<th width="80"><span style="font-size:10pt;"><font color="#333333">½ºÅ©·Ñ¹Ù</font></span></th>
<td width="420"><select name="scroll_ynn">
<option value="no">¾ø¾Ö±â
</option>
<option value="yes">º¸À̱â
</option>
</select></td>
</tr>
<tr>
<th width="80"><span style="font-size:10pt;"><font color="#333333">Å©±âÁ¶Àý</font></span></th>
<td width="420"><select name="resize_ynn">
<option value="no">ºÒ°¡
</option>
<option value="yes">°¡´É
</option>
</select>
<input type="hidden" name="fun_name" value="tagin_popup">
<input type="hidden" name="popup_name" value=tagin_window>
<input type="hidden" name="code_name" value=tagin_net>
</td>
</tr>
<tr>
<th colspan="2" width="500">
<span style="font-size:10pt;"><input type="checkbox" name="tool_cnu">Åø¹Ù
<input type="checkbox" name="loca_cnu">¿¬°á¹Ù
<input type="checkbox" name="stat_cnu">»óŹÙ
<input type="checkbox" name="menu_cnu">¸Þ´º¹Ù
</span></th>
</tr>
<tr>
<td colspan="2" align="center" width="500">
<p><input type="button" value="Äڵ庸±â" onclick="code_view();">
<input type="button" value="¹Ì¸®º¸±â" onclick="prev_view();" name="p_v" disabled>
<input type="button" value="Äڵ庹»ç" onclick="copy_code();" name="c_c" disabled>
<input type="reset" value="ÃʱâÈ" onclick="dis_pv();">
<INPUT name=" Restart " onclick="window.location='http://tagin.net'; return true;" type=reset value=ű×ÀγÝ>
</p>
</td>
</tr>
<tr>
<td colspan="2" width="500"><textarea name="view_code" cols="68" rows="10"></textarea></td>
</tr>
</table>
</form> |
|
̵̧ : 537 |
̵̧
¸ñ·Ï
|
|
|  |
|