从网上下载KesionCMS V7 Free,想为文章添加digg功能,但是按照说明,将下面代码放到模板页后显示不正常,代码如下:
<script language="JavaScript" src="{$GetSiteUrl}ks_inc/digg.js" type="text/javascript"></script>
<div class="mark">
<div id="mark0" style="background-position: -189px 0pt;">
<div class="bar">
<div style="width: 0px;" id="digzcimg"></div>
</div>
<span id="barnum1"><span id="perz{$InfoID}">0%</span> (<span id=s{$InfoID}>0</span>)</span>
</div>
<div id="mark1" style="background-position: -378px 0pt;">
<div class="bar">
<div style="width: 0px;" id="digcimg"></div>
</div>
<span id="barnum2"><span id="perc{$InfoID}">0%</span> (<span id="c{$InfoID}">10</span>)</span>
</div>
</div>
<script language="JavaScript" type="text/javascript">show_digg({$ChannelID},{$InfoID},'{$GetSiteUrl}');</script>
然后查看文章页
顶:0%,然后ajax图标一直转;踩:0%,(10)
点击顶踩就出现页面错误。(截图在附件里)
高手们请指点一下。小弟期待!