?? 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 + -