show1.asp
来自「大家好」· ASP 代码 · 共 75 行
ASP
75 行
<%@ LANGUAGE="VBSCRIPT"%>
<!-- #include file="../ADOVBS.INc" -->
<%
id=request("id")
set conn=server.createobject("adodb.connection")
conn.open Application("DBCon_ConnectionString")
set rs=server.createobject("adodb.recordset")
'rs.locktype=adLockOptimistic
sqlstr1="select biaoti,zuozebm,cishu,neirong from xiaohua where id='"&id&"' order by riqi desc"
rs.open sqlstr1,conn
if not rs.eof then
sqlstrup="update xiaohua set cishu=cishu+1 where id='"&id&"'"
conn.execute(sqlstrup)
end if
'rs("cishu")=rs("cishu")+1
'rs.update
'"window.location.href='ycxh.htm'"
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<Script language=javascript>
<!--
function check(){
var subWindow=
window.open("ycxh.htm","def","HEIGHT=400,WIDTH=600")
}
//-->
</Script>
</head>
<body bgcolor="#ffffff">
<table width="740" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="217" align="middle" valign="bottom" rowspan="2"><IMG height=25 src="../images/smallmark.gif" width=120></td>
<td colspan="2" valign="bottom" height="30"> </td>
</tr>
<tr>
<td width="285" valign="bottom"><A href="../default.asp">本站首页</a> >></td>
<td width="238" valign="bottom" align="right">
<input type="button" name="Button2" value="我要讲笑话" onClick="window.location.href='ycxh.htm'" class="botton">
</td>
</tr>
<tr>
<td colspan="3" bgcolor="#006600"></td>
</tr>
<tr valign="bottom">
<td colspan="3"> </td>
</tr>
</table>
<p align="center" style="FONT-STYLE: normal"><b><font size="6">笑一笑</font></b></p>
<table width="68%" border="1" align="center" height="262" bordercolor="#ccffcc" cellpadding="0" cellspacing="0">
<tr align="middle" bgcolor="#ccccff">
<td colspan="2" height="31" nowrap>
<P><FONT size=4><%=rs("biaoti")%></FONT></P></td>
</tr>
<tr>
<td height="37" width="65%" bgcolor="#ccccff"> </td>
<td height="37" width="35%" nowrap bgcolor="#ccccff"><%=rs("cishu")%></td>
</tr>
<tr valign="top" bgcolor="#ffffff">
<td colspan="2" height="161" background="../images/bg1.gif"> <%=rs("neirong")%></td>
</tr>
<tr valign="top" align="right" bgcolor="#ccffcc">
<td colspan="2" height="26">
<input type="button" name="Button" value="关闭" onclick="window.close()" style="BACKGROUND-COLOR: wheat; BORDER-BOTTOM-STYLE: inset; HEIGHT: 24px; WIDTH: 58px">
</td>
</tr>
</table>
<p align="center"> </p>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?