반응형
1. script
<script language="javascript" type="text/javascript">
<!--
function display(chk)
{
if (chk.checked == true)
{
document.all["new_cal"].style.display="";
} else {
document.all["new_cal"].style.display="none";
}
}
//-->
</script>
2. 코딩
<span style="position: relative; width: 25%; text-align: right;">
<input type="checkbox" onclick="display(this)" style="border: 0;">2. 두께의 새로운 공식 보기
</span>
<span id='new_cal' style='display: none;'>
<%
If val = "air" Then
Call cert_air()
ElseIf val = "water" Then
Call cert_water()
ElseIf val = "press" Then
Call cert_press()
End If
%>
</span>
<script language="javascript" type="text/javascript">
<!--
function display(chk)
{
if (chk.checked == true)
{
document.all["new_cal"].style.display="";
} else {
document.all["new_cal"].style.display="none";
}
}
//-->
</script>
2. 코딩
<span style="position: relative; width: 25%; text-align: right;">
<input type="checkbox" onclick="display(this)" style="border: 0;">2. 두께의 새로운 공식 보기
</span>
<span id='new_cal' style='display: none;'>
<%
If val = "air" Then
Call cert_air()
ElseIf val = "water" Then
Call cert_water()
ElseIf val = "press" Then
Call cert_press()
End If
%>
</span>
반응형