Вот и дошло время до DLE опроса. Теперь полноценный опрос как на DLE сайтах у вас на uCoz сайте! Были до этого какие то тупости и нерабочие версии. Теперь версии просто отличные! =D Что бы установить данный опрос просто следуйте инструкция ниже. 1. Зайдите в управление дизайном > опросы > общий вид. 2. В самый низ вставьте данный код:
Code <style> .answer div div {height: 10px !important; border: 1px solid #000; background-repeat: repeat-x} </style> <script type="text/javascript">
var a =
['http://asma-n.ru/other/poll1.gif','http://asma-n.ru/other/poll2.gif','http://asma-n.ru/other/poll3.gif','http://asma-n.ru/other/poll4.gif','http://asma-n.ru/other/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> |