묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
IE8 에서 셀렉트박스 오류
2010.03.24 00:13
------셀렉트박스 태그부분----------
<table border=0 width=<?=$width?> cellpadding="0" cellspacing="0">
<col width=100><col width=></col><col width=20></col>
<tr>
<td><img src="<?=$dir?>/images/mid_left_100_32.gif border=0></td>
<td background=<?=$dir?>/images/mid_center_5_32.gif><img src=<?=$dir?>/images/mid_center_5_32.gif border=0></td>
<td><img src=<?=$dir?>/images/mid_right_20_32.gif border=0></td>
</tr>
</table>
<table border=0 cellsapcing=1 cellpadding=0 cellspacing="1" width=<?=$width?> style=table-layout:fixed >
<col width=80></col><col width=></col><col width=80></col><col width=></col>
<tr>
<td bgcolor=#E7E7E7 style=padding-top:5px;padding-bottom:5px;padding-left:5px; class=list_han>참가부문</td>
<td bgcolor=#F7F7F7 style=padding-top:5px;padding-bottom:5px;padding-left:5px; class=list_eng>
<SELECT size=1 name="subject4">
<?
if ($subject4){
echo "<option selected value=$subject4 class=input_search>$subject4</option>";
} else {
echo "<option selected value=선택하세요 class=input_search>선택하세요</option>";
}
?>
<OPTION value=초등부1.2학년>초등부1.2학년</OPTION>
<OPTION value=초등부3.4학년>초등부3.4학년</OPTION>
<OPTION value=초등부5.6학년>초등부5.6학년</OPTION>
<OPTION value=중등부>중등부</OPTION>
<OPTION value=고등부>고등부</OPTION>
<OPTION value=대학부>대학부</OPTION>
<OPTION value=일반부>일반부</OPTION>
</SELECT></td>
--------자바스크립트 부분------------
<?
$m_memo = explode("|",$memo);
$bsno == $m_memo[0];
$gooda = $m_memo[1];
$goodb = $m_memo[2];
$goodc = $m_memo[3];
$goodd = $m_memo[4];
$goode = $m_memo[5];
$goodf = $m_memo[6];
$goodg = $m_memo[7];
$goodh = $m_memo[8];
$goodi = $m_memo[9];
$goodj = $m_memo[10];
$goodk = $m_memo[11];
$goodl = $m_memo[12];
$goodm = $m_memo[13];
$goodn = $m_memo[14];
$goodo = $m_memo[15];
$goodp = $m_memo[16];
$goodq = $m_memo[17];
$goodr = $m_memo[18];
$goods = $m_memo[19];
$goodt = $m_memo[20];
$goodu = $m_memo[21];
$goodv = $m_memo[22];
$goodw = $m_memo[23];
$goodx = $m_memo[24];
$goody = $m_memo[25];
$goodz = $m_memo[26];
$m_subject = explode("|",$subject);
$subject1 = $m_subject[0];
$subject2 = $m_subject[1];
$subject3 = $m_subject[2];
$subject4 = $m_subject[3];
$subject5 = $m_subject[4];
?>
<script language="JavaScript1.2">
var highlightcolor="ffff99"
var ns6=document.getElementById&&!document.all
var previous=''
var eventobj
var intended=/INPUT|TEXTAREA|SELECT|OPTION/;
function checkel(which){
if (which.style&&intended.test(which.tagName)){
if (ns6&&eventobj.nodeType==3)
eventobj=eventobj.parentNode.parentNode
return true
}
else
return false
}
function highlight(e){
eventobj=ns6? e.target : event.srcElement
if (previous!=''){
if (checkel(previous))
previous.style.backgroundColor=''
previous=eventobj
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
}
else{
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
previous=eventobj
}
}
function OpenZipcode()
{
window.open("<?=$dir?>/zipcode/zipcode.php?form=write&zip1=goods&zip2=goodt&address=gooda","zipwin","width=520,height=260,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no");
}
var goodb = "";
function InitSaveVariables(form) {
goodb = form.goodb.value;
}
function addressZip(form) {
if (form.goodu.checked) {
InitSaveVariables(form);
form.goodb.value = form.gooda.value;
}
else {
form.goodb.value = goodb;
}
}
window.onerror=function error_kill() {return true;}
var 사무직관련Array = new Array("('관련 소분류','',true,true)",
"('일반사무')",
"('자료입력')",
"('전산보조')",
"('교육관련')",
"('인터넷관련')");
var 상담직Array = new Array("('관련 소분류','+ '+ '',true,true)",
"('고객관련상담')",
"('상품관련상담')",
"('기타상담')");
var 매장관리_판매직Array = new Array("('관련 소분류','',true,true)",
"('매장업무')",
"('백화점')",
"('할인점')",
"('24시편의점')",
"('패스트푸드')",
"('PC방')",
"('노래방')",
"('커피숍')",
"('보드게임방')",
"('찜질방')",
"('기타')");
var 서빙_서비스Array = new Array("('관련 소분류','',true,true)",
"('홀서빙')",
"('바텐더')",
"('주방보조')",
"('도우미')",
"('베이비시터')",
"('학습 및 영어시터')",
"('산모도우미')",
"('실버시터')",
"('기타')");
var 생산_배달_단순직Array = new Array("('관련 소분류','',true,true)",
"('배달업무')",
"('배송업무')",
"('주차요원')",
"('주유안내원')",
"('생산업무')",
"('현장관리')",
"('공사현장')",
"('+ '전단지배포')",
"('기타')");
var 기타직종Array = new Array("('관련 소분류','',true,true)",
"('보안/경비업무')",
"('운전/대리운전')",
"('기타')");
var 전문직Array = new Array("('관련 소분류','',true,true)",
"('호텔/숙박')",
"('+ '건축설계/인테리어')",
"('번역/통역')",
"('만화/이미지편집')",
"('경리/회계/재무')",
"('이벤트/나래이터')",
"('포장이사')",
"('기타')");
function populategoode(inForm,selected) {
var selectedArray = eval(selected + "Array");
while (selectedArray.length < inForm.goode.options.length) {
inForm.goode.options[(inForm.goode.options.length - 1)] = null;
}
for (var i=0; i < selectedArray.length; i++) {
eval("inForm.goode.options[i]=" + "new Option" + selectedArray[i]);
}
if (inForm.job.options[0].value == '') {
inForm.job.options[0]= null;
if ( navigator.appName == 'Netscape') {
if (parseInt(navigator.appVersion) < 4) {
window.history.go(0);
}
else {
if (navigator.platform == 'Win32' || navigator.platform == 'Win16') {
window.history.go(0);
}
}
}
}
}
var anoInicial = 2003;
var anoFinal = 2010;
var ano;
var mes;
var dia;
var campoDeRetorno;
var titulo;
nombresMes = Array("","1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월");
function diasDelMes(ano,mes) {
if ((mes==1)||(mes==3)||(mes==5)||(mes==7)||(mes==8)||(mes==10)||(mes==12)) dias=31
else if ((mes==4)||(mes==6)||(mes==9)||(mes==11)) dias=31
else if ((((ano % 100)==0) && ((ano % 400)==0)) || (((ano % 100)!=0) && ((ano % 4)==0))) dias = 29
else dias = 28;
return dias;
};
function crearSelectorMes(mesActual) {
var selectorMes = "";
selectorMes = "<select name='mes' size='1' onChange='+ 'javascript:opener.dibujarMes(self.document.Forma1.ano[self.document.Forma1.ano.selectedIndex].value,self.document.Forma1.mes[self.document.Forma1.mes.selectedIndex].value);'>\r\n";
for (var i=1; i<=12; i++) {
selectorMes = selectorMes + " <option value='" + i + "'";
if (i == mesActual) selectorMes = selectorMes + " selected";
selectorMes = selectorMes + ">" + nombresMes[i] + "</option>\r\n";
}
selectorMes = selectorMes + "</select>\r\n";
return selectorMes;
}
function crearSelectorAno(anoActual) {
var selectorAno = "";
selectorAno = "<select name='ano' size='1' onChange='javascript:opener.dibujarMes(self.document.Forma1.ano[self.document.Forma1.ano.selectedIndex].value,self.document.Forma1.mes[self.document.Forma1.mes.selectedIndex].value);'>\r\n";
for (var i=anoInicial; i<=anoFinal; i++) {
selectorAno = selectorAno + " <option value='" + i + "'";
if (i == anoActual) selectorAno = selectorAno + " selected";
selectorAno = selectorAno + ">" + i + "</option>\r\n";
}
selectorAno = selectorAno + "</select>";
return selectorAno;
}
function crearTablaDias(numeroAno,numeroMes) {
var tabla = "<LINK rel='stylesheet' type='text/css' href='+ 'style.css'><table border=0 cellsapcing=1 cellpadding=0 cellspacing=1 width=100% style=table-layout:fixed >\r\n <tr>";
var goodInicio = new Date();
goodInicio.setMonth(numeroMes-1);
goodInicio.setYear(numeroAno);
goodInicio.setDate(1);
ajuste = goodInicio.getDay();
tabla = tabla + "\r\n <td bgcolor=white align='center'>일</td><td bgcolor=white align='center'>월</td><td bgcolor=white align='center'>화</td><td bgcolor=white align='center'>수</td><td bgcolor=white align='center'>목</td><td bgcolor=white align='+ 'center'>금</td><td bgcolor=white align='center'>토</td></div>\r\n <tr>";
for (var j=1; j<=ajuste; j++) {
tabla = tabla + "\r\n <td></td>";
}
for (var i=1; i<10; i++) {
tabla = tabla + "\r\n <td align=center"
if ((i == diaHoy()) && (numeroMes == mesHoy()) && (numeroAno == anoHoy())) tabla = tabla + " bgcolor='#ff0000'";
tabla = tabla + "><input type='button' style='background-color:white; border-width:1px; border-color:rgb(153,153,153); border-style:solid;' value='0" + i + "' onClick='javascript:opener.ano=self.document.Forma1.ano[self.document.Forma1.ano.selectedIndex].value; opener.mes=self.document.Forma1.mes[self.document.Forma1.mes.selectedIndex].value; opener.dia=" + i + "; self.close();'></td>";
if (((i+ajuste) % 7)==0) tabla = tabla + "\r\n </tr>\r\n\ <tr>";
}
for (var i=10; i<=diasDelMes(numeroAno,numeroMes); i++) {
tabla = tabla + "\r\n <td align=center"
if ((i == diaHoy()) && (numeroMes == mesHoy()) && (numeroAno == anoHoy())) tabla = tabla + " bgcolor='#ff0000'";
tabla = tabla + "><input type='button' style='background-color:white; border-width:1px; border-color:rgb(153,153,153); border-style:solid;' value='" + i + "' onClick='javascript:opener.ano=self.document.Forma1.ano[self.document.Forma1.ano.selectedIndex].value; opener.mes=self.document.Forma1.mes[self.document.Forma1.mes.selectedIndex].value; opener.dia=" + i + "; self.close();'></td>";
if (((i+ajuste) % 7)==0) tabla = tabla + "\r\n </tr>\r\n\ <tr>";
}
tabla = tabla + "\r\n </tr>\r\n</table><table><tr><td align=center><img src="<?=$dir?>/popup_img.gif border=0></td></tr></table>";
return tabla;
}
function dibujarMes(numeroAno,numeroMes) {
var html = "";
html = html + "<html>\r\n<head>\r\n <title>" + titulo + "</title>\r\n</head>\r\n<body bgcolor='#F7F7F7' onUnload='opener.escribirgood();'>\r\n <div align='center'>\r\n <form name='Forma1'>\r\n";
html = html + crearSelectorMes(numeroMes);
html = html + crearSelectorAno(numeroAno);
html = html + crearTablaDias(numeroAno,numeroMes);
html = html + "<center><p><input type='button' style='border-width:1px; border-color:rgb(102,102,102); border-style:solid;' name='hoy' value='today: " + ano + "/" + mes + "/" + dia + "' onClick='javascript:self.close();'></center>";
html = html + "\r\n </form>\r\n </div>\r\n</body>\r\n</html>\r\n";
ventana = open("","calendario","width=220,height=270");
ventana.document.open();
ventana.document.writeln(html);
ventana.document.close();
ventana.focus();
}
function anoHoy() {
var good = new Date();
if (navigator.appName == "Netscape") return good.getYear() + 1900
else return good.getYear();
}
function mesHoy() {
var good = new Date();
return good.getMonth()+1;
}
function diaHoy() {
var good = new Date();
return good.getDate();
}
function pedirgood(campoTexto,nombreCampo) {
ano = anoHoy();
mes = mesHoy();
dia = diaHoy();
campoDeRetorno = campoTexto;
titulo = nombreCampo;
dibujarMes(ano,mes);
}
function escribirgood() {
campoDeRetorno.value = ano + "/" + mes + "/" + dia;
}
function commaSplit(srcNumber) {
var txtNumber = '' + srcNumber;
if (isNaN(txtNumber) || txtNumber == "") {
alert("숫자만 입력 하세요");
fieldName.select();
fieldName.focus();
}
else {
var rxSplit = new RegExp('([0-9])([0-9][0-9][0-9][,.])');
var arrNumber = txtNumber.split('.');
arrNumber[0] += '.';
do {
arrNumber[0] = arrNumber[0].replace(rxSplit, '$1,$2');
} while (rxSplit.test(arrNumber[0]));
if (arrNumber.length > 1) {
return arrNumber.join('');
}
else {
return arrNumber[0].split('.')[0];
}
}
}
function OpenZip()
{
window.open("<?=$dir?>/zipcode/zip.php?form=write&zip1=subject3&zip2=goodo&address=goodb","zipwin","width=520,height=260,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no");
}
var goodb = "";
function InitSaveVariables(form) {
goodb = form.goodb.value;
}
function addressZip(form) {
if (form.goodu.checked) {
InitSaveVariables(form);
form.goodb.value = form.goodb.value;
}
else {
form.goodb.value = goodb;
}
}
window.onerror=function error_kill() {return true;}
// -->
</script>
셀렉트박스 화살표 클릭시 아래로 펼쳐진후에 바로 닫혀버립니다..ㅜㅜ
클릭유지한상태로 내용 클릭해도 선택이 안되구요..
박스안에서 마우스 휠이나 화살표로 드래그해야 입력이 가능하게 되버렸습니다..
원하는 IE버전으루 변환시켜주는 메타태그를 써보았지만 안되서 질문드립니다..
<body>
<body oncontextmenu='return false' ondragstart='return false' onselectstart='return false'>
</body>
<table border=0 width=<?=$width?> cellpadding="0" cellspacing="0">
<col width=100><col width=></col><col width=20></col>
<tr>
<form method=post name=write action=good_java.php onsubmit="return check_submit();" enctype=multipart/form-data onClick="highlight(event)">
<input type=hidden name=page value=<?=$page?>>
<input type=hidden name=id value=<?=$id?>>
<input type=hidden name=no value=<?=$no?>>
<input type=hidden name=select_arrange value=<?=$select_arrange?>>
<input type=hidden name=desc value=<?=$desc?>>
<input type=hidden name=page_num value=<?=$page_num?>>
<input type=hidden name=keyword value="<?=$keyword?>">
<input type=hidden name=category value="<?=$category?>">
<input type=hidden name=sn value="<?=$sn?>">
<input type=hidden name=ss value="<?=$ss?>">
<input type=hidden name=sc value="<?=$sc?>">
<input type=hidden name=mode value="<?=$mode?>">
<td><img src="<?=$dir?>/images/top_left_100_32.gif border=0></td>
<td background=<?=$dir?>/images/top_center_5_32.gif ><img src=<?=$dir?>/images/top_center_5_32.gif border=0></td>
<td><img src=<?=$dir?>/images/top_right_20_32.gif border=0></td>
</tr>
</table>
-----이부분을 삭제시켜보니까 글작성완료는 안돼지만 셀렉트박스가 제대로 작동을 해서
혹시나 이부분에 문제가 있는건지...궁금합니다..--- "
<table border=0 width=<?=$width?> cellpadding="0" cellspacing="0">
<col width=100><col width=></col><col width=20></col>
<tr>
<td><img src="<?=$dir?>/images/mid_left_100_32.gif border=0></td>
<td background=<?=$dir?>/images/mid_center_5_32.gif><img src=<?=$dir?>/images/mid_center_5_32.gif border=0></td>
<td><img src=<?=$dir?>/images/mid_right_20_32.gif border=0></td>
</tr>
</table>
<table border=0 cellsapcing=1 cellpadding=0 cellspacing="1" width=<?=$width?> style=table-layout:fixed >
<col width=80></col><col width=></col><col width=80></col><col width=></col>
<tr>
<td bgcolor=#E7E7E7 style=padding-top:5px;padding-bottom:5px;padding-left:5px; class=list_han>참가부문</td>
<td bgcolor=#F7F7F7 style=padding-top:5px;padding-bottom:5px;padding-left:5px; class=list_eng>
<SELECT size=1 name="subject4">
<?
if ($subject4){
echo "<option selected value=$subject4 class=input_search>$subject4</option>";
} else {
echo "<option selected value=선택하세요 class=input_search>선택하세요</option>";
}
?>
<OPTION value=초등부1.2학년>초등부1.2학년</OPTION>
<OPTION value=초등부3.4학년>초등부3.4학년</OPTION>
<OPTION value=초등부5.6학년>초등부5.6학년</OPTION>
<OPTION value=중등부>중등부</OPTION>
<OPTION value=고등부>고등부</OPTION>
<OPTION value=대학부>대학부</OPTION>
<OPTION value=일반부>일반부</OPTION>
</SELECT></td>
--------자바스크립트 부분------------
<?
$m_memo = explode("|",$memo);
$bsno == $m_memo[0];
$gooda = $m_memo[1];
$goodb = $m_memo[2];
$goodc = $m_memo[3];
$goodd = $m_memo[4];
$goode = $m_memo[5];
$goodf = $m_memo[6];
$goodg = $m_memo[7];
$goodh = $m_memo[8];
$goodi = $m_memo[9];
$goodj = $m_memo[10];
$goodk = $m_memo[11];
$goodl = $m_memo[12];
$goodm = $m_memo[13];
$goodn = $m_memo[14];
$goodo = $m_memo[15];
$goodp = $m_memo[16];
$goodq = $m_memo[17];
$goodr = $m_memo[18];
$goods = $m_memo[19];
$goodt = $m_memo[20];
$goodu = $m_memo[21];
$goodv = $m_memo[22];
$goodw = $m_memo[23];
$goodx = $m_memo[24];
$goody = $m_memo[25];
$goodz = $m_memo[26];
$m_subject = explode("|",$subject);
$subject1 = $m_subject[0];
$subject2 = $m_subject[1];
$subject3 = $m_subject[2];
$subject4 = $m_subject[3];
$subject5 = $m_subject[4];
?>
<script language="JavaScript1.2">
var highlightcolor="ffff99"
var ns6=document.getElementById&&!document.all
var previous=''
var eventobj
var intended=/INPUT|TEXTAREA|SELECT|OPTION/;
function checkel(which){
if (which.style&&intended.test(which.tagName)){
if (ns6&&eventobj.nodeType==3)
eventobj=eventobj.parentNode.parentNode
return true
}
else
return false
}
function highlight(e){
eventobj=ns6? e.target : event.srcElement
if (previous!=''){
if (checkel(previous))
previous.style.backgroundColor=''
previous=eventobj
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
}
else{
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
previous=eventobj
}
}
function OpenZipcode()
{
window.open("<?=$dir?>/zipcode/zipcode.php?form=write&zip1=goods&zip2=goodt&address=gooda","zipwin","width=520,height=260,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no");
}
var goodb = "";
function InitSaveVariables(form) {
goodb = form.goodb.value;
}
function addressZip(form) {
if (form.goodu.checked) {
InitSaveVariables(form);
form.goodb.value = form.gooda.value;
}
else {
form.goodb.value = goodb;
}
}
window.onerror=function error_kill() {return true;}
var 사무직관련Array = new Array("('관련 소분류','',true,true)",
"('일반사무')",
"('자료입력')",
"('전산보조')",
"('교육관련')",
"('인터넷관련')");
var 상담직Array = new Array("('관련 소분류','+ '+ '',true,true)",
"('고객관련상담')",
"('상품관련상담')",
"('기타상담')");
var 매장관리_판매직Array = new Array("('관련 소분류','',true,true)",
"('매장업무')",
"('백화점')",
"('할인점')",
"('24시편의점')",
"('패스트푸드')",
"('PC방')",
"('노래방')",
"('커피숍')",
"('보드게임방')",
"('찜질방')",
"('기타')");
var 서빙_서비스Array = new Array("('관련 소분류','',true,true)",
"('홀서빙')",
"('바텐더')",
"('주방보조')",
"('도우미')",
"('베이비시터')",
"('학습 및 영어시터')",
"('산모도우미')",
"('실버시터')",
"('기타')");
var 생산_배달_단순직Array = new Array("('관련 소분류','',true,true)",
"('배달업무')",
"('배송업무')",
"('주차요원')",
"('주유안내원')",
"('생산업무')",
"('현장관리')",
"('공사현장')",
"('+ '전단지배포')",
"('기타')");
var 기타직종Array = new Array("('관련 소분류','',true,true)",
"('보안/경비업무')",
"('운전/대리운전')",
"('기타')");
var 전문직Array = new Array("('관련 소분류','',true,true)",
"('호텔/숙박')",
"('+ '건축설계/인테리어')",
"('번역/통역')",
"('만화/이미지편집')",
"('경리/회계/재무')",
"('이벤트/나래이터')",
"('포장이사')",
"('기타')");
function populategoode(inForm,selected) {
var selectedArray = eval(selected + "Array");
while (selectedArray.length < inForm.goode.options.length) {
inForm.goode.options[(inForm.goode.options.length - 1)] = null;
}
for (var i=0; i < selectedArray.length; i++) {
eval("inForm.goode.options[i]=" + "new Option" + selectedArray[i]);
}
if (inForm.job.options[0].value == '') {
inForm.job.options[0]= null;
if ( navigator.appName == 'Netscape') {
if (parseInt(navigator.appVersion) < 4) {
window.history.go(0);
}
else {
if (navigator.platform == 'Win32' || navigator.platform == 'Win16') {
window.history.go(0);
}
}
}
}
}
var anoInicial = 2003;
var anoFinal = 2010;
var ano;
var mes;
var dia;
var campoDeRetorno;
var titulo;
nombresMes = Array("","1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월");
function diasDelMes(ano,mes) {
if ((mes==1)||(mes==3)||(mes==5)||(mes==7)||(mes==8)||(mes==10)||(mes==12)) dias=31
else if ((mes==4)||(mes==6)||(mes==9)||(mes==11)) dias=31
else if ((((ano % 100)==0) && ((ano % 400)==0)) || (((ano % 100)!=0) && ((ano % 4)==0))) dias = 29
else dias = 28;
return dias;
};
function crearSelectorMes(mesActual) {
var selectorMes = "";
selectorMes = "<select name='mes' size='1' onChange='+ 'javascript:opener.dibujarMes(self.document.Forma1.ano[self.document.Forma1.ano.selectedIndex].value,self.document.Forma1.mes[self.document.Forma1.mes.selectedIndex].value);'>\r\n";
for (var i=1; i<=12; i++) {
selectorMes = selectorMes + " <option value='" + i + "'";
if (i == mesActual) selectorMes = selectorMes + " selected";
selectorMes = selectorMes + ">" + nombresMes[i] + "</option>\r\n";
}
selectorMes = selectorMes + "</select>\r\n";
return selectorMes;
}
function crearSelectorAno(anoActual) {
var selectorAno = "";
selectorAno = "<select name='ano' size='1' onChange='javascript:opener.dibujarMes(self.document.Forma1.ano[self.document.Forma1.ano.selectedIndex].value,self.document.Forma1.mes[self.document.Forma1.mes.selectedIndex].value);'>\r\n";
for (var i=anoInicial; i<=anoFinal; i++) {
selectorAno = selectorAno + " <option value='" + i + "'";
if (i == anoActual) selectorAno = selectorAno + " selected";
selectorAno = selectorAno + ">" + i + "</option>\r\n";
}
selectorAno = selectorAno + "</select>";
return selectorAno;
}
function crearTablaDias(numeroAno,numeroMes) {
var tabla = "<LINK rel='stylesheet' type='text/css' href='+ 'style.css'><table border=0 cellsapcing=1 cellpadding=0 cellspacing=1 width=100% style=table-layout:fixed >\r\n <tr>";
var goodInicio = new Date();
goodInicio.setMonth(numeroMes-1);
goodInicio.setYear(numeroAno);
goodInicio.setDate(1);
ajuste = goodInicio.getDay();
tabla = tabla + "\r\n <td bgcolor=white align='center'>일</td><td bgcolor=white align='center'>월</td><td bgcolor=white align='center'>화</td><td bgcolor=white align='center'>수</td><td bgcolor=white align='center'>목</td><td bgcolor=white align='+ 'center'>금</td><td bgcolor=white align='center'>토</td></div>\r\n <tr>";
for (var j=1; j<=ajuste; j++) {
tabla = tabla + "\r\n <td></td>";
}
for (var i=1; i<10; i++) {
tabla = tabla + "\r\n <td align=center"
if ((i == diaHoy()) && (numeroMes == mesHoy()) && (numeroAno == anoHoy())) tabla = tabla + " bgcolor='#ff0000'";
tabla = tabla + "><input type='button' style='background-color:white; border-width:1px; border-color:rgb(153,153,153); border-style:solid;' value='0" + i + "' onClick='javascript:opener.ano=self.document.Forma1.ano[self.document.Forma1.ano.selectedIndex].value; opener.mes=self.document.Forma1.mes[self.document.Forma1.mes.selectedIndex].value; opener.dia=" + i + "; self.close();'></td>";
if (((i+ajuste) % 7)==0) tabla = tabla + "\r\n </tr>\r\n\ <tr>";
}
for (var i=10; i<=diasDelMes(numeroAno,numeroMes); i++) {
tabla = tabla + "\r\n <td align=center"
if ((i == diaHoy()) && (numeroMes == mesHoy()) && (numeroAno == anoHoy())) tabla = tabla + " bgcolor='#ff0000'";
tabla = tabla + "><input type='button' style='background-color:white; border-width:1px; border-color:rgb(153,153,153); border-style:solid;' value='" + i + "' onClick='javascript:opener.ano=self.document.Forma1.ano[self.document.Forma1.ano.selectedIndex].value; opener.mes=self.document.Forma1.mes[self.document.Forma1.mes.selectedIndex].value; opener.dia=" + i + "; self.close();'></td>";
if (((i+ajuste) % 7)==0) tabla = tabla + "\r\n </tr>\r\n\ <tr>";
}
tabla = tabla + "\r\n </tr>\r\n</table><table><tr><td align=center><img src="<?=$dir?>/popup_img.gif border=0></td></tr></table>";
return tabla;
}
function dibujarMes(numeroAno,numeroMes) {
var html = "";
html = html + "<html>\r\n<head>\r\n <title>" + titulo + "</title>\r\n</head>\r\n<body bgcolor='#F7F7F7' onUnload='opener.escribirgood();'>\r\n <div align='center'>\r\n <form name='Forma1'>\r\n";
html = html + crearSelectorMes(numeroMes);
html = html + crearSelectorAno(numeroAno);
html = html + crearTablaDias(numeroAno,numeroMes);
html = html + "<center><p><input type='button' style='border-width:1px; border-color:rgb(102,102,102); border-style:solid;' name='hoy' value='today: " + ano + "/" + mes + "/" + dia + "' onClick='javascript:self.close();'></center>";
html = html + "\r\n </form>\r\n </div>\r\n</body>\r\n</html>\r\n";
ventana = open("","calendario","width=220,height=270");
ventana.document.open();
ventana.document.writeln(html);
ventana.document.close();
ventana.focus();
}
function anoHoy() {
var good = new Date();
if (navigator.appName == "Netscape") return good.getYear() + 1900
else return good.getYear();
}
function mesHoy() {
var good = new Date();
return good.getMonth()+1;
}
function diaHoy() {
var good = new Date();
return good.getDate();
}
function pedirgood(campoTexto,nombreCampo) {
ano = anoHoy();
mes = mesHoy();
dia = diaHoy();
campoDeRetorno = campoTexto;
titulo = nombreCampo;
dibujarMes(ano,mes);
}
function escribirgood() {
campoDeRetorno.value = ano + "/" + mes + "/" + dia;
}
function commaSplit(srcNumber) {
var txtNumber = '' + srcNumber;
if (isNaN(txtNumber) || txtNumber == "") {
alert("숫자만 입력 하세요");
fieldName.select();
fieldName.focus();
}
else {
var rxSplit = new RegExp('([0-9])([0-9][0-9][0-9][,.])');
var arrNumber = txtNumber.split('.');
arrNumber[0] += '.';
do {
arrNumber[0] = arrNumber[0].replace(rxSplit, '$1,$2');
} while (rxSplit.test(arrNumber[0]));
if (arrNumber.length > 1) {
return arrNumber.join('');
}
else {
return arrNumber[0].split('.')[0];
}
}
}
function OpenZip()
{
window.open("<?=$dir?>/zipcode/zip.php?form=write&zip1=subject3&zip2=goodo&address=goodb","zipwin","width=520,height=260,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no");
}
var goodb = "";
function InitSaveVariables(form) {
goodb = form.goodb.value;
}
function addressZip(form) {
if (form.goodu.checked) {
InitSaveVariables(form);
form.goodb.value = form.goodb.value;
}
else {
form.goodb.value = goodb;
}
}
window.onerror=function error_kill() {return true;}
// -->
</script>
셀렉트박스 화살표 클릭시 아래로 펼쳐진후에 바로 닫혀버립니다..ㅜㅜ
클릭유지한상태로 내용 클릭해도 선택이 안되구요..
박스안에서 마우스 휠이나 화살표로 드래그해야 입력이 가능하게 되버렸습니다..
원하는 IE버전으루 변환시켜주는 메타태그를 써보았지만 안되서 질문드립니다..
<body>
<body oncontextmenu='return false' ondragstart='return false' onselectstart='return false'>
</body>
<table border=0 width=<?=$width?> cellpadding="0" cellspacing="0">
<col width=100><col width=></col><col width=20></col>
<tr>
<form method=post name=write action=good_java.php onsubmit="return check_submit();" enctype=multipart/form-data onClick="highlight(event)">
<input type=hidden name=page value=<?=$page?>>
<input type=hidden name=id value=<?=$id?>>
<input type=hidden name=no value=<?=$no?>>
<input type=hidden name=select_arrange value=<?=$select_arrange?>>
<input type=hidden name=desc value=<?=$desc?>>
<input type=hidden name=page_num value=<?=$page_num?>>
<input type=hidden name=keyword value="<?=$keyword?>">
<input type=hidden name=category value="<?=$category?>">
<input type=hidden name=sn value="<?=$sn?>">
<input type=hidden name=ss value="<?=$ss?>">
<input type=hidden name=sc value="<?=$sc?>">
<input type=hidden name=mode value="<?=$mode?>">
<td><img src="<?=$dir?>/images/top_left_100_32.gif border=0></td>
<td background=<?=$dir?>/images/top_center_5_32.gif ><img src=<?=$dir?>/images/top_center_5_32.gif border=0></td>
<td><img src=<?=$dir?>/images/top_right_20_32.gif border=0></td>
</tr>
</table>
-----이부분을 삭제시켜보니까 글작성완료는 안돼지만 셀렉트박스가 제대로 작동을 해서
혹시나 이부분에 문제가 있는건지...궁금합니다..--- "