标题: ASP基础实例教程之八个小时打造新闻发布系统七
ljjk5
元帅
Rank: 1


荣誉会员奖章
UID 46706
精华 1
积分 99426
帖子 49690
威望 554
金币 48489
热心 505
阅读权限 100
注册 2007-2-25
状态 离线
ASP基础实例教程之八个小时打造新闻发布系统七

下面我们来做前台文件newshow.asp
代码如下:
CODE:

<!--#include file="conn.asp"-->
<link rel="stylesheet" href="bluepagenews.css" type="text/css">
<%
exec="select * from aa where id="&request.querystring("id")
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,1,1
%>
<table width="23%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight="#000000" bordercolordark="#FFFFFF">
<tr>
  <td width="167" height="31" align="center">新闻</td>
</tr>
</table>

<table width="59%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight="#000000" bordercolordark="#FFFFFF">
  <tr>
    <td height="31">标题:<%=rs("title")%>     </td>
  </tr>
  <tr>
    <td height="26">内容:</td>
  </tr>
  <tr>
    <td height="47" valign="top"><%=rs("content")%> </td>
  </tr>
  <tr>
    <td height="25" align="center"> </td>
  </tr>
</table>




代码解释:
(1)
<link rel="stylesheet" href="bluepagenews.css" type="text/css">
这是调用外部的css文件
源文件里面有。。大家自己下载

网友 ljjk5 签名 - 网友社区 ===
顶部
[广告] 免费域名(Free Subdomain) 免费空间(Free hosting) PR查询(Google Pagerank)



当前时区 GMT+8, 现在时间是 2008-11-23 19:59
信产部ICP备案:京ICP备05066424号 北京市公安局网监备案:1101050648号

Powered by Discuz! 5.5.0
清除 Cookies - 联系我们 - 网友俱乐部 - Archiver - WAP