라디오버튼 활성화 문제 정보
라디오버튼 활성화 문제본문
라디오 버튼을 클릭했을때 <tr>부분이 활성화 되는건데요....
글을 쓰고 나면 존재하지 않는 게시판 입니다. 라고 뜨네요..
이유가 뭘까요??
====소스====
<FORM onload=document.f.t0.disabled=true name=f><INPUT onclick=this.form.t0.disabled=false type=radio CHECKED name=r_1>하단부 기재요망</FORM></td>
<script language="JavaScript">
function img(){
var fn = document.editForm;
if(fn.imgNew[0].checked==true){
document.all.newUrl.style.display="none";
document.all.newFile.style.display="";
}else{
document.all.newUrl.style.display="none";
document.all.newFile.style.display="none";
}
}
</script>
<form name=editForm>
<table cellspacing="1" width="100%" bordercolor="#f9f9f9" cellpadding="4" bgcolor="#EAEAEA">
<tr>
<td bgcolor="#F7F7F7" width="15%" align="center"><b>사고발생현황<b></td>
<td colspan="3">
<input type="radio" name="imgNew" style="border:none" required onclick="javascript:img();">사고발생
<input type="radio" name="imgNew" style="border:none" required onclick="javascript:img();">사고없음
<font color="red"> (*이미지를 수정하시려면 라디오버튼을 선택하세요)</font>
</td>
</tr>
<tr id="newUrl" style="display:none">
<td colspan="3"><input type="text" name="urlImg" style="width:325px"> </td>
</tr>
<table id="newFile" border ="1" style="display:none" cellspacing="1" width="100%" bordercolor="#f9f9f9" cellpadding="4" bgcolor="#EAEAEA">
<tr>
<td width="135" height="34">
<p align="center" style="line-height:100%; margin-top:0; margin-bottom:0;">발 생 일 자</p>
</td>
<td width="109" height="34">
<p align="center" style="line-height:100%; margin-top:0; margin-bottom:0;">성 명</p>
</td>
<td width="97" height="34">
<p align="center" style="line-height:100%; margin-top:0; margin-bottom:0;">직 업</p>
</td>
<td width="139" height="34">
<p align="center" style="line-height:100%; margin-top:0; margin-bottom:0;">최초소견서상</p>
<p align="center" style="line-height:100%; margin-top:0; margin-bottom:0;">치료예상기간</p>
</td>
<td width="442" height="34">
<p align="center" style="line-height:100%; margin-top:0; margin-bottom:0;"> 내 용</p>
</td>
</tr>
</table>
확인좀 부탁드립니다..ㅠㅠ
1가지더...ㅜㅜ
위스크립트에서 아래 소스 부분을 빼버리니까 스크립트작동이 않되네요...
<FORM onload=document.f.t0.disabled=true name=f><INPUT onclick=this.form.t0.disabled=false type=radio CHECKED name=r_1>하단부 기재요망</FORM>
이것도 좀 확인해주세요..ㅜ 부탁드립니다
글을 쓰고 나면 존재하지 않는 게시판 입니다. 라고 뜨네요..
이유가 뭘까요??
====소스====
<FORM onload=document.f.t0.disabled=true name=f><INPUT onclick=this.form.t0.disabled=false type=radio CHECKED name=r_1>하단부 기재요망</FORM></td>
<script language="JavaScript">
function img(){
var fn = document.editForm;
if(fn.imgNew[0].checked==true){
document.all.newUrl.style.display="none";
document.all.newFile.style.display="";
}else{
document.all.newUrl.style.display="none";
document.all.newFile.style.display="none";
}
}
</script>
<form name=editForm>
<table cellspacing="1" width="100%" bordercolor="#f9f9f9" cellpadding="4" bgcolor="#EAEAEA">
<tr>
<td bgcolor="#F7F7F7" width="15%" align="center"><b>사고발생현황<b></td>
<td colspan="3">
<input type="radio" name="imgNew" style="border:none" required onclick="javascript:img();">사고발생
<input type="radio" name="imgNew" style="border:none" required onclick="javascript:img();">사고없음
<font color="red"> (*이미지를 수정하시려면 라디오버튼을 선택하세요)</font>
</td>
</tr>
<tr id="newUrl" style="display:none">
<td colspan="3"><input type="text" name="urlImg" style="width:325px"> </td>
</tr>
<table id="newFile" border ="1" style="display:none" cellspacing="1" width="100%" bordercolor="#f9f9f9" cellpadding="4" bgcolor="#EAEAEA">
<tr>
<td width="135" height="34">
<p align="center" style="line-height:100%; margin-top:0; margin-bottom:0;">발 생 일 자</p>
</td>
<td width="109" height="34">
<p align="center" style="line-height:100%; margin-top:0; margin-bottom:0;">성 명</p>
</td>
<td width="97" height="34">
<p align="center" style="line-height:100%; margin-top:0; margin-bottom:0;">직 업</p>
</td>
<td width="139" height="34">
<p align="center" style="line-height:100%; margin-top:0; margin-bottom:0;">최초소견서상</p>
<p align="center" style="line-height:100%; margin-top:0; margin-bottom:0;">치료예상기간</p>
</td>
<td width="442" height="34">
<p align="center" style="line-height:100%; margin-top:0; margin-bottom:0;"> 내 용</p>
</td>
</tr>
</table>
확인좀 부탁드립니다..ㅠㅠ
1가지더...ㅜㅜ
위스크립트에서 아래 소스 부분을 빼버리니까 스크립트작동이 않되네요...
<FORM onload=document.f.t0.disabled=true name=f><INPUT onclick=this.form.t0.disabled=false type=radio CHECKED name=r_1>하단부 기재요망</FORM>
이것도 좀 확인해주세요..ㅜ 부탁드립니다
댓글 전체