?? guestbook.asp
字號(hào):
<!--#include file="header.asp" -->
<%
'進(jìn)行數(shù)據(jù)來源安全性監(jiān)測(cè),跨站腳本防范
dim server_v1,server_v2
server_v1=Cstr(Request.ServerVariables("HTTP_REFERER"))
server_v2=Cstr(Request.ServerVariables("SERVER_NAME"))
if mid(server_v1,8,len(server_v2))<>server_v2 then
response.write "<script language=JavaScript>{window.alert('進(jìn)行數(shù)據(jù)來源安全性監(jiān)測(cè),跨站腳本防范');window.history.go(-1);}</script>"
response.end
end if
%>
<table width="778" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="185" height="350" valign="top" class="table-right"><!--#include file="left.asp" --></td>
<td width="100%" height="350" align="center" valign="middle" bgcolor="#FFFFFF">
<script language="javascript">
<!--//
function checksignup() {
if ( document.sia_guestbook.name.value == '' ) {
window.alert('請(qǐng)輸入您的姓名!!');
document.sia_guestbook.name.focus();
return false;
}
if ( document.sia_guestbook.content.value == '' ) {
window.alert('請(qǐng)輸入留言反饋內(nèi)容!!');
document.sia_guestbook.content.focus();
return false;
}
if ( document.sia_guestbook.email.value.length> 0 &&!document.sia_guestbook.email.value.indexOf("@")==-1|document.sia_guestbook.email.value.indexOf(".")==-1 ) {
window.alert('請(qǐng)輸入正確的Email地址!!');
document.sia_guestbook.email.focus();
return false;
}
if((document.sia_guestbook.tel.value!="")){if(isNaN(document.sia_guestbook.tel.value)||(document.sia_guestbook.tel.value.length<7)) {
window.alert("請(qǐng)輸入有效電話號(hào)碼,只能是數(shù)字!!");
document.sia_guestbook.tel.focus();
return false;
}
}
if (document.sia_guestbook.content.value.length>800)
{
window.alert("留言反饋內(nèi)容不能超過800字!!");
document.sia_guestbook.content.focus();
return false;
}
return true;
}
//-->
</script>
<table width="400" border="0" align="center" cellpadding="2" bgcolor="#FFFFFF">
<form ACTION="save.asp" METHOD="POST" NAME="sia_guestbook" id="sia_guestbook">
<tr>
<td height="20" colspan="2" valign="middle" bgcolor="#CCCCCC"> <font color="#000000">>>留言反饋</font> <font color="#000011">(您的意見和建議對(duì)我們很重要,謝謝您的支持!)</font></td>
</tr>
<tr bgcolor="#f7f7f7">
<td width="100" height="25" align="center" valign="middle">您的姓名<font color="#ff3333">*</font></td>
<td width="300" height="25" valign="top"> <INPUT name=name class=textbox onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" size=25 maxlength="10">
</td>
</tr>
<tr bgcolor="#f7f7f7">
<td width="100" height="25" align="center" valign="middle">聯(lián)系電話
</td>
<td width="300" height="25" valign="top"> <INPUT name=tel class=textbox id="tel" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" size=45 maxlength="25"></td>
</tr>
<tr bgcolor="#f7f7f7">
<td width="100" height="25" align="center" valign="middle">電子信箱 </td>
<td width="300" height="25" valign="top"> <INPUT name=email class=textbox onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" size=45 maxlength="49"></td>
</tr>
<tr bgcolor="#f7f7f7">
<td width="100" height="25" align="center" valign="top"> <br>
留言內(nèi)容<font color="#ff3333">*</font></td>
<td width="300" height="25" valign="top"> <textarea title="留言反饋的內(nèi)容,每條不能超過800字。
如果您有多項(xiàng)問題要反饋,請(qǐng)分開提交。
謝謝您對(duì)我們的支持!" name="content" class="textbox" cols="44" rows="6" id="content" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''"></textarea></td>
</tr>
<tr bgcolor="#f7f7f7">
<td width="100" height="25" align="center" valign="middle"> </td>
<td width="300" height="25" valign="middle"> <input name=submit type=submit class="textbox-1" id="submit" onClick="javascript:return checksignup()" value='提 交' onFocus="this.blur()">
<input name="Reset" type="reset" class="textbox-1" id="Reset" value="重 寫" onFocus="this.blur()">
</td>
</tr>
<tr>
<td height="50" align="center" valign="middle"> </td>
<td height="50" valign="middle"> </td>
</tr>
</form>
</table>
</td>
</tr>
</table>
<!--#include file="footer.asp"-->
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -