<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="setup.asp"-->
<!--#include file="conn.asp"-->
<%
dim id,rs,hit
id=cstr(request("id"))
if id="" or isnumeric(id)=false then
response.Write("未指定新闻的id号,请经过合法途径访问")
response.End()
end if

%>
<%
sql="update news set hit=hit+1 where id=" & cint(id)
conn.execute sql
set rs=server.createobject("ADODB.recordset")
sql="select * from news where id="&cint(id)
rs.open sql,conn,3,3
if rs.bof or rs.eof then 
response.Write("该新闻不存在")
response.End()
end if
hit=rs("hit")
title=rs("title")
newstime=rs("newstime")
content=rs("content")
conn.close
set conn=nothing
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=title%>——<%=site_name%></title>
<link href="style.css" rel="stylesheet" type="text/css" />
<SCRIPT type=text/javascript>
function fontZoom(size)
{
   $('content').style.fontSize=size+'px';
}
</SCRIPT>

<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>
</head>
<body>
<!--#include file="top.asp"-->
<div id="box">
<div id="left">
  <div id="nav4">点击排行</div>
<div id="nav4_content">
<ul>
 <%
 Set rs = Server.CreateObject("ADODB.RecordSet")
rs.open "select top "& index_lanmu_no &" * from news  order by hit desc",conn,1,1
if rs.eof and rs.bof then
response.Write("")
else
do while not rs.eof
%>
<li>·<a  href="show.asp?id=<%=rs("id")%>" ><%=rs("title")%></a></li>
<%
rs.movenext
loop
end if
rs.close
set rs=nothing
 %>
</ul>
</div>
<div id="nav4">投票调查</div>
<div id="nav4_content">
<script language="javascript" src="vote/votescript.asp?vid=7"></script>
</div>
</div>

<div id="right">
<div id="address">您的位置：本站首页&gt;新闻中心&gt;</div>
<h1><%=title%></h1>
<div id="job">发布时间：<%=newstime%> &nbsp;&nbsp;&nbsp;&nbsp;点击：<%=hit%>&nbsp;&nbsp;&nbsp;&nbsp;字体：【<A 
                  href="javascript:fontZoom(16)">大</A>】【<A 
                  href="javascript:fontZoom(14)">中</A>】【<A 
                  href="javascript:fontZoom(12)">小</A>】</div>
<div id="content">
<%=content%>
</div>
</div>
</div>
<!--#include file="bottom.asp"-->
</body>
</html>
