日期:2014-05-17  浏览次数:21337 次

如何将每篇新闻文章title标签改为文章标题?
大家好,目前网站上的新闻用的是和首页一样的title,我想请问一下如何将每篇文章的title都用文章的标题?

比如:

http://www.366200.org/shownews-396.html

他文章标题修改为:冠泉连城白鸭商城开通试运营,活动期间网上定购有惊喜!

------解决方案--------------------
head.asp要放下来。。位置不对。都执行完head.asp了才读数据库,当然为空了
HTML code


<!--#Include File="inc/Check_Sql.asp"-->
<!--#include file="inc/conn.asp"-->
<!-- #include file="inc/config.asp" -->
<!--#include file="inc/Function.asp"-->
<%owen=request("id")%>
<!--------------------读数据库放前面,要放到head.asp前面------------------------------->
<% 
id=cstr(request("id"))
Set rsnews=Server.CreateObject("ADODB.RecordSet") 
sql="update news set hits=hits+1 where id="&id
conn.execute sql
sql="select * from news where id="&owen
rsnews.Open sql,conn,1,1
title=rsnews("title")
if rsnews.eof and rsnews.bof then
response.Write("数据库出错")
else
%>
<!-- #include file="Head.asp" -->

<script language="JavaScript" type="text/JavaScript">
function fontZoom(size){
 document.getElementById('fontZoom').style.fontSize=size+'px'
}
</SCRIPT>
<SCRIPT language=JavaScript>
var currentpos,timer;

function initialize()a
{
timer=setInterval("scrollwindow()",50);
}
function sc(){
clearInterval(timer);
}
function scrollwindow()
{
currentpos=document.body.scrollTop;
window.scroll(0,++currentpos);
if (currentpos != document.body.scrollTop)
sc();
}
document.onmousedown=sc
document.ondblclick=initialize
</SCRIPT>