温馨提示:这篇文章已超过517天没有更新,请注意相关的内容是否还可用!
1、首先需要你参考帝国cms默认点赞字段再新建一个点踩的字段。
<script src="[!--news.url--]e/data/js/ajax.js"></script>
示例代码
<a href="JavaScript:makeRequest('/e/public/digg?classid='.$r[classid].'&id='.$r[id].'&dotop=0&doajax=1&ajaxarea=diggdown'.$r[id].'','EchoReturnedText','GET','');" class="like fall">
<label class="num">利空 <em id="diggdown'.$r[id].'" style="font-style:normal"><script src=/e/public/ViewClick?classid='.$r[classid].'&id='.$r[id].'&down=6></script></em></label>
</a>
<a href="JavaScript:makeRequest('/e/public/digg?classid='.$r[classid].'&id='.$r[id].'&dotop=1&doajax=1&ajaxarea=diggnum'.$r[id].'','EchoReturnedText','GET','');" class="like rose">
<label class="num">利好 <em id="diggnum'.$r[id].'" style="font-style:normal"><script src=/e/public/ViewClick?classid='.$r[classid].'&id='.$r[id].'&down=5></script></em></label>
</a>
还没有评论,来说两句吧...