📄 newsinfo.asp
字号:
<!--#include file="inc/syscode.asp"-->
<!--#include file="Inc/eshopcode.asp"--><!-- 换行等代码 -->
<!--#include file="top.asp"-->
<SCRIPT language=JavaScript>
var currentpos,timer;
function initializeScroll() { timer=setInterval("scrollwindow()",80);}
function scrollclear(){clearInterval(timer);}
function scrollwindow() {currentpos=document.body.scrollTop;window.scroll(0,++currentpos);if (currentpos != document.body.scrollTop) sc();}
document.onmousedown=scrollclear
document.ondblclick=initializeScroll
</SCRIPT>
<SCRIPT language=javascript>
function ContentSize(size)
{
var obj=document.all.BodyLabel;
obj.style.fontSize=size+"px";
}
</SCRIPT>
<TABLE cellSpacing=0 cellPadding=0 width=760 align=center border=0>
<TBODY>
<TR>
<TD vAlign=top width=178 background=images/leftftbg.gif>
<DIV align=center>
<TABLE cellSpacing=0 cellPadding=0 width=178 border=0>
<TBODY>
<TR>
<TD width=178><!--#include file="index_ywjs.asp"--></TD>
</TR>
<TR>
<TD height=10></TD></TR>
<TR>
<TD><!-- 作品列表 --><!--#include file="L_product.asp"--></TD></TR>
<TR>
<TD height=10></TD></TR>
<TR>
<TD><!-- 站内调查 --><!-- #include file="L_vote.asp" --></TD></TR>
<TR>
<TD background=images/leftbg.gif height=5></TD></TR>
</TBODY></TABLE>
</TD>
<!--********************左栏部分结束**********************-->
<TD bgcolor="#FFFFFF" valign=top>
<%
if not isEmpty(request.QueryString("id")) then
id=request.QueryString("id")
else
id=1
end if
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "Select * From news where id="&id, conn,3,3
'纪录访问次数
rs("counter")=rs("counter")+1
rs.update
nCounter=rs("counter")
'定义内容
content=ubbcode(rs("content"))
%>
<table width="100%" height="19" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="31%" height="24" bgcolor="#FDFFFB"> <strong><font size="2">最新信息:
</font> </strong></td>
<td width="69%" bgcolor="#FDFFFB"><div align="right">【 字体:<A href="javascript:ContentSize(16)">大</A>
<A
href="javascript:ContentSize(14)">中</A> <A
href="javascript:ContentSize(12)">小</A> 】【<a href='javascript:window.print()'>打印此页</a>】</div></td>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="#CCCCCC"></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FDFFFB">
<tr>
<td><table width="95%" border="0" align="center" cellpadding="0" cellspacing="5">
<tr>
<td height="20" align=center><strong> <%=rs("title")%></strong></td>
</tr>
<tr>
<td><div align="center">发布日期:[<%=rs("time")%>] 共阅[<%=rs("counter")%>]次</div></td>
</tr>
<tr>
<td height="5"></td>
</tr>
<tr>
<td><SPAN class=content
id=BodyLabel
style="PADDING-RIGHT: 10px; DISPLAY: block; PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px"> <%=content%> <%rs.close%> </span></td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" height="19" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="1" colspan="2" bgcolor="#CCCCCC"></td>
</tr>
<tr>
<td width="31%" height="22" bgcolor="#FDFFFB"> <div align="right"></div></td>
<td width="69%" bgcolor="#FDFFFB"><div align="right">【 字体:<A href="javascript:ContentSize(16)">大</A>
<A
href="javascript:ContentSize(14)">中</A> <A
href="javascript:ContentSize(12)">小</A> 】【<a href='javascript:window.print()'>打印此页</a>】 【<a href='javascript:history.back()'>返回</a>】【<A
href="javascript:window.scroll(0,-360)">顶部</A>】【<a href="javascript:self.close()">关闭</a>】</div></td>
</tr>
</table>
</TD>
</tr>
</table>
<!-- 底部信息部分 --><!-- #include file="foot.asp" -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -