ly_html.asp

来自「本代码是一个个人主页」· ASP 代码 · 共 56 行

ASP
56
字号
<%sub postbody%>
<SCRIPT LANGUAGE="JavaScript">
<!--
function CheckForm(obj){
	if(document.form1.ly_author.value=="")
	{
	alert("昵称不能为空");
	document.form1.ly_author.focus();
	return false;
	}
	if(document.form1.content.value=="")
	{
	alert("内容不能为空");
	document.form1.content.focus();
	return false;
	}
	return true;
}
//-->
</SCRIPT>
<div id=ly_body>
  <div id=ly-2>
    <div id=ly-2-1>发表留言</div>
	<div id=ly-2-2>
	  <form name="form1" method="post" action="getpost.asp?action=add" onsubmit="return CheckForm(this);">
	  <div id="postbody"><div id="kong"></div>昵称:<input type="text" name="ly_author" id="input1"></div>
	  <div id="postbody"><%showubb%></div>
	  <div id="ubb_5"><textarea name="content" id="centent1" rows="1" cols="1" style="height:200px;width:550px;"></textarea></div>
	  <div id="postbutton"><input type="submit" value="发表留言" onclick="return CheckForm(this);" class="button"></div>
	  </form>
	</div>
  </div>
</div>
<%end sub%>

<%sub editbody%>
<div id=ly_body>
  <div id=ly-2>
    <div id=ly-2-1>回复留言</div>
	<div id=ly-2-2>
	  <form name="form1" method="post" action="getpost.asp?action=edit&id=<%=rs("id")%>" onsubmit="return CheckForm(this);">
	  <div id="postbody"><div id="kong"></div>昵称:<input type="text" name="ly_author" id="input1" value="<%=rs("ly_author")%>"></div>
	  <div id="postbody"><%showubb%></div>
	  <div id="ubb_5"><textarea name="content" id="centent1" rows="1" cols="1" style="height:200px;width:550px;" onClick="javascript: storeCaret(this);"><%=rs("ly_content")%></textarea></div>
	  <div id="postbutton"><input type="submit" value="发表留言"><div id="kong"></div></div>
	  </form>
	</div>
  </div>
</div>
<%end sub%>

<%sub footer%>
<div id="footer">Powered by F-Blog v1.0 Copyright@2005,F-BLOG </div>
</body>
</html>
<%end sub%>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?