| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 2289 人关注过本帖
标题:怎么把新闻页面的标题调用成手写的?
只看楼主 加入收藏
feixingxing
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2017-2-27
收藏
 问题点数:0 回复次数:0 
怎么把新闻页面的标题调用成手写的?
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/config.asp" -->
<!--#include file="page.asp" -->
<%
    ssfl=request.QueryString("ssfl")
    dim tit
    if ssfl="" then
        tit="新闻资讯"
    else
        set rsq=server.createobject("adodb.recordset")
        exec="select * from news_fl where id="&ssfl
        rsq.open exec,conn,1,1
        tit=rsq("title")
    end if            
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><%=tit%> - <%=w78_home%></title>
<meta name="keywords" content="<%=w78_keywords%>" />
<meta name="description" content="<%=w78_description%>" />
<link href="css/resetcommon.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!--#include file="nei_head.asp"-->
<div style="width:100%; height:240px; text-align:center;">
    <img src="/images/nei_banner_news.jpg">
</div>
<div class="content">
    <div class="left">
        <!--#include file="left_products.asp"-->
        <!--#include file="left_contact.asp"-->
    </div>
    <div class="right">
        <div class="righttop"></div>
        <div class="plc">
            <span><a href="index.asp">首页</a> &raquo; <%=tit%></span>
        </div>
        <div class="rightbot"></div>
        <div class="righttop"></div>
        <div class="right_main">
            <div class="news_con">
                <%
                    set rs=server.createobject("adodb.recordset")
                    if ssfl="" then
                    exec="select * from News order by id desc"
                    else
                    exec="select * from News where ssfl="&ssfl&" order by id desc"
                    end if
                    rs.open exec,conn,1,1
                    if rs.eof then
                    response.Write "<div style=""padding:10px"">此分类暂无记录!</a>"
                    response.End()
                    else
                %>
                <%
                        rs.PageSize =""&config("newsclass")&""
                        iCount=rs.RecordCount
                        iPageSize=rs.PageSize
                        maxpage=rs.PageCount
                        page=request("page")
                        if Not IsNumeric(page) or page="" then
                        page=1
                        else
                        page=cint(page)
                        end if
                        if page<1 then
                        page=1
                        elseif  page>maxpage then
                        page=maxpage
                        end if
                        rs.AbsolutePage=Page
                        if page=maxpage then
                        x=iCount-(maxpage-1)*iPageSize
                        else
                        x=iPageSize
                        end if
                        For i=1 To x
                %>
                <dl class="news_dl">
                    <dt><span class="dt_2"><%=year(rs("data"))%></span> <span class="dt_3"><%=month(rs("data"))%>-<%=day(rs("data"))%></span></dt>
                    <dd>
                        <a href="look_news.asp?id=<%=rs("id")%>" class="dt_1"><%=rs("title")%></a>
                        <p><%=InterceptString(DelHtml(rs("body")),200)%></p>
                    </dd>
                    <div class="clear"></div>
                </dl>
                <%
                    rs.movenext
                    next
                    end if
                %>
                <div class="clear"></div>
                <div class="Page clearfix">
                    <%'以下显示分页
                         call PageControl(iCount,maxpage,page,"border=0 align=center","<p align=center>")
                         rs.close
                         set rs=nothing
                    %>
                </div>
            </div>
        </div>
    </div>
    <div class="clear"></div>
</div>
<!--#include file="foot.asp"-->
</body>
</html>

http://www.,已经上线的网站,现在点开页面是一个总标题,而不是新闻的详细标题,我需要改动哪里才能实现效果?
搜索更多相关主题的帖子: -- page if div class 
2017-05-19 10:59
快速回复:怎么把新闻页面的标题调用成手写的?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.097685 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved