?? gsdts.asp
字號(hào):
<!--#Include File="inc/Check_Sql.asp"-->
<!--#include file="inc/conn.asp"-->
<!-- #include file="inc/config.asp" -->
<%owen=request("id")%>
<SCRIPT language=JavaScript>
var currentpos,timer;
function initialize()
{
timer=setInterval("scrollwindow()",50);
}
function sc(){
clearInterval(timer);
}
function scrollwindow()
{
currentpos=document.body.scrollTop;
window.scroll(0,++currentpos);
if (currentpos != document.body.scrollTop)
sc();
}
document.onmousedown=sc
document.ondblclick=initialize
</SCRIPT>
<%
function cutstr(tempstr,tempwid)
if len(tempstr)>tempwid then
cutstr=left(tempstr,tempwid)&"..."
else
cutstr=tempstr
end if
end function%>
<%
Set rsnews=Server.CreateObject("ADODB.RecordSet")
sql="update news set hits=hits+1 where id="&cstr(request("id"))
conn.execute sql
sql="select * from news where id="&owen
rsnews.Open sql,conn,1,1
title=rsnews("title")
if rsnews.eof and rsnews.bof then
response.Write("數(shù)據(jù)庫(kù)出錯(cuò)")
else
%>
<!--#include file="top.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>純真文化</title>
<META content=網(wǎng)站描述 name=description><LINK href="images/css.css"
type=text/css rel=stylesheet>
<style type="text/css">
<!--
.unnamed1 { FONT-SIZE: 12px; LINE-HEIGHT: 25px; FONT-FAMILY: "宋體"
}
.style2 {
color: #FF0000;
font-weight: bold;
}
-->
</style>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url(bj.jpg);
}
.unnamed1 { font-family: "宋體";
font-size: 12px;
line-height: 25px;
}
-->
</style>
</head>
<body>
<table width="1004" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="334" align="left" valign="top">
<!--#include file="left_lxwm.asp"-->
</td>
<td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="15"><table width="590" height="37" border="0" cellpadding="0" cellspacing="0">
<tr>
<td background="Images/kon.jpg"> <strong><font size="2"><%=rsnews("SmallClassName")%></font></strong></td>
</tr>
</table></td>
</tr>
<tr>
<td><p> </p>
<table width="90%" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="80%"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="50" colspan="2" align="center" class="tit"><%= rsnews("title") %></td>
</tr>
<tr>
<td width="40%" height="30" style="border-top: 1 solid #666666;border-bottom: 1 solid #666666">雙擊自動(dòng)滾屏</td>
<td width="60%" align="center" style="border-top: 1 solid #666666;border-bottom: 1 solid #666666">發(fā)布者:<%= rsnews("user") %>
發(fā)布時(shí)間:<%= rsnews("infotime") %> 閱讀:<font color="#FF0000"><%= rsnews("hits") %></font>次</td>
</tr>
<tr>
<td colspan="2"><br> <div style='font-size:10.5pt'><%=rsnews("content") %></div></td>
</tr>
<tr align="right">
<td colspan="2"> </td>
</tr>
<tr align="right">
<td colspan="2"> </td>
</tr>
<%
end if
rsnews.close
set rsnews=nothing
%>
</table>
<br>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="right"> <img src="images/printer.gif" width="16" height="14" align="absmiddle">
<a href="javascript:window.print()">打印本頁(yè)</a> | <img src="images/close.gif" width="14" height="14" align="absmiddle">
<a href="javascript:window.close()">關(guān)閉窗口</a></td>
</tr>
</table> </td>
</tr>
</table> </td>
</tr>
</table></td>
<td width="1" background="images/index_r5_c1_r2_c1.jpg"></td>
</tr>
</table>
</body>
</html>
<!--#include file="bottom.asp"-->
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -