Đánh giá box từ 0* đến 5*
demo: http://skinfm.123.st/ xem box
demo: http://skinfm.123.st/ xem box
- Code:
<span style="float:right" class="sao{catrow.forumrow.POSTS}">[<img src="http://i44.servimg.com/u/f44/16/54/92/12/rating11.png"/>]</span>
<script type="text/javascript">$(function(){if({catrow.forumrow.POSTS}>50){$(".sao{catrow.forumrow.POSTS}").replaceWith('<span style="float:right">[<img src="http://i44.servimg.com/u/f44/16/54/92/12/rating10.png"/>]</span>')};if({catrow.forumrow.POSTS}>40&&{catrow.forumrow.POSTS}<50){$(".sao{catrow.forumrow.POSTS}").replaceWith('<span style="float:right">[<img src="http://i44.servimg.com/u/f44/16/54/92/12/rating12.png"/>]</span>')};if({catrow.forumrow.POSTS}>30&&{catrow.forumrow.POSTS}<40){$(".sao{catrow.forumrow.POSTS}").replaceWith('<span style="float:right">[<img src="http://i44.servimg.com/u/f44/16/54/92/12/rating13.png"/>]</span>')};if({catrow.forumrow.POSTS}>20&&{catrow.forumrow.POSTS}<30){$(".sao{catrow.forumrow.POSTS}").replaceWith('<span style="float:right">[<img src="http://i44.servimg.com/u/f44/16/54/92/12/rating14.png"/>]</span>')};if({catrow.forumrow.POSTS}>10&&{catrow.forumrow.POSTS}<20){$(".sao{catrow.forumrow.POSTS}").replaceWith('<span style="float:right">[<img src="http://i44.servimg.com/u/f44/16/54/92/12/rating15.png"/>]</span>')}});</script>