MW_System_Load.prototype.addsevent = function(func){ if(this.objects.addEventListener){ this.objects.addEventListener(this.types,func,false); return true; } else if (this.objects.attachEvent){ this.objects.attachEvent("on" + this.types,func); } else { return false; } } MW_System_Load.prototype.browser = function(){ this.ver = navigator.appVersion; this.agent = navigator.userAgent.toLowerCase(); this.dom = document.getElementById ? 1:0; this.all = document.all ? 1:0; this.ie5 = (this.ver.indexOf("MSIE 5")>-1 && this.dom) ? 1:0; this.ie6 = (this.ver.indexOf("MSIE 6")>-1 && this.dom) ? 1:0; this.ie4 = (document.all && !this.dom) ? 1:0; this.ie = this.ie4 || this.ie5 || this.ie6; this.opera = this.agent.indexOf("opera")>-1; this.gecko = (this.agent.indexOf("gecko")!=-1) ? 1:0; this.bw = (this.ie || this.opera || this.gecko); return this; } MW_System_Load.prototype.findobj = function(obj){ this.parent = window.document; if(this.parent[obj]){ return this.parent[obj]; } if(this.parent.all && this.parent.all[obj]){ return this.parent.all[obj]; } if(this.parent.layers && this.parent.layers[obj]){ return this.parent.layers[obj]; } if(this.parent.getElementById && this.parent.getElementById(obj)){ return this.parent.getElementById(obj); } return null; } var MW = new MW_System_Load(); function MW_System_Hint(){} MW_System_Hint.prototype.show = function(obj,str){ var hint = MW.findobj('hint'); if(!obj){ return; } if(!MW.documes){ return; } if(!hint){ return; } hint.className = 'hint'; hint.style.left = 15; hint.style.top = 50; obj.onmouseout = function(advance){ hint.style.width = ''; hint.style.visibility = 'hidden'; if(hint.firstChild) hint.removeChild(hint.firstChild); hint.appendChild(document.createTextNode(str)); }; obj.onmousemove = function(advance){ //str = str.replace(//g,">"); hint.style.width = ''; hint.innerHTML = str; vc = document.getElementsByTagName((document.compatMode && document.compatMode=="CSS1Compat") ? "HTML":"BODY")[0]; x = window.event ? event.clientX + vc.scrollLeft : advance.pageX; y = window.event ? event.clientY + vc.scrollTop : advance.pageY; vcwidth = vc.clientWidth ? vc.clientWidth + vc.scrollLeft : window.innerWidth + window.pageXOffset; vcheight = vc.innerHeight ? window.innerHeight + window.pageYOffset : vc.clientHeight + vc.scrollTop; if(hint.offsetWidth>500){ hint.style.width = '200'; } if((x + hint.offsetWidth + 15) > vcwidth){ hint.style.left = x - hint.offsetWidth - 4; } else { hint.style.left = x + 15; } if((y + hint.offsetHeight + 19) > vcheight){ hint.style.top = y - hint.offsetHeight; } else { hint.style.top = y + 25; } //if(typeof(hint.style.MozOpacity)!="undefined"){ hint.style.opacity = '.91'; hint.style.filter = "alpha(opacity:91)"; //} hint.style.visibility = 'visible'; }; } MW_System_Hint.prototype.initialize = function(){ var hint = document.createElement("DIV"); hint.setAttribute('id','hint'); document.getElementsByTagName('body')[0].appendChild(hint); hint.style.visibility = 'hidden'; var hintmarker = ['a','img','img','input','span','div','textarea']; var textmarker = ['title','alt','title','title','title','title','title']; var lenmarker = hintmarker.length; for(var i=0; i
Главная
Форум
Файловый архив
Статьи
Новости
Тип браузера: | Время: Четверг, 03.07.2025, 10:16
  Counter-Strike 1.6+AMXmodX+Zbot1.5 by REMBO version 2 (357 Мб) [16.06.2011] 
  Перевод коннекта [25.06.2011] 
  apro cross (2.2Kb) [17.06.2011] 
  W4E_scope_v.4 (1.8Kb) [17.06.2011] 
  Zbot patch by BeNNY BLaNCO v 1.1 [16.06.2011] 
  de_cpl_mill [17.06.2011] 
Привет Гость зарегистрируйтесь или войдите


Главная | Регистрация | Вход Приветствую Вас Гость | RSS
Реклама
Новые сообщения Участники Правила форума Поиск RSS
  • Страница 1 из 1
  • 1
Простой и красивый вид формы опроса
OnlinesДата: Четверг, 17.01.2013, 14:42 | Сообщение # 1
Рядовой
Группа: Пользователь
Сообщений: 4
Репутация: 0
Статус: Offline
Cкрипт: http://s017.radikal.ru/i440/1211/ba/d00fe0c18b61.png

Установка:
1. Скачиваем архив ниже.
2. Через файловый менеджер загружаем папку "question_images" в корень вместе со всеми файлами.
3. Вставляем код формы опроса в Управление дизайном » Опросы » Вид формы опросов.
4. Сохраняем.
5. НЕ ЗАБУДЬТЕ СКАЧАТЬ ПАПКУ С КАРТИНКАМИ. ПРЯМОЙ ЛИНК http://narod.ru/disk/63549713001.6bc9ec6a9fd5e507f23532bbd8132a89/question_images.rar.html

Код формы опроса:

Код
<div class="pollBlock" style="font-family:Tahoma,Arial;">      
      <div class="pollQue" style="font-size:8pt;padding-top:2px;text-align:left;"><b>$QUESTION$</b></div> <hr>
      <div class="pollAns" style="font-size:8pt;text-align:left;">$ANSWERS$</div> <hr>
      <div class="pollLnk" 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 src="http://activiks.ru/img/png.js" type="text/javascript"></script>
      <div class="pollTot" style="padding-top:4px;font-size:7pt;text-align:center;">Всего ответов: <b>$TOTAL_VOTES$</b></div>      
      </div>      

      <style>      
      .answer div div {height: 10px !important; border: 1px solid #000; background-repeat: repeat-x}      
      </style>      
      <script type="text/javascript">      
      var a = ['/question_images/01.gif','/question_images/02.gif','/question_images/03.gif','/question_images/04.gif','/question_images/05.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>
 
  • Страница 1 из 1
  • 1
Поиск:

Главная | Добавить файл | Поиск на форуме | Не работает сылка? | Реклама на сайте | Файловый архив
CS-Fly.Do.Am дизайн данного сайта полностью принадлежит администратору сайта
Отказ от ответственности за файлы на данном ресурсе.
При копировании материалов ссылка на сайт - www.cs-fly.do.am обязательна
SiteMap | SiteMap Forum | Создать бесплатный сайт с uCoz
Партнеры
Ваша ссылка
Ваша ссылка
Ваша ссылка
Поиск файлов