📄 liuyan.asp
字号:
<% Response.Buffer=True %>
<script language="javascript">
function number(str)
{
exp=/[^0-9()-]/g;
if(str.search(exp) != -1)
{
return false;
}
return true;
}
function kuangfeng()
{
if(form.name.value=="")
{
alert("请输入您的姓名!");
form.name.focus();
return (false);
}
if(form.name.value.length>=10)
{
alert("姓名不能超过10字!");
form.name.focus();
return (false);
}
if(form.ly.value=="")
{
alert("留言内容不能为空!");
form.ly.focus();
return (false);
}
if(form.ly.value.length>=200)
{
alert("留言内容不得超过200字!");
form.ly.focus();
return (false);
}
if(!number(document.form.OICQ.value))
{
alert("请输入正确QQ号码!");
form.OICQ.focus();
return (false);
}
if(form.OICQ.value.length>=12)
{
alert("请输入正确QQ号码!")
form.OICQ.focus();
return (false);
}
if (form.email.value == "")
{
return (true);
}
var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_@.";
var checkStr = form.email.value;
var allValid = true;
for (i = 0; i < checkStr.length; i++)
{
ch = checkStr.charAt(i);
for (j = 0; j < checkOK.length; j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
{
allValid = false;
break;
}
}
if (form.email.value.length < 6)
{
allValid = false;
}
if (!allValid)
{
alert("您输入的 \"电子邮件地址\" 无效!");
form.email.focus();
return (false);
}
address=form.email.value;
if(address.length>0)
{
i=address.indexOf("@");
if(i==-1)
{
window.alert("对不起!您输入的电子邮件地址是错误的!")
form.email.focus();
return false
}
ii=address.indexOf(".")
if(ii==-1)
{
window.alert("对不起!您输入的电子邮件地址是错误的!")
form.email.focus();
return false
}
}
if (checktext(form.email.value))
{
alert("请您输入有效的\"email\"!");
form.email.select();
form.email.focus();
return (false);
}
}
function checktext(text)
{
allValid = true;
for (i = 0; i < text.length; i++)
{
if (text.charAt(i) != " ")
{
allValid = false;
break;
}
}
return allValid;
}
</script>
<!--#include file="mdb.asp"-->
<%
exec="select * from book order by id desc"
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,1,1
if not isempty(request("page")) then
pagecount=cint(request("page"))
else
pagecount=1
end if
rs.pagesize=8
rs.AbsolutePage=pagecount
%>
<html>
<head>
<title>在线留言</title>
<script language="JavaScript">
<!--
function FP_getObjectByID(id,o) {//v1.0
var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
return null;
}
function FP_setTextFieldText(id,txt,form) {//v1.0
var el=FP_getObjectByID(id); if(el!=null) el.value=txt;
}
// -->
</script>
<style fprolloverstyle>A:hover {color: #000000; font-weight: bold}</style>
</head>
<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" background="pic/line.gif" rightmargin="0" bottommargin="0" style="text-align: center; background-attachment:fixed" link="#000000" vlink="#000000" alink="#000000">
<table border="0" width="100%" id="table1" bordercolor="#6595D6" style="border-collapse: collapse" height="100">
<tr>
<td width="23" background="pic/bg1.gif"> </td>
<td colspan="2" background="pic/bg1.gif" height="24"> </td>
</tr>
<tr>
<td width="2%" rowspan="5" background="pic/a21.gif"> </td>
<td width="203" height="68">
<p align="center">
<img border="0" src="newpic/9988.gif" width="100%" height="100%"></td>
<td width="779" height="68">
<p align="center">
<img border="0" src="pic/no1.gif" width="100%" height="100%"></td>
</tr>
<tr>
<td width="979" height="17" colspan="2" align="center">
<table border="0" width="95%" id="table8" style="border-collapse: collapse">
<tr>
<td>
<p align="center"><font color="#008000">
<a style="text-decoration: none" href="index.asp">
<img border="0" src="newpic/BD21299_.gif" width="15" height="11"></a></font><a style="text-decoration: none" href="index.asp">首页</a></a><a style="text-decoration: none" href="index.asp">
</a></td>
<td>
<p align="center"> <a style="text-decoration: none" href="new.asp"><img border="0" src="newpic/BD21299_.gif" width="15" height="11">旅游新闻</a>
</td>
<td>
<p align="center">
<a style="text-decoration: none" href="binguan.htm">
<img border="0" src="newpic/BD21299_.gif" width="15" height="11">宾馆饭店</a>
</td>
<td>
<p align="center">
<a style="text-decoration: none" href="luyoujingdian.htm">
<img border="0" src="newpic/BD21299_.gif" width="15" height="11">旅游景区</a></td>
<td>
<p align="center">
<a style="text-decoration: none" href="teseluxian.htm">
<img border="0" src="newpic/BD21299_.gif" width="15" height="11">特色路线</a></td>
<td>
<p align="center">
<a style="text-decoration: none" href="lyzs.asp">
<img border="0" src="newpic/BD21299_.gif" width="15" height="11">旅游常识</a></td>
<td>
<p align="center">
<a style="text-decoration: none" href="liuyan.asp">
<img border="0" src="newpic/BD21299_.gif" width="15" height="11">在线留言</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="979" height="18" colspan="2">
<p align="center">
<marquee scrollamount="5" style="color: #008000" height="100%" width="100%">欢迎您光临河源旅游网</marquee></td>
</tr>
<tr>
<td width="979" height="390" colspan="2" align="center">
<p align="right">
<div align="center">
<table border="0" width="773" id="table6">
<tr>
<td width="385">
当前位置:<a href="index.asp">首页</a>>>><a href="liuyan.asp">在线留言</a><td width="386" align="center">
<p align="right">
<a title="请你留下宝贵的留言" href="#ly" name="留言">
<img border="0" src="pic/ly1.gif" width="72" height="21"></a>
<a href="glydl.asp"> <img border="0" src="pic/lyg.gif" width="72" height="21"></a>
</table>
</div>
<%do while not rs.eof%>
<div align="center">
<table border="1" width="90%" id="table2" style="border-collapse: collapse" bordercolor="#6595D6">
<tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -