📄 add.asp
字号:
<%@ language=VBScript %>
<!--#include file="setup.asp"-->
<!--#include file="check.asp"-->
<!--#include file="code.asp"-->
<%
if Request("menu") = "addto" then
call addto()
else call index()
end if
sub index()
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=gbook_name%></title>
<link rel="stylesheet" href="style.css">
</head>
<body bgcolor="#C8C8C8">
<div align="center">
<center>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#4F4F4F" width="500">
<tr>
<td width="100%" bgcolor="#EFEFEF">
<table border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse" bordercolor="#4F4F4F" width="100%">
<tr>
<td width="100%" class="shadow" align="center" background="images/table.gif"><b><font color=ffffff><%=gbook_name%></font></b></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF">
<table border="0" cellpadding="2" cellspacing="0" style="border-collapse: collapse" bordercolor="#4F4F4F" width="100%">
<tr>
<td width="75%" class="shadow">当前位置:<a href=<%=url%>><%=name%></a> - <a href=index.asp?userid=<%=userid%>>留言首页</a> - 添加留言</td>
<td width="25%" class="shadow" align="right">进入时间:<%=time%></td>
</tr>
</table>
</td>
</tr>
</table>
</center>
</div>
<script language="JavaScript1.2">
<!--
clckcnt = 0;
var postmaxchars = <%=bodymax%>;
function clckcntr(eventobject){if(event.ctrlKey && window.event.keyCode==13){clckcnt++;if (clckcnt>1)
{alert('留言正在发出,请耐心等待!');return false;}document.form.submit.disabled = true; this.document.form.submit();}}
function validate(theform) {
if (theform.username.value=="" || theform.body.value=="") {
alert("姓名和留言是必须填写的!");
clckcnt=0;
return false; }
if (postmaxchars != 0) {
if (theform.body.value.length > <%=bodymax%>) {
alert("你的信息太长了.\n\n请限制在 "+<%=bodymax%>+" 字节以内.\n当前已有 "+theform.body.value.length+" 字节.");
clckcnt=0;
return false; }
else { document.form.submit.disabled = true; return true; }
} else {
document.form.submit.disabled = true; return true; }
}
function checklength(theform) {
if (postmaxchars != 0) { message = "\n最大的字符为 "+<%=bodymax%>+" 字节."; }
else { message = ""; }
alert("你的信息已经有 "+theform.body.value.length+" 字节."+message);
}
-->
</script>
<table cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#4F4F4F" width="100%" height="3">
<tr>
<td width="100%"></td>
</tr>
</table>
<div align="center">
<center>
<table border="1" cellpadding="2" cellspacing="0" style="border-collapse: collapse" bordercolor="#4F4F4F" width="500">
<form name="form" method="post" action="add.asp?userid=<%=userid%>" onsubmit="return validate(this)">
<input type="hidden" name="menu" value="addto"><input type="hidden" name="ip" value="<%=Request.ServerVariables("REMOTE_ADDR")%>">
<tr>
<td width="25%" bgcolor="#FFFFFF">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#4F4F4F" width="100%">
<tr>
<td width="100%" class="shadow" align="center">你的昵称(必须)</td>
</tr>
</table>
</td>
<td width="75%" bgcolor="#FFFFFF">
<input type="text" size="20" name="username" style="width: 200; height: 18" onmouseover="this.style.backgroundColor='#FFFFFF'" onmouseout="this.style.backgroundColor=''"></td>
</tr>
<tr>
<td width="25%" bgcolor="#FFFFFF">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#4F4F4F" width="100%">
<tr>
<td width="100%" class="shadow" align="center">你的电邮(可选)</td>
</tr>
</table>
</td>
<td width="75%" bgcolor="#FFFFFF">
<input type="text" size="20" name="email" style="width: 200; height: 18" onmouseover="this.style.backgroundColor='#FFFFFF'" onmouseout="this.style.backgroundColor=''"></td>
</tr>
<tr>
<td width="25%" bgcolor="#FFFFFF">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#4F4F4F" width="100%">
<tr>
<td width="100%" class="shadow" align="center">你的主页(可选)</td>
</tr>
</table>
</td>
<td width="75%" bgcolor="#FFFFFF">
<input type="text" size="20" name="homeurl" style="width: 200; height: 18" value="http://" onmouseover="this.style.backgroundColor='#FFFFFF'" onmouseout="this.style.backgroundColor=''"></td>
</tr>
<tr>
<td width="25%" bgcolor="#FFFFFF">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#4F4F4F" width="100%">
<tr>
<td width="100%" class="shadow" align="center">你的OICQ(可选)</td>
</tr>
</table>
</td>
<td width="75%" bgcolor="#FFFFFF">
<input type="text" size="20" name="qq" style="width: 200; height: 18" onmouseover="this.style.backgroundColor='#FFFFFF'" onmouseout="this.style.backgroundColor=''"></td>
</tr>
<tr>
<td width="25%" bgcolor="#FFFFFF">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#4F4F4F" width="100%">
<tr>
<td width="100%" class="shadow" align="center">你的表情(可选)</td>
</tr>
</table>
</td>
<td width="75%" bgcolor="#FFFFFF">
<input type="hidden" name="brow">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#4F4F4F" width="100%" height="36">
<tr>
<td width="7%" height="18" align="center"><img border="0" src="images/em01.gif" onclick="brow.value='images/em01.gif'" style="cursor:hand"></td>
<td width="7%" height="18" align="center"><img border="0" src="images/em02.gif" onclick="brow.value='images/em02.gif'" style="cursor:hand"></td>
<td width="7%" height="18" align="center"><img border="0" src="images/em03.gif" onclick="brow.value='images/em03.gif'" style="cursor:hand"></td>
<td width="7%" height="18" align="center"><img border="0" src="images/em04.gif" onclick="brow.value='images/em04.gif'" style="cursor:hand"></td>
<td width="8%" height="18" align="center"><img border="0" src="images/em05.gif" onclick="brow.value='images/em05.gif'" style="cursor:hand"></td>
<td width="8%" height="18" align="center"><img border="0" src="images/em06.gif" onclick="brow.value='images/em06.gif'" style="cursor:hand"></td>
<td width="8%" height="18" align="center"><img border="0" src="images/em07.gif" onclick="brow.value='images/em07.gif'" style="cursor:hand"></td>
<td width="8%" height="18" align="center"><img border="0" src="images/em08.gif" onclick="brow.value='images/em08.gif'" style="cursor:hand"></td>
<td width="8%" height="18" align="center"><img border="0" src="images/em09.gif" onclick="brow.value='images/em09.gif'" style="cursor:hand"></td>
<td width="8%" height="18" align="center"><img border="0" src="images/em10.gif" onclick="brow.value='images/em10.gif'" style="cursor:hand"></td>
<td width="8%" height="18" align="center"><img border="0" src="images/em11.gif" onclick="brow.value='images/em11.gif'" style="cursor:hand"></td>
<td width="8%" height="18" align="center"><img border="0" src="images/em12.gif" onclick="brow.value='images/em12.gif'" style="cursor:hand"></td>
<td width="8%" height="18" align="center"><img border="0" src="images/em13.gif" onclick="brow.value='images/em13.gif'" style="cursor:hand"></td>
</tr>
<tr>
<td width="7%" height="18" align="center"><img border="0" src="images/em14.gif" onclick="brow.value='images/em14.gif'" style="cursor:hand"></td>
<td width="7%" height="18" align="center"><img border="0" src="images/em15.gif" onclick="brow.value='images/em15.gif'" style="cursor:hand"></td>
<td width="7%" height="18" align="center"><img border="0" src="images/em16.gif" onclick="brow.value='images/em16.gif'" style="cursor:hand"></td>
<td width="7%" height="18" align="center"><img border="0" src="images/em17.gif" onclick="brow.value='images/em17.gif'" style="cursor:hand"></td>
<td width="8%" height="18" align="center"><img border="0" src="images/em18.gif" onclick="brow.value='images/em18.gif'" style="cursor:hand"></td>
<td width="8%" height="18" align="center"><img border="0" src="images/em19.gif" onclick="brow.value='images/em19.gif'" style="cursor:hand"></td>
<td width="8%" height="18" align="center"><img border="0" src="images/em20.gif" onclick="brow.value='images/em20.gif'" style="cursor:hand"></td>
<td width="8%" height="18" align="center"><img border="0" src="images/em21.gif" onclick="brow.value='images/em21.gif'" style="cursor:hand"></td>
<td width="8%" height="18" align="center"><img border="0" src="images/em22.gif" onclick="brow.value='images/em22.gif'" style="cursor:hand"></td>
<td width="8%" height="18" align="center"><img border="0" src="images/em23.gif" onclick="brow.value='images/em23.gif'" style="cursor:hand"></td>
<td width="8%" height="18" align="center"><img border="0" src="images/em24.gif" onclick="brow.value='images/em24.gif'" style="cursor:hand"></td>
<td width="8%" height="18" align="center"><img border="0" src="images/em25.gif" onclick="brow.value='images/em25.gif'" style="cursor:hand"></td>
<td width="8%" height="18" align="center"><img border="0" src="images/em26.gif" onclick="brow.value='images/em26.gif'" style="cursor:hand"></td>
</tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -