怎么样让 用户点中一个单选按扭时,显示本来隐藏的一个输入表单

happymingnan 2003-09-15 10:56:52
当用户 选中 “需要电子邮件” 这个单选按扭 时,显示一个表单,让用户输入
电子邮件。
很急,谢谢!!!
...全文
61 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
heartsea 2003-09-15
  • 打赏
  • 举报
回复
<html>
<head>
<title>check</title>
<Script language="JavaScript">
<!--
function check()
{
if(document.form1.need.checked==true)
email.style.display='';
else
email.style.display='none';
}
//-->
</Script>
</head>

<body>
<table width="74%" height="58" border="1">
<tr>
<td><form name="form1" method="post" action="">
<input name="need" type="checkbox" id="need" value="need" onClick="check();">
需要电子邮件 <br>
<table width="75%" border="1" id="email" style="display:none">
<tr>
<td>电子邮件
<input name="email" type="text" id="email"></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</body>
</html>
yzwxjun 2003-09-15
  • 打赏
  • 举报
回复
没有必要那么麻烦吧,写一个设置变量的脚本,就行了。
富察咪咪 2003-09-15
  • 打赏
  • 举报
回复
<div id="MessageBox" style="HEIGHT: 80px; LEFT:20px; POSITION: absolute; TOP: 10px; VISIBILITY: hidden; WIDTH: 500px; Z-INDEX: 20">
<center>
<table border="4" cellpadding="4" cellspacing="4" width="600" bordercolordark="#0000FF" bordercolorlight="#0000FF" bgcolor="#FFFFFF">
<tr>
<td width="100" align="Left" >发送路径</td>
<td width="440" align="Left"><div id="Url" style="width:440px;left:0px;height:10px"></div></td>
<td width="40" align="Left" rowspan="2"><input type="button" value="关闭" onclick="PathBoxOff()" /></td>
</tr>
<tr>
<td width="100" align="Left">显示路径</td>
<td width="440" align="Left"><div id="View" style="width:440px;left:0px;height:10px"></div></td>
</tr>

</table>
</center>
</div>
// 点击编号显示发送文件的路径

function PathBoxOn(Text,view){
var url="http://61.166.155.202/application/gcsmsbasic/Logo/logo_send.Asp?num="
url=url + Text
document.all("MessageBox").style.visibility = "visible";
Url.innerText=url
View.innerText=view

}
富察咪咪 2003-09-15
  • 打赏
  • 举报
回复
将表单作成一个层(DIV),默认隐藏,按按钮时显示
ryuginka 2003-09-15
  • 打赏
  • 举报
回复
弹出一个窗体不就行了吗?
happymingnan 2003-09-15
  • 打赏
  • 举报
回复
up,恳请大家帮忙

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧