2006-5-8 UBB 输入, 简朴方法 与 提示框——Javascript&FORM By Stabx
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>form-InputT</title>
<script language="javascript">
function prompter()
{
urlLink=window.prompt("请输入链接","http://")
text = window.prompt("链接名")
if(text!="")
document.formT.content.value+=""+text+""
}
</script>
</head>
<body>
<form name="formT" id="formT" method="post" action="">
<input type="button" value="url" onclick="document.formT.content.value+=' <input type="button" value="code" onclick="document.formT.content.value+='[code][/code]'" /> <input type="button" value="quote" onclick="document.formT.content.value+='[quote][/quote]'"/> <input type="button" value="PromptExample" onclick="prompter()"/> <br /> <textarea name="content" cols="60" rows="10"></textarea> <br /> <input type="submit" name="Submit" value="Submit" /> <input type="reset" name="Reset" value="Reset" /> </form> </body> </html> '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' ' subject : 2006-5-8 UBB 输入, 简朴方法 与 提示框——Javascript&FORM By Stabx ' ' writer : Stabx<shawl.qiu@gmail.com'>'"/> <input type="button" value="code" onclick="document.formT.content.value+='[code][/code]'" /> <input type="button" value="quote" onclick="document.formT.content.value+='[quote][/quote]'"/> <input type="button" value="PromptExample" onclick="prompter()"/> <br /> <textarea name="content" cols="60" rows="10"></textarea> <br /> <input type="submit" name="Submit" value="Submit" /> <input type="reset" name="Reset" value="Reset" /> </form> </body> </html> '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' ' subject : 2006-5-8 UBB 输入, 简朴方法 与 提示框——Javascript&FORM By Stabx ' ' writer : Stabx<shawl.qiu@gmail.com> ' ' blog : [url=http://blog.csdn.net/btbtd]http://blog.csdn.net/btbtd
'
' blog/site : Phoenix.GI - P.GI / \ 绿色学院 - Green Institute
'
' date : 2006-5-8
'
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''