尝试把article-single中的那段js代码插到multi里,结果一刷新,计数器都会加1,游览次数就暴涨,只好重新改回来。
其实那段js的功能就是刷新一次,增加一次,multi中的内容会显示到首页,所以刷新首页会导致游览次数暴涨。
今天无意中找到了解决方法,把<#ZC_MSG130#>:<#article/viewnums#> 加到multi里就行了。
大家可以去我那看看效果:
http://www.iscott.cn
附上b_article-multi.html
复制内容到剪贴板
代码:
<div class="post cate<#article/category/id#> auth<#article/author/id#>">
<h4 class="post-date"><#article/posttime/longdate#></h4>
<h2 class="post-title"><a href="<#article/url#>"><#article/title#></a></h2>
<div class="post-body"><#article/intro#></div>
<h5 class="post-tags"><#ZC_MSG138#>: <#template:article_tag#></h5>
<h6 class="post-footer">
<#ZC_MSG011#>:<#article/author/name#> | <#ZC_MSG012#>:<#article/category/name#> | <#ZC_MSG013#>:<#article/commnums#> | <#ZC_MSG130#>:<#article/viewnums#>
</h6>
</div>[
本帖最后由 iscott 于 2006-8-18 02:51 PM 编辑 ]