Neuigkeiten

Fokus   22.02.2010


mehr News

[ Обновленные темы · Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
Форум » Скрипты для uCoz » Опросы » Вид опроса (Вид опроса)
Вид опроса
Fokus Дата: Воскресенье, 04.07.2010, 07:00 | Сообщение # 1 Статус: Оффлайн
статус не установлен
Сообщений:
126
Администраторы [ ? ]
Награды:
4
Репутация:

1.шкала с разными цветами (раньше была однотонная)
2.учитывается количество голосов и процент
3.вставляем в шаблон опроса в самый низ

Code
<style>      
.answer div div {height: 10px !important; border: 1px solid #000; background-repeat: repeat-x}      
</style>      
<script type="text/javascript">      
var a = ['http://atlan.net.ru/pol/poll1.gif','http://atlan.net.ru/pol/poll2.gif','http://atlan.net.ru/pol/poll3.gif','http://atlan.net.ru/pol/poll4.gif','http://atlan.net.ru/pol/poll5.gif'];      
for(var i = 0; i < a.length; i++){      
      $('div.answer div div').eq(i).css({background: 'url(' + a[i] + ')', backgroundRepeat: 'repeat-x'});      
}      

$('div.answer span').each(function(){$(this).html($(this).html()+' - <span class="procent">'+$(this).attr('title').split(':')[1]+'</span>')});      
</script>
Прикрепления: 6757718.jpg(16.8 Kb)


Форум » Скрипты для uCoz » Опросы » Вид опроса (Вид опроса)
  • Страница 1 из 1
  • 1
Поиск:

downloads

Top Downloads

Latest Downloads

Activities

  • Someone has written in our guestbook!
    Guestbook - 10.05.2016 15:04
  • Someone has written in our guestbook!
    Guestbook - 15.03.2016 20:06
  • commented on News Test Latest Headline here #03
    Comment - 12.03.2016 23:54
  • Someone has written in our guestbook!
    Guestbook - 12.03.2016 05:25
  • Someone has written in our guestbook!
    Guestbook - 24.02.2016 04:14

downloads

Top Downloads

Latest Downloads

Activities

  • Someone has written in our guestbook!
    Guestbook - 10.05.2016 15:04
  • Someone has written in our guestbook!
    Guestbook - 15.03.2016 20:06
  • commented on News Test Latest Headline here #03
    Comment - 12.03.2016 23:54
  • Someone has written in our guestbook!
    Guestbook - 12.03.2016 05:25
  • Someone has written in our guestbook!
    Guestbook - 24.02.2016 04:14

downloads

Top Downloads

Latest Downloads

Activities

  • Someone has written in our guestbook!
    Guestbook - 10.05.2016 15:04
  • Someone has written in our guestbook!
    Guestbook - 15.03.2016 20:06
  • commented on News Test Latest Headline here #03
    Comment - 12.03.2016 23:54
  • Someone has written in our guestbook!
    Guestbook - 12.03.2016 05:25
  • Someone has written in our guestbook!
    Guestbook - 24.02.2016 04:14

matches

latest Matches

topics

squads

  • Test Team #1
  • Test Team #2

poll

What day is today?
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday
show polls

partners

  • webSPELL 4
  • gamer-designs

matches

latest Matches

topics

squads

  • Test Team #1
  • Test Team #2

poll

What day is today?
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday
show polls

partners

  • webSPELL 4
  • gamer-designs

matches

latest Matches

topics

squads

  • Test Team #1
  • Test Team #2

poll

What day is today?
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday
show polls

partners

  • webSPELL 4
  • gamer-designs