|
| Форум Информация для Web-мастера(Помощь в uCoz) Готовые скрипты для uCoz Популярность тем на форуме (картинкой) измененный |
| Популярность тем на форуме (картинкой) измененный |
# 1 18.46.15
Между head в общий вид форума.
Code <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js"></script> <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="/images/0stars.gif" border="0" alt="img" />');} if($(this).html() > 8 && $(this).html() < 60){$(this).html('<img title="Низкая популярность" src="/images/1stars.gif" border="0" alt="img" />');} if($(this).html() > 59 && $(this).html() < 190){$(this).html('<img title="Средняя популярность" src="/images/2stars.gif" border="0" alt="img" />');} if($(this).html() > 189 && $(this).html() < 290){$(this).html('<img title="Высокая популярность" src="/images/3stars.gif" border="0" alt="img" />');} if($(this).html() > 289 && $(this).html() < 450){$(this).html('<img title="Очень высокая популярность" src="/images/4stars.gif" border="0" alt="img" />');} if($(this).html() > 449){$(this).html('<img title="Очень популярная тема" src="/images/5stars.gif" border="0" alt="img" />');} }); }); </script> Скачать картинки... http://depositfiles.com/files/gai2tmqzc |
| |||
| |||