ASP中怎么让网站标题与文章标题一致?
<html><head><!--#includefile="yy_conn.asp"--><!--#includefile="imagewh.asp"--><!--#in...
<html><head><!--#include file="yy_conn.asp"--><!--#include file="imagewh.asp"--><!--#include file="title.asp"--><title><%=tTitle%> - 地磅遥控器|地磅控制器|地磅干扰器</title>
<%id=request("id")%><%lm=request("lm")%><% typeid=request("typeid")%>
<meta name="KEYWords" contect="<%=word%>"><meta name="DEscription" contect="<%=ms%>"><meta name="Generator" contect="dreamweaver"><meta name="Author" contect="baiduxf.com"><meta name="Robots" contect= "all">
<link href="style/css.css" rel="stylesheet" type="text/css"><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><body><!--#include file="top.asp" --><table width="1002" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="233" valign="top"> <!--#include file="left.asp"--> </td> <td valign="top"><table width="769" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="34" height="40" background="images/MICO.jpg"> </td> <td background="images/Mmenubj.jpg" class="white1"><!--#include file="include/nt.asp" --></td> </tr> </table> <!--#include file="include/n2.asp" --></td> </tr></table>
<!--#include file="foot.asp"--></body></html> 展开
<%id=request("id")%><%lm=request("lm")%><% typeid=request("typeid")%>
<meta name="KEYWords" contect="<%=word%>"><meta name="DEscription" contect="<%=ms%>"><meta name="Generator" contect="dreamweaver"><meta name="Author" contect="baiduxf.com"><meta name="Robots" contect= "all">
<link href="style/css.css" rel="stylesheet" type="text/css"><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><body><!--#include file="top.asp" --><table width="1002" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="233" valign="top"> <!--#include file="left.asp"--> </td> <td valign="top"><table width="769" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="34" height="40" background="images/MICO.jpg"> </td> <td background="images/Mmenubj.jpg" class="white1"><!--#include file="include/nt.asp" --></td> </tr> </table> <!--#include file="include/n2.asp" --></td> </tr></table>
<!--#include file="foot.asp"--></body></html> 展开
2个回答
展开全部
文章标题从数据库中取出并赋值给变量,
然后在HTML中的<title>变量位置</title>中显示出来即可
然后在HTML中的<title>变量位置</title>中显示出来即可
追问
asp真心不会, 能说简单点吗?
追答
我举个简单的例子:
" response.write " " response.write " " & rs("标题") & "" response.write " "
response.write " "
response.write " " & rs("标题") response.write " " & rs("查看次数")
response.write " " & rs("内容")
response.write "" response.write ""
end ifrs.close Conn.Execute("update 新闻 set 查看次数 = 查看次数 + 1 where 编号 = "& ID)Call EndConnection()%>返回新闻列表
以上代码最关键的是:response.write " " & rs("标题") & "" 这个
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询