asp如何把网页标题设成文章名
我的代码如下:<!--#includefile="datebase.asp"--><head><metahttp-equiv="Content-Type"content=...
我的代码如下:
<!--#include file="datebase.asp"-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>我要这里显示文章的标题</title>
<meta name="Keywords" content="XXX网站" />
<meta name="Description" content="XXX网站" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="javascript">
function killErrors()
{
return true;
}
window.onerror = killErrors;
</script>
</head>
<body>
<table width="990" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><!--#include file="top.asp"-->
<table width="970" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="225" valign="top"><!--#include file="left.asp"--></td>
<td width="745" valign="top"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
<tr>
<td>
<%
dim id
id=request.QueryString("id")
set rs=server.CreateObject("adodb.recordset")
sql="select * from news where articleid="&id
rs.open sql,conn,1,1
if not rs.eof then
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="6%"><img src="images/list_logo.jpg" width="32" height="25" /></td>
<td width="94%" class="title2"><strong><%= rs("cpfl2") %></strong></td>
</tr>
<tr>
<td colspan="2"><img src="images/xian2.jpg" width="700" height="4" /></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="10"></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="29" align="center" class="txt2"><b><%= rs("title") %></b></td>
</tr>
<tr>
<td height="40" class="txt1">出处:<%= rs("ly") %> 作者:<%=rs("zuozhe") %> 编辑:<%= rs("cbr") %> 时间:<%=rs("dateandtime") %></td>
</tr>
<tr>
<td class="txt2"><%= rs("content") %></td>
</tr>
</table></td>
</tr>
<tr>
<td height="174" align="center" valign="bottom"><a href="#" class="a9" onClick="history.back();return false;">[返回]</a></td>
</tr>
</table>
<p>
<%
end if
rs.close
set rs=nothing
%>
</td>
</tr>
</table>
<table width="970" border="0" align="center" cellpadding="0" cellspacing="0">
<tr> 展开
<!--#include file="datebase.asp"-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>我要这里显示文章的标题</title>
<meta name="Keywords" content="XXX网站" />
<meta name="Description" content="XXX网站" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="javascript">
function killErrors()
{
return true;
}
window.onerror = killErrors;
</script>
</head>
<body>
<table width="990" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><!--#include file="top.asp"-->
<table width="970" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="225" valign="top"><!--#include file="left.asp"--></td>
<td width="745" valign="top"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
<tr>
<td>
<%
dim id
id=request.QueryString("id")
set rs=server.CreateObject("adodb.recordset")
sql="select * from news where articleid="&id
rs.open sql,conn,1,1
if not rs.eof then
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="6%"><img src="images/list_logo.jpg" width="32" height="25" /></td>
<td width="94%" class="title2"><strong><%= rs("cpfl2") %></strong></td>
</tr>
<tr>
<td colspan="2"><img src="images/xian2.jpg" width="700" height="4" /></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="10"></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="29" align="center" class="txt2"><b><%= rs("title") %></b></td>
</tr>
<tr>
<td height="40" class="txt1">出处:<%= rs("ly") %> 作者:<%=rs("zuozhe") %> 编辑:<%= rs("cbr") %> 时间:<%=rs("dateandtime") %></td>
</tr>
<tr>
<td class="txt2"><%= rs("content") %></td>
</tr>
</table></td>
</tr>
<tr>
<td height="174" align="center" valign="bottom"><a href="#" class="a9" onClick="history.back();return false;">[返回]</a></td>
</tr>
</table>
<p>
<%
end if
rs.close
set rs=nothing
%>
</td>
</tr>
</table>
<table width="970" border="0" align="center" cellpadding="0" cellspacing="0">
<tr> 展开
展开全部
<!--#include file="datebase.asp"-->
<%
dim id
id=request.QueryString("id")
set rs=server.CreateObject("adodb.recordset")
sql="select * from news where articleid="&id
rs.open sql,conn,1,1
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>
<% if not rs.eof then
reponse.write rs("标题字段名")
end if
%>我要这里显示文章的标题</title>
<meta name="Keywords" content="XXX网站" />
<meta name="Description" content="XXX网站" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="javascript">
function killErrors()
{
return true;
}
window.onerror = killErrors;
</script>
</head>
<body>
<table width="990" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><!--#include file="top.asp"-->
<table width="970" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="225" valign="top"><!--#include file="left.asp"--></td>
<td width="745" valign="top"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
<tr>
<td>
<% if not rs.eof then
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="6%"><img src="images/list_logo.jpg" width="32" height="25" /></td>
<td width="94%" class="title2"><strong><%= rs("cpfl2") %></strong></td>
</tr>
<tr>
<td colspan="2"><img src="images/xian2.jpg" width="700" height="4" /></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="10"></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="29" align="center" class="txt2"><b><%= rs("title") %></b></td>
</tr>
<tr>
<td height="40" class="txt1">出处:<%= rs("ly") %> 作者:<%=rs("zuozhe") %> 编辑:<%= rs("cbr") %> 时间:<%=rs("dateandtime") %></td>
</tr>
<tr>
<td class="txt2"><%= rs("content") %></td>
</tr>
</table></td>
</tr>
<tr>
<td height="174" align="center" valign="bottom"><a href="#" class="a9" onClick="history.back();return false;">[返回]</a></td>
</tr>
</table>
<p>
<%
end if
rs.close
set rs=nothing
%>
</td>
</tr>
</table>
<table width="970" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<%
dim id
id=request.QueryString("id")
set rs=server.CreateObject("adodb.recordset")
sql="select * from news where articleid="&id
rs.open sql,conn,1,1
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>
<% if not rs.eof then
reponse.write rs("标题字段名")
end if
%>我要这里显示文章的标题</title>
<meta name="Keywords" content="XXX网站" />
<meta name="Description" content="XXX网站" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="javascript">
function killErrors()
{
return true;
}
window.onerror = killErrors;
</script>
</head>
<body>
<table width="990" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><!--#include file="top.asp"-->
<table width="970" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="225" valign="top"><!--#include file="left.asp"--></td>
<td width="745" valign="top"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
<tr>
<td>
<% if not rs.eof then
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="6%"><img src="images/list_logo.jpg" width="32" height="25" /></td>
<td width="94%" class="title2"><strong><%= rs("cpfl2") %></strong></td>
</tr>
<tr>
<td colspan="2"><img src="images/xian2.jpg" width="700" height="4" /></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="10"></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="29" align="center" class="txt2"><b><%= rs("title") %></b></td>
</tr>
<tr>
<td height="40" class="txt1">出处:<%= rs("ly") %> 作者:<%=rs("zuozhe") %> 编辑:<%= rs("cbr") %> 时间:<%=rs("dateandtime") %></td>
</tr>
<tr>
<td class="txt2"><%= rs("content") %></td>
</tr>
</table></td>
</tr>
<tr>
<td height="174" align="center" valign="bottom"><a href="#" class="a9" onClick="history.back();return false;">[返回]</a></td>
</tr>
</table>
<p>
<%
end if
rs.close
set rs=nothing
%>
</td>
</tr>
</table>
<table width="970" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询