画中画新闻

<!--是一个连接字符串<!--#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">&nbsp;</td>
  </tr>
</table>
</body>
</html>

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值