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

📄 index.asp

📁 是个不错的文件代码,希望大家好好用,
💻 ASP
字号:
<!--#include file="conn.asp"-->
<%
opendb()

dim sql,rs,arrrs
dim arrrsnums,arrrsnumi
sql = "select top 2000 cid,cdate,cauthor,ccontent,cbcolor,cfcolor from ccc_love order by cid desc"
set rs = conn.execute(sql)
if not rs.eof then
arrrs = rs.getrows
end if
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="情缘许愿墙,情缘爱墙,网络爱墙,电子爱墙,爱情,生日,圣诞,情人节,新年,春节,祝福,礼物" />
<link rel="stylesheet" href="images/meigui8.cn_top.css" type="text/css" />
<style type="text/css">
<!--
body {
	margin-left: 5px;
	margin-top: 0px;
	margin-right: 5px;
	margin-bottom: 0px;
}
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; 
}
//-->
</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>

<script language="javascript">

var msg  = "欢迎来到爱墙,写下你的祝福,记得常回来看看哦~玫瑰情缘" ;

var interval = 120

var spacelen = 120;

var space10=" ";

var seq=0;

function scroll() {

len = msg.length;

window.status = msg.substring(0, seq+1);

seq++;

if ( seq >= len ) { 

seq = 0; 

window.status = '';

window.settimeout("scroll();", interval );

}

else

window.settimeout("scroll();", interval );

} 

scroll();

</script>


</head>
<body bgcolor="#fef4d9" onunload="bookmark()"> 
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/topbg.jpg">
  <tr>
        </tr>
      </table>
<table width="100%" border="0" cellpadding="1" cellspacing="0" bgcolor="f33b78">
  <tr>
    <td width="1%" height="20"> </td>
    <td width="29%" align="right"><span class="white"><a href="input.htm"><img src="images/love_04.gif" alt="点击这里发布你永久的祝福,永久的!" width="153" height="20" border="0" /></a></span></td>
    <td width="44%" align="right">
	
	<table border="0" cellpadding="0" cellspacing="0" width="428" id="table2">
		<tr>
			<td width="141"><span class="white">
   
    &nbsp;&nbsp;←点击发布许愿←</span></td>
			<td width="283"><form name="srchfrm" action="find.asp" onsubmit="return chksrch();">
			天赐字  
			    <input size=5 value="1" name="srchid" type="text" onkeyup="checknum(this);">号  
			<input type="submit" value="查找爱墙上的纸" style="background-color:#f33b78; border:1px outset #f33b78;color:#ffffff;font-weight:bold; "> 
           	  </form></td>
		</tr>
	</table>
	</td>
    <td width="14%" align="right"><span class="white">共有 <%=arrrsnums+1%> 张祝福</span></td>
    <td width="11%" align="right"> </td>
  </tr>
</table>


<table border="0" cellpadding="0" cellspacing="0" width="100%" height="888" id="table3">
	<tr>
		<td height="888" background="images/bg.gif"> 
	  <%

for arrrsnumi = 0 to arrrsnums

	randomize

	leftpx = int((840-10+1)*rnd+10)
	toppx = int((800-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="100%" border="0" cellpadding="1" cellspacing="0" bgcolor="f33b78">
  <tr>
    <td width="1%" height="20"> </td>
    <td width="25%" align="right"><span class="white"><a href="input.htm"><img src="images/love_04.gif" alt="点击这里发布你的祝福" width="153" height="20" border="0" /></a></span></td>
    <td width="45%" align="right">
      <table border="0" cellpadding="0" cellspacing="0" width="100%" id="table2">
        <tr>
          <td width="191"><span class="white"> &nbsp;&nbsp;[发布许愿全部免费]</span></td>
          <td width="250"><form name="srchfrm" action="find.asp" onsubmit="return chksrch();">
              天赐字  
                  <input size=5 value="1" name="srchid2" type="text" onkeyup="checknum(this);">
                  <input name="submit" type="submit" style="background-color:#f33b78; border:1px outset #f33b78;color:#ffffff;font-weight:bold; " value="查找爱墙上的纸">
          </form></td>
        </tr>
    </table></td>
    <td width="17%" align="right"><span class="white">共有 <%=arrrsnums+1%> 张祝福</span></td>
    <td width="11%" align="right"> </td>
  </tr>
</table>
<div align=center></div>
<div align=center></div>

<table width="710" border="0" cellpadding="0" cellspacing="0">
  <!--dwlayouttable-->
  <tr>
    <td width="710" height="68" valign="top" background="images/love_04.jpg"><div align=center>
      <div align=center></div>
    </div>
      <div align=center>
    </div></td>
  </tr>
</table>
</body>
</html>


⌨️ 快捷键说明

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