• Страница 1 из 1
  • 1
Популярность тем на форуме (картинкой) измененный
Группа: Пользователь
Собщений: 50
Репутация: 1
Наград: 0
Замечания : 0%
# 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
http://rapidshare.com/files/169293011/images.rar.html
http://www.4shared.com/file/74006650/f3e17854/_2__images.html

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