ASP新闻标题问题请教高手 以下是我一个新闻网页代码。
我想在每个新闻分页打开新闻的时候网页标题的前面就是新闻的名字怎么填加title调用代码我的数据库新闻的表名是news代码就是下面这个我的qq:122375399高手帮帮我...
我想在每个新闻分页 打开新闻的时候 网页标题的前面就是新闻的名字
怎么填加title调用代码
我的数据库 新闻的表名是news
代码就是下面这个
我的qq:122375399 高手帮帮我
谢谢
<!--#Include File="inc/Check_Sql.asp"-->
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/Skin_css.asp"-->
<!-- #include file="inc/config.asp" -->
<!--#include file="inc/Function.asp"-->
<!-- #include file="Head.asp" -->
<style type="text/css">
<!--
.tit { font-size: 14px;}
.black {COLOR: #000000; font-family: "Verdana", "宋体"; FONT-SIZE: 14px}
A.black:link { COLOR: #000066; TEXT-DECORATION: none}
A.black:visited { COLOR: #330000; TEXT-DECORATION: none}
A.black:active { COLOR: #FFFFFF; TEXT-DECORATION: none}
A.black:hover { COLOR: #ff0000; TEXT-DECORATION: none}
}
-->
</style>
<%id=request("id")%>
<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()
{
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>
<%
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="&id
rsnews.Open sql,conn,1,1
title=rsnews("title")
if rsnews.eof and rsnews.bof then
response.Write("数据库出错")
else
%>
<%
BigClass=request("BigClass")
SmallClass=request("SmallClass")
%>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="5" valign="top" bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td height="72" valign="top" bgcolor="#FFFFFF"><table width="746" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="tdbg_left" width="190" height="179" valign="top" ><!--#include file="left.asp"--></td>
<td width="6"></td>
<td valign="top"><table Class=border width="550" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="550" height="206" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="title_right" height="32"> <img src="Images/smallbook.jpg" width="10" height="10"> <a href="index.asp">首页</a> >> <a href="NewsClass.asp?BigClass=<%=BigClass%>"><%=BigClass%></a></td>
</tr>
</table>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr> 展开
怎么填加title调用代码
我的数据库 新闻的表名是news
代码就是下面这个
我的qq:122375399 高手帮帮我
谢谢
<!--#Include File="inc/Check_Sql.asp"-->
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/Skin_css.asp"-->
<!-- #include file="inc/config.asp" -->
<!--#include file="inc/Function.asp"-->
<!-- #include file="Head.asp" -->
<style type="text/css">
<!--
.tit { font-size: 14px;}
.black {COLOR: #000000; font-family: "Verdana", "宋体"; FONT-SIZE: 14px}
A.black:link { COLOR: #000066; TEXT-DECORATION: none}
A.black:visited { COLOR: #330000; TEXT-DECORATION: none}
A.black:active { COLOR: #FFFFFF; TEXT-DECORATION: none}
A.black:hover { COLOR: #ff0000; TEXT-DECORATION: none}
}
-->
</style>
<%id=request("id")%>
<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()
{
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>
<%
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="&id
rsnews.Open sql,conn,1,1
title=rsnews("title")
if rsnews.eof and rsnews.bof then
response.Write("数据库出错")
else
%>
<%
BigClass=request("BigClass")
SmallClass=request("SmallClass")
%>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="5" valign="top" bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td height="72" valign="top" bgcolor="#FFFFFF"><table width="746" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="tdbg_left" width="190" height="179" valign="top" ><!--#include file="left.asp"--></td>
<td width="6"></td>
<td valign="top"><table Class=border width="550" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="550" height="206" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="title_right" height="32"> <img src="Images/smallbook.jpg" width="10" height="10"> <a href="index.asp">首页</a> >> <a href="NewsClass.asp?BigClass=<%=BigClass%>"><%=BigClass%></a></td>
</tr>
</table>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr> 展开
4个回答
展开全部
应该修改head.asp文件,在<title>调用标题数据信息</title>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
<title>这里是支持动态显示的</title>
楼上说的正解
楼上说的正解
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
<!-- #include file="Head.asp" --> 既然有这句代码 那就需要在head。asp文件里修改了
<title><%'调出title的代码%></title>
<title><%'调出title的代码%></title>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询