?? bookwrite.asp
字號(hào):
<!--#include file="../include/connstr.asp"-->
<% if request("cur_action")="addsave" then
sql_addsave="insert into tGuestBook(TrueName,ComeFrom,Email,Url,Head,Face,Content,AddTime) values('"&request("T_TrueName")&"','"&request("S_ComeFrom")&"','"&request("T_Email")&"','"&request("T_Url")&"','"&request("R_Head")&"','"&request("R_Face")&"','"&request("T_Content")&"','"&now()&"')"
conn.execute sql_addsave
response.Write "<script>alert('已經(jīng)成功留言,按確認(rèn)返回查看留言!');location.replace('GuestBook.asp');</script>"
response.end
end if
if session("LoginID")<>"" then
set rs_Member=conn.execute("select * from tRegMember where LoginID='"&session("LoginID")&"'")
TrueName=rs_Member("TrueName")
Email=rs_Member("Email")
end if
%>
<html>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>浙江永嘉誠(chéng)一閥門(mén)有限公司</title>
<style type="text/css">
<!--
body {
margin-top: 0px;
margin-left: 0px;
margin-bottom: 0px;
}
-->
</style>
<link href="../include/mycss.css" rel="stylesheet" type="text/css">
<!-- 浮動(dòng)層的開(kāi)始 -->
<SCRIPT language=javascript>
var delta=0.15
var collection;
function floaters() { //添加層的子程序
this.items = [];
this.addItem = function(id,x,y,content)
{
document.write('<DIV id='+id+' style="Z-INDEX: 10; POSITION: absolute; width:100px; height:240px;left:'+(typeof(x)=='string'?eval(x):x)+';top:'+(typeof(y)=='string'?eval(y):y)+'">'+content+'</DIV>');
var newItem = {};
newItem.object = document.getElementById(id);
newItem.x = x;
newItem.y = y;
this.items[this.items.length] = newItem;
}
this.play = function()
{
collection = this.items
setInterval('play()',10);
}
}
function play() //調(diào)整層的位置
{
for(var i=0;i<collection.length;i++)
{
var followObj = collection[i].object;
var followObj_x = (typeof(collection[i].x)=='string'?eval(collection[i].x):collection[i].x);
var followObj_y = (typeof(collection[i].y)=='string'?eval(collection[i].y):collection[i].y);
if(followObj.offsetLeft!=(document.body.scrollLeft+followObj_x)) {
var dx=(document.body.scrollLeft+followObj_x-followObj.offsetLeft)*delta;
dx=(dx>0?1:-1)*Math.ceil(Math.abs(dx));
followObj.style.left=followObj.offsetLeft+dx;
}
if(followObj.offsetTop!=(document.body.scrollTop+followObj_y)) {
var dy=(document.body.scrollTop+followObj_y-followObj.offsetTop)*delta;
dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));
followObj.style.top=followObj.offsetTop+dy;
}
followObj.style.display = '';
}
}
var theFloaters = new floaters();
theFloaters.addItem('followDiv2',900,100,'<img src=../images/right.jpg usemap="#Map1111111111111" border=0>'); //層名,位置X,位置Y,內(nèi)容
theFloaters.play();
</SCRIPT>
<!-- 浮動(dòng)層的結(jié)束 -->
</head>
<script src="../include/Jchar.js"></script>
<script language="JavaScript">
function check_data(){
if(Jtrim(document.forminfo.T_TrueName.value)==""){
alert("您的姓名為必填項(xiàng),請(qǐng)?zhí)顚?xiě)!")
document.forminfo.T_TrueName.focus();
return(false)
}
if(Jtrim(document.forminfo.S_ComeFrom.value)==""){
alert("來(lái)自哪里為必填項(xiàng),請(qǐng)選擇!")
document.forminfo.S_ComeFrom.focus();
return(false)
}
if(Jtrim(document.forminfo.T_Content.value)==""){
alert("留言?xún)?nèi)容為必填項(xiàng),請(qǐng)?zhí)顚?xiě)!")
document.forminfo.T_Content.focus();
return(false)
}
}
</script>
<body>
<!--#include file="../include/top.asp"-->
<table width="919" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="278" height="502" valign="top" bgcolor="63a639"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="278" height="502">
<param name="movie" value="images/left.swf">
<param name=quality value=high>
<embed src="images/left.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="278" height="502"></embed>
</object></td>
</tr>
</table>
<!--#include file="../include/left.asp"-->
</td>
<td width="616" valign="top"><table width="99%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="96%" height="721" valign="top"><table width="616" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="136" valign="middle" background="images/gues.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3" align="right"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="308" height="80">
<param name="movie" value="../images/shuidi.swf">
<param name="quality" value="high">
<param name="wmode" value="transparent">
<embed src="../images/shuidi.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="308" height="80" wmode="transparent"></embed>
</object></td>
</tr>
<tr>
<td width="6%"> </td>
<td width="57%" class="biaoti">HOME> 客戶(hù)服務(wù)>留言薄</td>
<td width="37%"> </td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="576" valign="top"><table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3"><img src="../images/tou1.jpg" width="561" height="91"></td>
</tr>
<tr>
<td width="5%" background="../images/z.jpg"><img src="../images/z.jpg" width="26" height="203"></td>
<td width="90%" align="left" valign="top"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<form name="forminfo" method="post" action="" onSubmit="return check_data()">
<tr>
<td align="right"><table width="98%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td height="51" colspan="2">+ 基本信息( 打<font color="ff6500">*</font>號(hào)為必填項(xiàng) ) <img src="Images/icon_10.gif" width="11" height="11" align="absmiddle"> <span class="fontdz"><a href="GuestBook.asp"><font color="ff6500"><strong>查看留言薄</strong></font></a></span> </td>
</tr>
<tr>
<td width="18%" height="22" align="right">您的姓名:</td>
<td width="82%"><div align="left">
<input name="T_TrueName" type="text" id="T_TrueName" size="15" value="<%=TrueName%>">
<font color="ff6500">*</font></div></td>
</tr>
<tr>
<td height="22" align="right">來(lái)自:</td>
<td><div align="left"><font color="#FF6500">
<select name="S_ComeFrom" class="font" id="S_ComeFrom">
<option value="-1" selected>- 請(qǐng)選擇 -</option>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -