ASP网站如何调用文章标题作为网页title?
<title><%=title_access_name%>文章标题</title><metaname="keywords"content="关键词"><metaname=...
<title><%=title_access_name%>文章标题</title>
<meta name="keywords" content="关键词">
<meta name="description" content="文字简介">
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="inc/css.css" rel="stylesheet" type="text/css">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
</head>
<!--#include file="tc.asp"-->
<!--#include file="conn.asp"-->
<!--<meta http-equiv="Content-Type" content="text/html; charset=gb2312">-->
<body>
<%
newlb=1
%>
<!--#include file="access_2_ck.asp"-->
<!--#include file="logo.asp"-->
<!--#include file="dh.asp"-->
文章标题<%=title_access_name%>
来源:<%=left(from_access_name,15)%>
阅读
次数:<%=hits_access_name%>
<%=content_access_name%>
</body>
</html> 展开
<meta name="keywords" content="关键词">
<meta name="description" content="文字简介">
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="inc/css.css" rel="stylesheet" type="text/css">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
</head>
<!--#include file="tc.asp"-->
<!--#include file="conn.asp"-->
<!--<meta http-equiv="Content-Type" content="text/html; charset=gb2312">-->
<body>
<%
newlb=1
%>
<!--#include file="access_2_ck.asp"-->
<!--#include file="logo.asp"-->
<!--#include file="dh.asp"-->
文章标题<%=title_access_name%>
来源:<%=left(from_access_name,15)%>
阅读
次数:<%=hits_access_name%>
<%=content_access_name%>
</body>
</html> 展开
2个回答
展开全部
<!--#include file="tc.asp"-->
<!--#include file="conn.asp"-->
<title><%=title_access_name%></title>
<meta name="keywords" content="关键词">
<meta name="description" content="文字简介">
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="inc/css.css" rel="stylesheet" type="text/css">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
</head>
注意 把<!--#include file="tc.asp"-->
<!--#include file="conn.asp"-->
这两句放在最顶上就可以了
<!--#include file="conn.asp"-->
<title><%=title_access_name%></title>
<meta name="keywords" content="关键词">
<meta name="description" content="文字简介">
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="inc/css.css" rel="stylesheet" type="text/css">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
</head>
注意 把<!--#include file="tc.asp"-->
<!--#include file="conn.asp"-->
这两句放在最顶上就可以了
更多追问追答
追问
不行。
追答
忘了告诉你 你查询数据库的语句也要在最上面!
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
<!--#include file="tc.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="access_2_ck.asp"-->
<!--#include file="logo.asp"-->
<!--#include file="dh.asp"-->
<title><%=title_access_name%>文章标题</title>
<meta name="keywords" content="关键词">
<meta name="description" content="文字简介">
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="inc/css.css" rel="stylesheet" type="text/css">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
</head>
<!--<meta http-equiv="Content-Type" content="text/html; charset=gb2312">-->
<body>
<%
newlb=1
%>
文章标题<%=title_access_name%>
来源:<%=left(from_access_name,15)%>
阅读
次数:<%=hits_access_name%>
<%=content_access_name%>
</body>
</html>
<!--#include file="conn.asp"-->
<!--#include file="access_2_ck.asp"-->
<!--#include file="logo.asp"-->
<!--#include file="dh.asp"-->
<title><%=title_access_name%>文章标题</title>
<meta name="keywords" content="关键词">
<meta name="description" content="文字简介">
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="inc/css.css" rel="stylesheet" type="text/css">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
</head>
<!--<meta http-equiv="Content-Type" content="text/html; charset=gb2312">-->
<body>
<%
newlb=1
%>
文章标题<%=title_access_name%>
来源:<%=left(from_access_name,15)%>
阅读
次数:<%=hits_access_name%>
<%=content_access_name%>
</body>
</html>
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询