<!--是一个连接字符串<!--#include file="conn.asp"-->-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<SCRIPT language=JavaScript>
//发布日期
pagepubtime = "2005-12-01";
//广告显示判断
function checkPubTime(){
//分解年、月、日
DateTime = new Array();
DateTime = pagepubtime.split("-");
var year = DateTime[0];
var month = DateTime[1];
var day = DateTime[2];
//用得到的年、月、日生成日期对象
var pubTime = new Date(year,month - 1,day);
//得到当前日期
var now = new Date();
//计算出当前日期与发布日期之间的毫秒差值
var dif = now.getTime() - pubTime.getTime();
//需要检测的日期差
var difDay = 20;
//一天24小时、一小时60分、一分60秒、一秒1000毫秒
if (dif > difDay * 24 * 60 * 60 * 1000)
{
return false;
}
return true;
}
</SCRIPT>
</head>
<!--把此处换成自己的数据表<%set rs=server.CreateObject("adodb.recordset")
sql="select * from report where id=11"
rs.open sql,conn,3,1
%>-->
<body>
<table cellspacing="0" cellpadding="0">
<tr>
<td align="middle"><%=rs("title")%></td>
</tr>
</table>
<table cellspacing="0" cellpadding="0">
<tr>
<td class="f14" valign="top">
<TABLE cellSpacing=0 cellPadding=0 align=left border=0>
<TBODY>
<TR>
<TD>
<DIV id=PublicRelation5 style="DISPLAY: none"
name="PublicRelation"><!--NEWSZW_HZH_BEGIN-->
<TABLE style="MARGIN: 10px 8px 3px 7px" cellSpacing=0
cellPadding=0 border=0>
<TBODY>
<TR>
<TD><!--画中画广告开始-->
<TABLE cellSpacing=0 cellPadding=0 align=left
border=0><TBODY>
<TR>
<TD><!--新闻内页画中画开始-->
<IFRAME marginWidth=0 marginHeight=0
src="aa_1.asp"
frameBorder=0 width=360 scrolling=no
height=300>
</IFRAME><!--体育新闻内页画中画结束--></TD></TR></TBODY></TABLE><!--画中画广告结束--></TD></TR>
</TBODY></TABLE><!--NEWSZW_HZH_END--></DIV></TD></TR></TBODY></TABLE>
<SCRIPT>
//<!--广告发布-->
<!--
if (checkPubTime())
{
document.getElementById("PublicRelation5").style.display="";
}
-->
</SCRIPT>
新闻内容<%=rs("body")%>
</td>
</tr>
</table>
<table cellspacing="0" cellpadding="0">
<!--DWLayoutTable-->
<tr>
<td width="563"> </td>
</tr>
</table>
</body>
</html>