日期:2014-05-17  浏览次数:20973 次

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>