请求大家怎么把asp语言网站新闻标题和网页title一致呢
下面这是我的代码:news_title.asp文件里的代码:
<!--#include file="title_inc.asp"-->
<title><%=rs("newspage_keys")%></title>
title_inc.asp文件里的代码:
<!--#include file="conn.asp"-->
<%
set rs=Server.CreateObject("adodb.recordset")
sql="select * from basec"
set rs=conn.Execute(sql)
%>
news_shop.asp文件里的代码:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<!--#include file="inc/news_title.asp"-->
<link href="css/yui.css" rel="stylesheet" type="text/css" />
<link href="css/stype.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="warp">
<!--#include file="header.asp"-->
<div class="banner">
<!--要有focus.swf-->
<script type="text/javascript" language="javascript">
<!--
var pics="";
var links="";
var texts="";
pics=pics + "images/banner1.jpg";
texts=texts + "";
links=links + escape("#");
pics=pics +"|";
texts=texts +"|";
links=links+"|";
pics=pics + "images/banner2.jpg";
texts=texts + "";
links=links + escape("#");
pics=pics +"|";
texts=texts +"|";
links=links+"|";
pics=pics + "images/banner3.jpg";
texts=texts + "";
links=links + escape("#");
var focus_width=981 //图片宽
var focus_height=225 //图片高
var text_height=20 //底部文字
var swf_height = focus_height
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="focus.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque"><param name="wmode" value="transparent">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&borderwidth='+focus_width+'&borderheight='+focus_height+'">');
document.write('<embed src="pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'" menu="false" bgcolor="#ffffff" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www. />'); document.write('</object>');
//-->
</script>
</div>
<div class="main1">
<div class="left_sider">
<h1><p>新闻详情</p></h1>
<div class="news_sider">
<!--#include file="inc/news_show_write.asp"-->
大家帮我看下,我该怎么改了,我想把新闻内容的标题跟网页的title是一致的,但我不知道该怎么改,希望大家能帮帮我,谢谢大家了。
本人qq:525007835,希望大家帮帮忙哦,我这边还需要建网站的,谢谢大家了