Главная » Скрипты для uCoz » Разные скрипты » 10 Бальная система оценок (Рабочая 100%) для uCoz


100$ в день - на бирже подписок
 

10 Бальная система оценок (Рабочая 100%) для uCoz

Автор: Raichu, Опубликован: 05:18, Просмотров: 1075


Скрипт - 10 бальная система оценок для всех модулей, скрипт хороший и редкий за счет этого я бы посоветовал вам его ставить так как 10 бальной школы мало где она есть.

Установка:

Скачиваем архив, папку rating10point заливаем в корень сайта.

Поставьте код в "[u]вид катериала и комментариев к нему":

Code
  
  <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 -->


Сразу же после него ставим это:

Code
  
  <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="/rating10point/RatingByMaxGoodLife.js"></script>  
  


И в начале страницы ставим тег:

Code
<!DOCTYPE html>




    Источник: http://uc-portaller.ru/      

Раздел: Разные скрипты

Гости не могут оставлять комментарии в данной новости.
Рекомендуем Вам зарегестрироваться или войти на сайт под своим логином.