📄 add.asp
字号:
}
function showfont(font) {
if (helpstat){
alert("Font Tag Sets the font face for the enclosed text.\n\nUSE: [font="+font+"]The font of this text is "+font+"[/font]");
} else if (basic) {
AddTxt="[font="+font+"][/font="+font+"]";
AddText(AddTxt);
} else {
txt=prompt("Text to be in "+font,"Text");
if (txt!=null) {
AddTxt="[font="+font+"]"+txt+"[/font="+font+"]";
AddText(AddTxt);
}
}
}
</SCRIPT>
<SCRIPT language=javascript>
function popwin1(path)
{ window.open(path,"","height=450,width=600,resizable=yes,scrollbars=yes,status=no,toolbar=yes,menubar=no,location=no");
}
</SCRIPT>
<SCRIPT language=javascript>
function popwin3(path)
{ window.open(path,"","height=350,width=600,resizable=yes,scrollbars=yes,status=no,toolbar=yes,menubar=no,location=no");
}
</SCRIPT>
<script language=javascript>
function checkform(){
if (document.input.user.value==""){
alert("请输你的留言呢称!");
document.input.user.focus();
return false;
}
if (document.input.nl.value==""){
alert("请输入你的留言内容!");
document.input.nl.focus();
return false;
}
if (input.email.value !== "")
{
var checkOK2 = input.email.value;
var checkStr2 = "@.";
var allValid2 = true;
var decPoints2 = 0;
var allNum2 = "";
for (i = 0; i < checkStr2.length; i++)
{
ch2 = checkStr2.charAt(i);
for (j = 0; j < checkOK2.length; j++)
if (ch2 == checkOK2.charAt(j))
break;
if (j == checkOK2.length)
{
allValid2 = false;
break;
}
if (ch2 != ".")
allNum2 += ch2;
}
if (!allValid2)
{
alert("您的信箱地址中缺少有效字符!");
input.email.focus();
return (false);
}
}
}
</script>
<%end if%>
<table width="775" border="0" cellspacing="0" cellpadding="0" background="<%=back%>">
<tr>
<td> <br>
<table bgcolor=<%=bk%> border=0 cellpadding=4 cellspacing=1
class=sitefont_small width=700 align="<%=dq%>">
<form method=post action=sendadd.asp name="input" onSubmit="return checkform();">
<tbody>
<tr align=middle bgcolor=<%=bt2%>>
<td colspan=2 class="sitefont_big"><font color=#000000><%=name%>留言簿</font></td>
</tr>
<tr bgcolor=<%=bt3%>>
<td><font class=c size=2>昵 称 *</font></td>
<td>
<input maxlength=8 name=user class="in" size="25">
</td>
</tr>
<tr bgcolor=<%=bt3%>>
<td><font class=c size=2>Email</font></td>
<td>
<input maxlength=40 name=email class="in" size="25">
</td>
</tr>
<tr bgcolor=<%=bt3%>>
<td><font class=c size=2>主 页</font></td>
<td>
<input maxlength=40 name=home class="in" size="25">
</td>
</tr>
<tr bgcolor=<%=bt3%>>
<td><font class=c size=2>ICQ号码</font></td>
<td>
<input maxlength=20 name=ICQ class="in" size="25">
</td>
</tr>
<tr bgcolor=<%=bt3%>>
<td><font class=c size=2>OICQ号码</font></td>
<td>
<input maxlength=20 name=OICQ class="in" size="25">
</td>
</tr>
<tr bgcolor=<%=bt3%>>
<td><font class=c size=2>性别*</font></td>
<td>
<input CHECKED name=Sex type=radio value=m>
男
<input name=Sex
type=radio value=w>
女
<input name=Sex type=radio value=k>
不想说</td>
</tr>
<%
'判断是否支持表情选择
if nobq=0 then %>
<tr bgcolor=<%=bt3%>>
<td><font class=c size=2>表情*</font></td>
<td>
<select class=c name=Pic>
<option selected
value=1.gif>微笑
<option value=2.gif>生气
<option value=3.gif>伤心
<option
value=4.gif>得意</option>
</select>
</td>
</tr>
<%end if%>
<%
'是否确认用ubb及表情符号
if ubb=1 then %>
<tr bgcolor="<%=bt3%>">
<td width="24%" > <font color=red><b>UBB ON</b></font></td>
<td width="76%" ><a href="javascript:bold();"><img alt=粗体
border=0 height=22
src="img/icon_editor_bold.gif"
width=22></a><a href="javascript:italicize();"><img alt=斜体 border=0
height=22
src="img/icon_editor_italicize.gif"
width=23></a><a href="javascript:underline();"><img alt=下划线 border=0
height=22
src="img/icon_editor_underline.gif"
width=23></a> <a href="javascript:center();"><img alt=居中 border=0
height=22
src="img/icon_editor_center.gif"
width=22></a> <a href="javascript:hyperlink();"><img alt=超级连接
border=0 height=22
src="img/icon_editor_url.gif"
width=22></a><a href="javascript:email();"><img alt=Email连接 border=0
height=22
src="img/icon_editor_email.gif"
width=23></a><a href="javascript:image();"><img alt=图片 border=0
height=22
src="img/icon_editor_image.gif"
width=23></a> <a href="javascript:showcode();"><img alt=编号 border=0
height=22
src="img/icon_editor_code.gif"
width=22></a><a href="javascript:quote();"><img alt=引用 border=0
height=22
src="img/icon_editor_quote.gif"
width=23></a><a href="javascript:list();"><img alt=目录 border=0
height=22
src="img/icon_editor_list.gif"
width=23></a> <a href="javascript:popwin3('icon.htm')"><img alt=表情
border=0 height=22
src="img/icon_editor_smilie.gif"
width=22></a> 字体大小
<select name=size
onChange=showsize(this.options[this.selectedIndex].value)>
<option value="1">1</option>
<option value="2">2</option>
<option value="3" selected>3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
</select>
颜色
<select name=color
onChange=showcolor(this.options[this.selectedIndex].value)>
<option selected style="COLOR: #000000" value=black>绝对黑色</option>
<option style="COLOR: #ff0000" value=red>正宗喜红</option>
<option
style="COLOR: #ff8800" value=yellow>黄金岁月</option>
<option
style="COLOR: pink" value=pink>粉红情深</option>
<option
style="COLOR: #008800" value=green>橄榄树绿</option>
<option
style="COLOR: orange" value=orange>桔子桔黄</option>
<option
style="COLOR: #aa00cc" value=purple>紫的拘谨</option>
<option
style="COLOR: #0000ff" value=blue>草原之蓝</option>
<option
style="COLOR: #ccaa00" value=beige>卡布其诺</option>
<option
style="COLOR: #880000" value=brown>暗夜兴奋</option>
<option
style="COLOR: teal" value=teal>我不知道</option>
<option
style="COLOR: #000088" value=navy>深蓝忧郁</option>
</select>
</td>
</tr>
<%end if%>
<tr bgcolor=<%=bt3%>>
<td valign=top><font class=c size=2>留言内容 *</font><br>
<br>
UBB
<% if ubb=1 then %>
可以使用
<%else%>
不可以使用
<%end if%>
<br>
HTML 不能使用
<% if ubb=1 then %>
<p><font size=+0><a
href="javascript:popwin1('helpubb.htm')"><u>查看UBB代码?</u></a></font></p>
<%end if%>
</td>
<td>
<textarea name="nl" cols="77" rows="10" class="in"></textarea>
</td>
</tr>
<% if ubb=1 then %>
<tr bgcolor="<%=bt3%>">
<td width="24%" valign="top" > UBB模式</td>
<td width="76%" >
<select name=font
onChange=thelp(this.options[this.selectedIndex].value)>
<option
value=1>帮助</option>
<option value=2>代写</option>
<option selected
value=0>基本</option>
</select>
</td>
</tr>
<%end if%>
<% if tz=1 or fs=1 then %>
<tr bgcolor=<%=bt3%>>
<td valign="top">选项</td>
<td ><font class=sitefont_small size=2>
</tr>
<%end if%>
<tr bgcolor=<%=bt2%>>
<td colspan="2">
<div align="center">
<input type="submit" name="Submit" value="发表留言" class="botton">
</div>
</td>
</tr>
</tbody>
</form>
</table>
</td>
<td width="8"> </td>
</tr>
<tr>
<td> </td>
<td width="8"> </td>
</tr>
<tr>
<td>
<div align="center"><span class="sitefont_small"><a href="http://25.137.180.166"><span class="sitefont_small">计算机教研室学科网站</span></a>|<a href="admin/admin.asp">管理面板</a></span>
</div>
</td>
<td width="8"> </td>
</tr>
</table>
<br>
<script language="javascript">
<!--
{
document.input.user.focus();
}
-->
</script>
</td>
</tr>
</table>
<%
'输出尾部信息
if dl<>"" then response.write(dl)%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -