Join the forum, it's quick and easy

Вы хотите отреагировать на этот пост ? Создайте аккаунт всего в несколько кликов или войдите на форум.

    Форма опросов как на DLE

    Ballack
    Ballack
    Модератор
    Модератор


    Сообщения : 29
    Очки : 87
    Репутация : 50
    Дата регистрации : 2011-01-04
    Возраст : 29

    Форма опросов как на DLE Empty Форма опросов как на DLE

    Сообщение  Ballack Пн Янв 10, 2011 5:58 pm

    Скрин - http://rucoz.com/_nw/8/67205437.png

    Установка:
    Это вставляем в: "Вид формы опросов"

    Код:
    <style>
    .answer div div {height: 10px !important;}
    </style>

    <div style="font-family:Tahoma,Arial;">
    <div style="font-size:8pt;text-align:left;"><b>$QUESTION$</b></div>
    <div style="font-size:8pt;text-align:left;">$ANSWERS$</div>
    <div style="padding-top:4px;text-align:center;">[ <a style="font-size:7pt;" href="$RESULTS_LINK$">Результаты</a> · <a style="font-size:7pt;" href="$ARCHIVE_LINK$">Архив опросов</a> ]</div>
    <script type="text/javascript">
    var a = ['http://rucoz.com/img/other/0011.gif','http://rucoz.com/img/other/0022.png','http://rucoz.com/img/other/0033.png','http://rucoz.com/img/other/0044.png','http://rucoz.com/img/other/0055.png'];
    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>
    <div style="padding-top:4px;font-size:7pt;text-align:center;">Всего ответов: <b>$TOTAL_VOTES$</b></div>
    </div>

      Текущее время Чт Мар 28, 2024 10:26 pm