快捷!方便!欢迎您用QQ登录华夏吴氏网 会员区*发表文章   设为首页 繁体中文 用户登录 我要投稿

 | 首页 | 资讯 | 图库 | 社区 | 祝福 | 故事 | 企业 | 书籍 | 网建 | 纪念馆 | 手机站 | 
您现在的位置: 吴氏网 >> 网建 >> 网建 >> 正文
美化内容分页1005
作者:gohwu    文章来源:本站原创    点击数:    更新时间:2012-10-5           ★★★

修改教程http://bbs.powereasy.net/forum67/thread-417745-1-1.aspx

修改步骤


 

一是把  “修改“'函数名:ManualPagination”中的内容全部替换成6.5的

二是把

    strPages = strPages & "<div align='center'  id='pagebar'><b>"
    If CurrentPage > 1 Then
        If UseCreateHTML > 0 And ClassPurview = 0 And rsArticle("InfoPoint") = 0 And rsArticle("InfoPurview") = 0 And strFileName <> "Print.asp" Then
            If CurrentPage > 2 Then
                If CurrentPage > ShowPageNum And CurrentPage <= totalPage And startFlag > 1 Then
                    strPages = strPages & "<a href='" & tmpArticleUrl & "_" & startFlag - 1 & FileExt_Item & "'>&lt;&lt;</a>"
                End If
                strPages = strPages & "<a href='" & tmpArticleUrl & "_" & CurrentPage - 1 & FileExt_Item & "'>" & XmlText_Class("ContentPages/PrevPage", "上一页") & "</a>"
            Else
                strPages = strPages & "<a href='" & tmpArticleUrl & FileExt_Item & "'>" & XmlText_Class("ContentPages/PrevPage", "上一页") & "</a>"
            End If
        Else
            If CurrentPage > ShowPageNum And CurrentPage <= totalPage Then
                strPages = strPages & "<a href='" & strFileName & "?ArticleID=" & ArticleID & "&Page=" & startFlag - 1 & "' >&lt;&lt;</a>"
            End If
            strPages = strPages & "<a href='" & strFileName & "?ArticleID=" & ArticleID & "&Page=" & CurrentPage - 1 & "'>" & XmlText_Class("ContentPages/PrevPage", "上一页") & "</a>"
        End If
    End If


 

    For i = startFlag To endFlag
        If i = CurrentPage Then
            strPages = strPages & "<font color='red'><a>" & CStr(i) & "</a></font>"
        Else
            If UseCreateHTML > 0 And ClassPurview = 0 And rsArticle("InfoPoint") = 0 And rsArticle("InfoPurview") = 0 And strFileName <> "Print.asp" Then
                If i > 1 Then
                    strPages = strPages & "<a href='" & tmpArticleUrl & "_" & i & FileExt_Item & "'>" & i & "</a>"
                Else
                    strPages = strPages & "<a href='" & tmpArticleUrl & FileExt_Item & "'>" & i & "</a>"
                End If
            Else
                strPages = strPages & "<a href='" & strFileName & "?ArticleID=" & ArticleID & "&Page=" & i & "'>" & i & "</a>"
            End If
        End If
    Next
    If endFlag < totalPage Then
        strPages = strPages & " ... "
    End If
    If CurrentPage < totalPage Then
        If UseCreateHTML > 0 And ClassPurview = 0 And rsArticle("InfoPoint") = 0 And rsArticle("InfoPurview") = 0 And strFileName <> "Print.asp" Then
            strPages = strPages & "<a href='" & tmpArticleUrl & "_" & CurrentPage + 1 & FileExt_Item & "'>" & XmlText_Class("ContentPages/NextPage", "下一页") & "</a> "
            If totalPage > ShowPageNum And endFlag < totalPage Then
                strPages = strPages & "<a href='" & tmpArticleUrl & "_" & endFlag + 1 & FileExt_Item & "'>&gt;&gt;</a>"
            End If
        Else
            strPages = strPages & "<a href='" & strFileName & "?ArticleID=" & ArticleID & "&Page=" & CurrentPage + 1 & "'>" & XmlText_Class("ContentPages/NextPage", "下一页") & "</a>"
            If totalPage > endFlag Then
                strPages = strPages & "<a href='" & strFileName & "?ArticleID=" & ArticleID & "&Page=" & endFlag + 1 & "'>&gt;&gt;</a>"
            End If
        End If
    End If
    strPages = strPages & "</b></div>"
    GetContentPages = strPages
End Function


 

用这个替换源文件strPages = strPages & "<div align='left'><b>"    strPages = strPages & "</b></div>"
    GetContentPagesDiv = strPages
End Function的所有内容

三是在css中写关于“pagebar”的定义

“pagebar”的定义/*文章内容-----分页*/
#pagebar { text-align:center; TEXT-DECORATION: none; width:570px; height:32px; font-size:12px; }
#pagebar a,#pagebar .page_now { display:block; margin-right:4px; padding:2px 5px; border:1px solid #1AAC2F; color:#fff; font-weight:800; background:url(/images/page.png) repeat-x  0 0 ;}
#pagebar a { display:inline;}
#pagebar A:visited {background-position:0 -30px; border:1px solid #F30; TEXT-DECORATION: none
}
#pagebar A:link {
 color:#FFF; border:1px solid #F30; background-position:0 -30px; TEXT-DECORATION: none
}
#pagebar A:active {
 color:#1AAC2F; border:1px solid #1AAC2F; background-position:0 -30px; TEXT-DECORATION: none
}
#pagebar a:hover {border:1px solid #1AAC2F; color:#F30; background-position:0 -30px;}
#pagebar .page_now { border:1px solid #F30; background-image:none; background:#666;}


下载修改码地址http://bbs.powereasy.net/handler/down.aspx?action=attach&id=76297

 

分享到:
文章录入:gohwu    责任编辑:gohwu 

 我要投稿

发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
  • 上一篇文章:
  • 下一篇文章:
  •    网友评论:(评论内容只代表网友观点,与本站立场无关!
    数据载入中,请稍后……
    发表评论
    昵 称: 验证码:
    评 分:
    内 容:
    0/1000)

    提示:Alt+S快速发表

     

    | 关于我们 | 加入收藏 | 联系站长 | 友情链接 | 版权申明 | 管理登录 | 服务专用QQ :116539779 点击这里给我发消息 :1015656481 点击这里给我发消息
    版权所有 Copyright © 1997-2014 China Mrs.Wu, All Rights Reserved 粤ICP备13015218号