Код HTML
<script type="text/javascript" src="http://virus-corp.do.am/js/Lajer.js"></script> <div class="rate"> <a class="orating_m" title="Не нравится" href="#" onclick="rateForm(-1,);return false"></a> <a class="orating_p" title="Нравится" href="#" onclick="rateForm(1,);return false"></a> <a class="orating_res"><b title="Голосов: " id="rate_" class="nullRate"><script type="text/javascript">document.write(Math.round(0)-0)</script></b> </a> </div> |
1.Ссылка на js документ: (http://virus-corp.do.am/js/Lajer.js)
Код CSS
.rate{width:73px;height:25px;position:relative;text-align:center;} a.orating_res,span.orating_res{background:#AAA;font-size:11px;color:#fff;padding:4px 6px;border-radius:3px;line-height:26px;box-shadow:inset 0 1px 1px rgba(0,0,0,0.2)} a.orating_res:hover{color:#f0f0f0} a.orating_m,a.orating_p{height:21px;width:21px;line-height:26px;margin-top:3px;background:url(http://nexfilm.ru/js/ratesimg.png) no-repeat} a.orating_m{float:right;background-position:-21px -24px} a.orating_m:hover{background-position:-21px 100%} a.orating_m.orated{background-position:-21px -24px;margin-top:3px} a.orating_p{float:left;background-position:0 -24px} a.orating_p:hover{background-position:0 100%} a.orating_p.orated{background-position:0 100%} |
1. Ссылка на картинку с лайками: (http://nexfilm.ru/js/ratesimg.png)