如题所述
简单的写了下,希望对你有有帮助
<html>
<head>
<script >
function addInfo()
{
var textinfo = document.forminfo.textinfo.value;
document.forminfo.areainfo.value = textinfo;
document.forminfo.textinfo.value = "";
}
function clearInfo()
{
document.forminfo.textinfo.value = "";
document.forminfo.areainfo.value = "";
}
</script>
<title>
</title>
</head>
<body>
<form name="forminfo" action="">
<div align="center">
<textarea name="areainfo" cols="40" rows="10" ></textarea>
</div>
<div align="center">
<input type="text" name="textinfo" style="width:300px">
</div>
<div align="center">
<input type="button" value="确定" onclick="addInfo()">
<input type="button" value="取消" onclick="clearInfo()">
</div>
</form>
</body>
</html>
<html>
<head>
<script >
function addInfo()
{
var textinfo = document.forminfo.textinfo.value;
document.forminfo.areainfo.value = textinfo;
document.forminfo.textinfo.value = "";
}
function clearInfo()
{
document.forminfo.textinfo.value = "";
document.forminfo.areainfo.value = "";
}
</script>
<title>
</title>
</head>
<body>
<form name="forminfo" action="">
<div align="center">
<textarea name="areainfo" cols="40" rows="10" ></textarea>
</div>
<div align="center">
<input type="text" name="textinfo" style="width:300px">
</div>
<div align="center">
<input type="button" value="确定" onclick="addInfo()">
<input type="button" value="取消" onclick="clearInfo()">
</div>
</form>
</body>
</html>
温馨提示:答案为网友推荐,仅供参考
第1个回答 2011-12-29
这个不与服务器交互的话,就用js实现吧!简单写了下,看下能用到不!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>返利导购网</title>
</head>
<body>
<a href="">返利导购网</a>
文本框一<input type="text" name="text1" id="text1" /><br />
文本框二<input type="text" name="text2" id="text2" />
<textarea name="text3" id="text3"></textarea>
<input type="button" onclick="shixian();" />
<script language="javascript">
function shixian(){
document.getElementById("text3").value=document.getElementById("text1").value+document.getElementById("text2").value;
}
</script>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>返利导购网</title>
</head>
<body>
<a href="">返利导购网</a>
文本框一<input type="text" name="text1" id="text1" /><br />
文本框二<input type="text" name="text2" id="text2" />
<textarea name="text3" id="text3"></textarea>
<input type="button" onclick="shixian();" />
<script language="javascript">
function shixian(){
document.getElementById("text3").value=document.getElementById("text1").value+document.getElementById("text2").value;
}
</script>
</body>
</html>
第2个回答 2011-12-29
这样不会太累?
找个你要的网页, 另存HTML, 然後用 文字编辑器重新编辑就好了呀
找个你要的网页, 另存HTML, 然後用 文字编辑器重新编辑就好了呀