首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

asp鼠标单击文本框弹出另一个文本框解决方案

2012-03-15 
asp鼠标单击文本框弹出另一个文本框我想在页面中插入一个文本字段标签 textfile ,当我用鼠标单击这个文

asp鼠标单击文本框弹出另一个文本框
我想在页面中插入一个文本字段标签 "textfile ",当我用鼠标单击这个文本框时,他的下面自动生成另一个 "textfile ",我是个新手,麻烦讲详细些,谢谢


[解决办法]
可以用ASP+JS的.搞一个层.
我觉得这样是最简单的.
[解决办法]
<script>
function Checkpititle()
{
if (pititle.style.display = "none ")
{
pititle.style.display = " ";
}
else
{
pititle.style.display = "none ";
}
}
</script>

<input type= "text " name= "textfile " onClick= "return Checkpititle() ">
<tr style= 'display:none ' id= 'pititle '>
<td> <input type= "text " name= "textfile ">
</td>
</tr>

[解决办法]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN " "http://www.w3.org/TR/html4/loose.dtd ">
<html>
<head>
<meta http-equiv= "Content-Type " content= "text/html; charset=shift_jis ">
<title> Untitled Document </title>
</head>

<body>
<form name= "form1 " method= "post " action= " ">
<input type= "text " name= "textfield1 " onClick= "bbb(); ">
</form>
</body>
</html>
<script language= "javascript ">
function bbb()
{
var aaa=document.createElement( "input ");
aaa.type= "text ";
aaa.name= "textfield3 ";
//myspan.style.display= "block ";
aaa.attachEvent( "onclick ", new Function( "bbb() "));
document.form1.appendChild(aaa);
}

</script>

热点排行