#article/id#> 如還沒(méi)人留言就顯示“Add comments”,只有一條留言顯示“1 comment” ,多條留言顯示“n comments”;然后在CSS中定義.post-comment就可以了(當(dāng)然你也可以改成其它)。" />

亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

z-blog根據(jù)不同留言數(shù)顯示不同文字

互聯(lián)網(wǎng)   發(fā)布時(shí)間:2009-06-06 15:43:16   作者:jb51   我要評(píng)論
關(guān)鍵字描述:不同 文字 顯示 留言 根據(jù) " < > #article/id#> 如還沒(méi)人留言就顯示“Add comments”,只有一條留言顯示“1 comment” ,多條留言顯示“n comments”;然后在CSS中定義.post-comment就可以了(當(dāng)然你也可以改成其它)。
關(guān)鍵字描述:不同 文字 顯示 留言 根據(jù) " < > #article/id#>

如還沒(méi)人留言就顯示“Add comments”,只有一條留言顯示“1 comment” ,多條留言顯示“n comments”;然后在CSS中定義.post-comment就可以了(當(dāng)然你也可以改成其它)。可用于b_article-multi.html 摘要文章模板,b_article-istop.html 置頂文章模板,b_article-single.html 日志頁(yè)文章模板這幾個(gè)模板文件中。

  • 1. 英文顯示版
    <span class="post-comment">
    
    <a id="p_comments<#article/id#>" href="<#article/url#>#comments"><#article/commnums#> comments</a>
    
    <script type="text/javascript">if(<#article/commnums#>==0)
    {document.getElementById("p_comments<#article/id#>").innerHTML="Add comments"};
    if(<#article/commnums#>==1)
    {document.getElementById("p_comments<#article/id#>").innerHTML="1 comment"}</script> </span>
  • 2. 中文顯示版
    <span class="post-comment">
    
    <a id="p_comments<#article/id#>" href="<#article/url#>#comments"><#article/commnums#> 條評(píng)論了</a>
    
    <script type="text/javascript">if(<#article/commnums#>==0)
    {document.getElementById("p_comments<#article/id#>").innerHTML="發(fā)表評(píng)論"}</script> </span>

    相關(guān)文章

    最新評(píng)論