All-For-Kompa.RU

Сегодня:
Карта сайта форум Главная
Скрыть рекламный блок
  • Страница 1 из 1
  • 1
Модератор форума: Vladislavik-36  
Форум » Движки » uCoz » Популярность темы на форуме в звездочках
Популярность темы на форуме в звездочках
leonP4Дата: Вторник, 03.08.2010, 22:45 | Сообщение # 1
.:хакер:.
Группа: Администратор
Сообщений: 664
Награды: 11
Статус: Offline
Между <body> </body>

[cut=Вид серое с жёлтым]
Code
<script type="text/javascript">
$(document).ready(function() {
$('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://www.all-for-kompa.ru/All-For-Kompa/forum/stars-pop/0stars.gif" border="0" alt="img" />');}
if($(this).html() > 8 && $(this).html() < 60){$(this).html('<img title="Низкая популярность" src="http://www.all-for-kompa.ru/All-For-Kompa/forum/stars-pop/1stars.gif" border="0" alt="img" />');}
if($(this).html() > 59 && $(this).html() < 190){$(this).html('<img title="Средняя популярность" src="http://www.all-for-kompa.ru/All-For-Kompa/forum/stars-pop/2stars.gif" border="0" alt="img" />');}
if($(this).html() > 189 && $(this).html() < 290){$(this).html('<img title="Высокая популярность" src="http://www.all-for-kompa.ru/All-For-Kompa/forum/stars-pop/3stars.gif" border="0" alt="img" />');}
if($(this).html() > 289 && $(this).html() < 450){$(this).html('<img title="Очень высокая популярность" src="http://www.all-for-kompa.ru/All-For-Kompa/forum/stars-pop/4stars.gif" border="0" alt="img" />');}
if($(this).html() > 449){$(this).html('<img title="Очень популярная тема" src="http://www.all-for-kompa.ru/All-For-Kompa/forum/stars-pop/5stars.gif" border="0" alt="img" />');}
});
});     
</script>
[/cut]

также есть вид голубое с желтым

[cut=Вид голубое с жёлтым]

Code
<script type="text/javascript">
$(document).ready(function() {
$('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://www.all-for-kompa.ru/All-For-Kompa/forum/stars-pop/5stars.gif" border="0" alt="img" />');}
if($(this).html() > 8 && $(this).html() < 60){$(this).html('<img title="Низкая популярность" src="http://www.all-for-kompa.ru/All-For-Kompa/forum/stars-pop/6stars.gif" border="0" alt="img" />');}
if($(this).html() > 59 && $(this).html() < 190){$(this).html('<img title="Средняя популярность" src="http://www.all-for-kompa.ru/All-For-Kompa/forum/stars-pop/7stars.gif" border="0" alt="img" />');}
if($(this).html() > 189 && $(this).html() < 290){$(this).html('<img title="Высокая популярность" src="http://www.all-for-kompa.ru/All-For-Kompa/forum/stars-pop/8stars.gif" border="0" alt="img" />');}
if($(this).html() > 289 && $(this).html() < 450){$(this).html('<img title="Очень высокая популярность" src="http://www.all-for-kompa.ru/All-For-Kompa/forum/stars-pop/9stars.gif" border="0" alt="img" />');}
if($(this).html() > 449){$(this).html('<img title="Очень популярная тема" src="http://www.all-for-kompa.ru/All-For-Kompa/forum/stars-pop/10stars.gif" border="0" alt="img" />');}
});
});     
</script>
[/cut]
Прикрепления: 7658610.png (81.0 Kb) · 6613336.png (81.2 Kb)


Админ - Первый источник флуда на форуме =)
 
Форум » Движки » uCoz » Популярность темы на форуме в звездочках
  • Страница 1 из 1
  • 1
Поиск:
Реклама