⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.asp

📁 祝福墙源代码
💻 ASP
字号:
<!--#include file="conn.asp"-->
<%
OpenDB()
searchid=request("searchid")
Dim sql,Rs,arrRs
Dim arrRsNumS,arrRsNumI
If searchid="" then
sql = "Select top 2000 cid,cdate,cauthor,ccontent,cbcolor,cfcolor from ccc_love order by cID DESC"
Else
sql = "Select top 2000 cid,cdate,cauthor,ccontent,cbcolor,cfcolor from ccc_love where cid="&searchid&" order by cID DESC"
End if
Set Rs = Conn.Execute(sql)
If rs.eof Then
	response.write "<script language=javascript>alert('没有找到你想找的祝福哟,请确认ID号没有写错');history.go(-1)</script>"
	response.end
End if
arrRs = Rs.GetRows

Rs.Close
Set Rs = Nothing
CloseDB()
arrRsNumS = UBound(arrRs,2)
%>
<html>
<head>
    <title>平安健康墙-五一节日祝福</title>
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <meta name="keyword" content="五一节日健康墙,网络健康墙,电子爱墙,巴黎健康墙" />
    <meta name="Description" content="平安健康网" 五一节日健康 两性健康 五一健康墙 五一祝福>
    <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-repeat: no-repeat;
	background-position: right top;
}
td {
	font-size: 12px;
	color: #000000;
	line-height: 18px;
}
.white {
	color: #FFFFFF;
	text-decoration: none; 
}
//a:link {
	color: #FFFFFF;
}
a:visited {
	color: #FFFFFF;
}
a:active {
	color: #FF0000;
}
-->
</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);	
}

function searchmessage(id)
{
	if(id=="")
	{
		alert("总得告诉我你要找哪个祝福啊!")
		return false;
	}
	if(isNaN(id))
	{
		alert("要查找的祝福ID号只能是数字的哟!")
		return false;
	}
	self.location.href="index.asp?searchid="+id;
}
    </script>

    <link href="style0930.css" rel="stylesheet" type="text/css">

    <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>

</head>
<body>
    <table width="980" height="136" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td background="images/wall_01.gif">
                <table cellspacing="0" cellpadding="0" width="100%" border="0">
                    <tbody>
                        <tr>
                            <td width="168" height="99" valign="top">
                                <table cellspacing="0" cellpadding="0" width="95%" align="center" border="0">
                                    <tbody>
                                        <tr>
                                            <td height="75">
                                                &nbsp;</td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                            <td width="204">
                                &nbsp;</td>
                            <td valign="bottom" align="right" width="185">
                                &nbsp;</td>
                            <td valign="top">
                                <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td align="right">
                                            <a href="http://www.panjk.com" target="_self">中国平安健康首页</a> / <a href="input.htm"
                                                target="_self">发送祝福</a> / <a href="index.asp" target="_blank">平安健康墙首页</a><a href="http://www.tianya.cn/store/index3.asp?idWriter=0&amp;Key=0"
                                                    target="_blank"></a> &nbsp;&nbsp;&nbsp; <a href="#" target="_blank"></a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="12">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="22">
                                            <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td width="18%" height="21">
                                                        &nbsp;</td>
                                                    <td width="21%">
                                                        <a href="input.htm">
                                                            <img src="images/wall_bt.gif" width="70" height="21" border="0"></a></td>
                                                    <td width="46%">
                                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                            <tr>
                                                                <td width="41%" class="cfff">
                                                                    共<%=arrRsNumS+1%>张祝福</td>
                                                                <td width="18%" align="center" class="cfff">
                                                                    健字</td>
                                                                <td width="27%">
                                                                    <input type="text" name="srchId" id="srchId" style="border-top-width: 0px; border-left-width: 0px;
                                                                        border-bottom-width: 0px; padding-top: 2px; height: 15px; background-color: #ffffff;
                                                                        border-right-width: 0px; width: 40px">
                                                                </td>
                                                                <td width="14%" class="td1">
                                                                    号</td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                    <td width="15%">
                                                        <form name="form1" method="post" action="" onsubmit="return false;">
                                                            <input type="image" name="imageField" src="images/wall_bt1.gif" onclick="searchmessage(srchId.value)">
                                                        </form>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="5">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="25">
                                            <table width="82%" border="0" align="right" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td width="97%" class="cfff">
                                                        将您的祝福语编辑填写好即可发布到本站许愿墙[全部免费]</td>
                                                    <td width="3%">
                                                        &nbsp;</td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </tbody>
                </table>
                <a href="index.asp"></a>
            </td>
        </tr>
    </table>
    <table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td height="157" background="images/wall_02.gif">
                &nbsp;</td>
        </tr>
    </table>
    <table width="980" height="100%" border="0" align="center">
        <tr>
            <td>
                <%

For arrRsNumI = 0 To arrRsNumS

	Randomize

	LeftPx = Int((840-10+1)*Rnd+10)
	TopPx = Int((650-100+1)*Rnd+100)

	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)&"]条&nbsp;"&FormatDateTime(arrRs(1,arrRsNumI),2)&"&nbsp;"&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>"
Next
                %>
            </td>
        </tr>
    </table>
    <table width="1000" border="0" cellpadding="2" cellspacing="0">
        <tr>
            <td colspan="2" bgcolor="#FFFFFF">
                <div align="center">
                    <table style="border-top: #cecebd 3px solid" cellspacing="0" cellpadding="5" width="98%"
                        align="center" border="0">
                        <tbody>
                            <tr>
                                <td>
                                    <</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </td>
        </tr>
    </table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -