📄 find.asp
字号:
<!--#include file="conn.asp"-->
<%
OpenDB()
Dim sql,Rs,arrRs
Dim arrRsNumS,arrRsNumI
dim srchId
srchId=request.querystring("srchId")
sql = "Select cid,cdate,cauthor,ccontent,cbcolor,cfcolor from ccc_love where cid=0"&srchId
Set Rs = Conn.Execute(sql)
if rs.BOF and rs.EOF then
Response.Write "<script>alert('没有找到你要得爱情留言!');location.href='index.asp';</script>"
response.end
else
arrRs = Rs.GetRows
end if
Rs.Close
Set Rs = Nothing
CloseDB()
arrRsNumS = UBound(arrRs,2)
%>
<html>
<head>
<title>--UC886许愿墙--www.uc886.com</title>
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="keyword" content="大庆网许愿墙,www.dqbbs.net,大庆网爱墙,网络爱墙,电子爱墙,巴黎爱墙,爱情,生日,圣诞,情人节,新年,春节,祝福,礼物" />
<link rel="stylesheet" href="style0930.css" type="text/css" />
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url(images/bg.jpg);
background-repeat: repeat-x;
}
table {word-break:break-all;}
.tdb {
background-image: url(images/love_04.jpg);
background-repeat: no-repeat;
background-position: right top;
}
td {
font-size: 12px;
color: #000000;
line-height: 18px;
}
.white {
color: #FFFFFF;
text-decoration: none;
}
//.white1 { color: #FFFFFF;
}
.white1 {color: #FFFFFF;
text-decoration: none;
}
-->
</style>
<script language="JavaScript1.2">
//-- 控制层删除start of script -->
function ssdel(){
if (event)
{
lObj = event.srcElement ;
while (lObj && lObj.tagName != "DIV") lObj = lObj.parentElement ;
}
var id=lObj.id
document.getElementById(id).removeNode(true);
//document.getElementById(id).outerHTML="";//
}
//-- 控制层删除End of script -->
</script>
<script>
//-- 控制层移动start of script -->
var Obj=''
var index=10000;//z-index;
document.onmouseup=MUp
document.onmousemove=MMove
function MDown(Object){
Obj=Object.id
document.all(Obj).setCapture()
pX=event.x-document.all(Obj).style.pixelLeft;
pY=event.y-document.all(Obj).style.pixelTop;
}
function MMove(){
if(Obj!=''){
document.all(Obj).style.left=event.x-pX;
document.all(Obj).style.top=event.y-pY;
}
}
function MUp(){
if(Obj!=''){
document.all(Obj).releaseCapture();
Obj='';
}
}
//-- 控制层移动end of script -->
//获得焦点;
function getFocus(obj)
{
if(obj.style.zIndex!=index)
{
index = index + 2;
var idx = index;
obj.style.zIndex=idx;
//obj.nextSibling.style.zIndex=idx-1;
}
}
//查找祝福纸条
function Srch(obj)
{//alert(obj);
if(obj.style.zIndex!=index)
{
index = index + 1000;
var idx = index;
obj.style.zIndex = idx;
obj.style.width = 400;
obj.style.height = 300;
obj.style.left = 200;
obj.style.top = 200;
}
}
function ChkSrch()
{
if (SrchFrm.srchId.value == "")
{alert("\n\n\n你总得告诉我查找哪一个吧!!\n\n\n");
SrchFrm.srchId.focus();
return false; }
return true;
}
function checkNum(obj){
var checkOK = "0123456789 ";
var checkStr = obj.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 (!allValid){
alert("只能由数字组成!");
obj.select();
return (false);
}
return (true);
}
</script>
</head>
<body>
<table cellspacing="0" cellpadding="0" width="1000" border="0">
<tbody>
<tr>
<td valign="top" width="168"><table cellspacing="0" cellpadding="0" width="95%" align="center" border="0">
<tbody>
<tr>
<td height="75"><object id="天涯爱墙logo"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
height="73" width="160"
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="天涯爱墙logo">
<param name="movie" value="images/logo.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed src="images/logo.swf" width="160" height="73" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" wmode="transparent"
name="天涯爱墙logo"></embed>
</object></td>
</tr>
</tbody>
</table></td>
<td width="204"><img height="95" src="images/top1.jpg" width="204" /></td>
<td valign="bottom" align="right" width="185" background="images/top2.jpg"> </td>
<td valign="bottom"><table style="MARGIN-BOTTOM: 3px" cellspacing="0" cellpadding="0" width="95%"
align="center" border="0">
<tbody>
<tr>
<td align="right" height="25"><a
href="index.asp" target="_self">爱墙首页</a> / <a
href="input.htm"
target="_self" class="white1">发送祝福</a> / <a
href="http://www.beele.cn"
target="_blank">比邻网首页</a><a
href="http://www.tianya.cn/store/index3.asp?idWriter=0&Key=0"
target="_blank"></a> / <a
href="#" target="_blank">帮助</a> </td>
</tr>
</tbody>
</table>
<table cellspacing="0" cellpadding="0" width="97%" align="center" border="0">
<form action="find.asp" name="SrchFrm" id="SrchFrm" onSubmit="return ChkSrch();">
<tbody>
<tr>
<td align="right" width="120"><a
href="input.htm"
target="_blank"><img height="28" src="images/button_list.gif"
width="84" border="0" /></a></td>
<td><table style="MARGIN-BOTTOM: 3px" cellspacing="0" cellpadding="0"
width="98%" align="center" bgcolor="#7d7c44" border="0">
<tbody>
<tr>
<td width="3%"><img height="24" src="images/grk1.gif"
width="8" /></td>
<td class="white1" width="55%">共有 <%=arrRsNumS+1%> 张祝福</td>
<td class="white1" align="right" width="39%">爱字
<input name="srchId" id="srchId"
style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-TOP: 2px; HEIGHT: 15px; BACKGROUND-COLOR: #aba965; BORDER-RIGHT-WIDTH: 0px" value="9999"
size="5" />
号</td>
<td align="right" width="3%"><img height="24"
src="images/grk2.gif" width="8" /></td>
</tr>
</tbody>
</table></td>
<td align="right" width="52"><input name="imageField" type="image" src="images/button_search.jpg" width="51" height="28" border="0" onClick="searchmessage(1944,'bNull')"></td>
</tr>
</tbody>
</form>
</table>
<table style="MARGIN-TOP: 3px; MARGIN-BOTTOM: 3px" cellspacing="0"
cellpadding="0" width="98%" align="center" bgcolor="#7d7c44" border="0">
<tbody>
<tr>
<td width="3%"><img height="24" src="images/grk1.gif" width="8" /></td>
<td class="white1" width="95%">将您的祝福语编辑填写好即可发布到本站许愿墙 [全部免费]</td>
<td align="right" width="2%"><img height="24" src="images/grk2.gif"
width="8" /></td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>
<%
LeftPx = 400
TopPx = 200
Response.write "<div id='cc"&arrRs(0,arrRsNumI)&"' class='Cccc' style='position:absolute;left:"&LeftPx&"px;top:"&TopPx&"px;background-color:"&arrRs(4,arrRsNumI)&";z-index:"&arrRs(0,arrRsNumI)&";' onmousedown='getFocus(this)'>"
Response.write "<table border=0><td style='cursor:move;' width='98%' onmousedown=MDown(cc"&arrRs(0,arrRsNumI)&")>"&"第["&arrRs(0,arrRsNumI)&"]条 "&FormatDateTime(arrRs(1,arrRsNumI),2)&" "&FormatDateTime(arrRs(1,arrRsNumI),4)&"</td><td style='cursor:hand;' onclick='ssdel()' width='2%'>×</td></tr><tr><td style='height:100px;padding:5px;' colspan='2'>"
Response.write arrRs(3,arrRsNumI)
Response.write "<div style='padding:5px;float:right;'>"&arrRs(2,arrRsNumI)&"</div></td></tr></table>"
Response.write "</div>"
%>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -