[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
Форум » Ucoz » Скрипты для ucoz » 10 Бальная система оценок (Рабочая 100%) для ucoz
10 Бальная система оценок (Рабочая 100%) для ucoz
offtop
Дата: Понедельник, 20.05.2013, 10:47 | Сообщение # 1
Оффлайн
Пользователи
Сообщений: 216
IP: Скрытная информация


Всем добра. Это сноГггго я)) Тут не давно скрипт хотел написать - 10 бальная система оценок, но, во 1 что-то не получалось, и я забил на это... Я знал что есть уже такой "Скрипт" хотя там использовалось одно CSS. И был тот скрипт совсем не доработан. И так, я немного подумав продолжил его дело, а автор того скрипта на сколько я знаю ◊ǺłmằŹ◊ , в итоге я сделал то, что хотел.

Полноценная 10 бальная система оценок, для любого модуля!

Уникальность:
- Можно оценить материал от 0 до 10 баллов.
- При выборе оценки, вы видете сколько звезд вы выбрали из 10.
- Сделано для 2 дизайнов (Светлый и Темный).

Установка:
1) Скачайте архив. Создайте папку rating10point залейте в неё файлы из архива. Скачать архив

2) Поставьте код в "вид катериала и комментариев к нему":
Код
<link type="text/css" rel="StyleSheet" href="/rating10point/RatingByMaxGoodLife.css">     
     <div class="rating_style"> <!-- 10PointSystem by max_good_life -->     
     <div id="rating_bg" align="center">     
     <div id="rating_otstup"><div id="rating_title"><table border="0" cellspacing="0" cellpadding="0" width="98%"><td align="left" id="rating_title_name">Рейтинг <i>$ENTRY_NAME$ <?if($CAT_NAME$)?>($CAT_NAME$)<?endif?></i></td><td align="right" id="rating_answer">Проголосовало $RATED$ чел.</td></table></div></div>     
     <div id="rating_stars" align="center">     
     <table border="0" cellspacing="0" cellpadding="0" width="98%"><td align="left">     
     <ul id="uStarRating$ID$" class="u-star-rating-30" title="Рейтинг: <?($RATING$*2)?>/$RATED$">     
     <li class="u-current-rating" id="uCurStarRating$ID$" style=""></li>     
     <?if($RATE_FORM$)?>     
     <li class="u-star-li-$ID$"><a href="#" onclick="ustarrating('$ID$',0.5);new Image().src = 'http://counter.yadro.ru/hit;joncounter004?r'+escape(document.referrer)+((typeof(screen)=='undefined')?'':';s'+screen.width+'*'+screen.height+'*'+(screen.colorDepth?screen.colorDepth:screen.pixelDepth))+';u'+escape(document.URL)+';'+Math.random();;return false;" class="u-one-star">1</a></li>     
     <li class="u-star-li-$ID$"><a href="#" onclick="ustarrating('$ID$',1);new Image().src = 'http://counter.yadro.ru/hit;joncounter004?r'+escape(document.referrer)+((typeof(screen)=='undefined')?'':';s'+screen.width+'*'+screen.height+'*'+(screen.colorDepth?screen.colorDepth:screen.pixelDepth))+';u'+escape(document.URL)+';'+Math.random();;return false;" class="u-two-stars">2</a></li>     
     <li class="u-star-li-$ID$"><a href="#" onclick="ustarrating('$ID$',1.5);new Image().src = 'http://counter.yadro.ru/hit;joncounter004?r'+escape(document.referrer)+((typeof(screen)=='undefined')?'':';s'+screen.width+'*'+screen.height+'*'+(screen.colorDepth?screen.colorDepth:screen.pixelDepth))+';u'+escape(document.URL)+';'+Math.random();;return false;" class="u-three-stars">3</a></li>     
     <li class="u-star-li-$ID$"><a href="#" onclick="ustarrating('$ID$',2);new Image().src = 'http://counter.yadro.ru/hit;joncounter004?r'+escape(document.referrer)+((typeof(screen)=='undefined')?'':';s'+screen.width+'*'+screen.height+'*'+(screen.colorDepth?screen.colorDepth:screen.pixelDepth))+';u'+escape(document.URL)+';'+Math.random();;return false;" class="u-four-stars">4</a></li>     
     <li class="u-star-li-$ID$"><a href="#" onclick="ustarrating('$ID$',2.5);new Image().src = 'http://counter.yadro.ru/hit;joncounter004?r'+escape(document.referrer)+((typeof(screen)=='undefined')?'':';s'+screen.width+'*'+screen.height+'*'+(screen.colorDepth?screen.colorDepth:screen.pixelDepth))+';u'+escape(document.URL)+';'+Math.random();;return false;" class="u-five-stars">5</a></li>     
     <li class="u-star-li-$ID$"><a href="#" onclick="ustarrating('$ID$',3);new Image().src = 'http://counter.yadro.ru/hit;joncounter004?r'+escape(document.referrer)+((typeof(screen)=='undefined')?'':';s'+screen.width+'*'+screen.height+'*'+(screen.colorDepth?screen.colorDepth:screen.pixelDepth))+';u'+escape(document.URL)+';'+Math.random();;return false;" class="u-six-stars">6</a></li>     
     <li class="u-star-li-$ID$"><a href="#" onclick="ustarrating('$ID$',3.5);new Image().src = 'http://counter.yadro.ru/hit;joncounter004?r'+escape(document.referrer)+((typeof(screen)=='undefined')?'':';s'+screen.width+'*'+screen.height+'*'+(screen.colorDepth?screen.colorDepth:screen.pixelDepth))+';u'+escape(document.URL)+';'+Math.random();;return false;" class="u-seven-stars">7</a></li>     
     <li class="u-star-li-$ID$"><a href="#" onclick="ustarrating('$ID$',4);new Image().src = 'http://counter.yadro.ru/hit;joncounter004?r'+escape(document.referrer)+((typeof(screen)=='undefined')?'':';s'+screen.width+'*'+screen.height+'*'+(screen.colorDepth?screen.colorDepth:screen.pixelDepth))+';u'+escape(document.URL)+';'+Math.random();;return false;" class="u-eight-stars">8</a></li>     
     <li class="u-star-li-$ID$"><a href="#" onclick="ustarrating('$ID$',4.5);new Image().src = 'http://counter.yadro.ru/hit;joncounter004?r'+escape(document.referrer)+((typeof(screen)=='undefined')?'':';s'+screen.width+'*'+screen.height+'*'+(screen.colorDepth?screen.colorDepth:screen.pixelDepth))+';u'+escape(document.URL)+';'+Math.random();;return false;" class="u-nige-stars">9</a></li>     
     <li class="u-star-li-$ID$"><a href="#" onclick="ustarrating('$ID$',5);new Image().src = 'http://counter.yadro.ru/hit;joncounter004?r'+escape(document.referrer)+((typeof(screen)=='undefined')?'':';s'+screen.width+'*'+screen.height+'*'+(screen.colorDepth?screen.colorDepth:screen.pixelDepth))+';u'+escape(document.URL)+';'+Math.random();;return false;" class="u-ten-stars">10</a></li>     
     <?endif?>     
     </ul></td><td align="right" valign="top" id="ratings">     
     <span id="rating_hoverstars">0</span> из <span id="rating_allstars">10</span>     
     <div>Рейтинг <span id="rating_rated"><?($RATING$*2)?></span></div>     
     </td></table>     
     </div></div></div> <!-- 10PointSystem by max_good_life -->


3) Сразу же после него, поставьте этот код:
Код
<script type="text/javascript">     
     var RatingModule = "$MODULE_ID$"; // Не трогать!     
     var RatingStyle = "black"; // white - Для белых дизайнов. black - Для темных дизайнов.     
     var RatingFlag = "<?if($RATE_FORM$)?>1<?else?>0<?endif?>" // Флаг указывающий что уже голосовали     
     var RatingId = "$ID$"; // Id материала     
     var RatingNum = "<?($RATING$*2)?>"; // Рейтинг материала.     
     </script>     
     <script type="text/javascript" src="http://dedicated.3dn.ru/uCoz/reiting/RatingByMaxGoodLife.js"></script>


4) Поставьте тег в начеле страницы:
Код
<!DOCTYPE html>

.
Прикрепления: 9535041.png (75.3 Kb)


Сообщение отредактировал offtop - Понедельник, 20.05.2013, 10:52
Форум » Ucoz » Скрипты для ucoz » 10 Бальная система оценок (Рабочая 100%) для ucoz
  • Страница 1 из 1
  • 1
Поиск: