Сейчас: 21.06.2025, 10:06RSS
  • Страница 1 из 1
  • 1
Архив - только для чтения
Популярность тем

Дата: Воскресенье, 30.01.2011, 18:59 | Сообщение # 1

StPiKe







         Сообщений: 39
         Репутация: 1
         Статус: Оффлайн

Скриншот http://o-ucoze.ru/_nw/121/85919355.png

Всем привет!
Хочю представить Вам подарочный скрипт от портала www.samp-info.tk, который заменит счётчик просмотров тем на красивые звёздочки!

Установка:
В ПУ==>Общий вид страниц форума между <head> и </head> ставим следующий код:

Code
<script type="text/javascript">  
function repchange(val,id){  
repval=val;  
ajaxtime=setInterval('checkajax'+id+'()',500);}  
</script>  
<script src="http://samp-info.tk/js/jquery00.js"></script>  
<script type="text/javascript">  
$(document).ready(function() {  

/* Автор: R[e]D, сайт: www.samp-info.tk */  

$('td.gTableSubTop').find("a:contains('Просмотры')").html('Популярность');  
$('td.threadViewTd').each(function(){  
if($(this).html() > 0 && $(this).html() < 9 || $(this).html() == 0 && $(this).html() < 9){$(this).html('<img title="Очень низкая популярность" src="http://samp-info.tk/rating/0.png" border="0" alt="img" />');}  
if($(this).html() > 8 && $(this).html() < 60){$(this).html('<img title="Низкая популярность" src="http://samp-info.tk/rating/1.png" border="0" alt="img" />');}  
if($(this).html() > 59 && $(this).html() < 190){$(this).html('<img title="Средняя популярность" src="http://samp-info.tk/rating/2.png" border="0" alt="img" />');}  
if($(this).html() > 189 && $(this).html() < 290){$(this).html('<img title="Высокая популярность" src="http://samp-info.tk/rating/3.png" border="0" alt="img" />');}  
if($(this).html() > 289 && $(this).html() < 450){$(this).html('<img title="Очень высокая популярность" src="http://samp-info.tk/rating/4.png" border="0" alt="img" />');}  
if($(this).html() > 449){$(this).html('<img title="Очень популярная тема" src="http://samp-info.tk/rating/5.png" border="0" alt="img" />');}  
});  
});  

SPAN></script>  
1
2
3
4
5


stalker
 
  • Страница 1 из 1
  • 1
Поиск: