Web Polls Type of polling form - UcozBaze All Scripts And Templates
  
Page 1 of 11
UcozBaze All Scripts And Templates » Scripts and Coding » Web Polls » Web Polls Type of polling form (Web Polls Type of polling form)
Web Polls Type of polling form
AlonzoDate: Monday, 2012-11-12, 11:57 AM | Message # 1
Group: Member
Messages: 35
1



Web Polls---Type of polling form:

Code
<div class="pollBlock" style="font-family:Tahoma,Arial;">  
<div class="titles">$QUESTION$ ?</div>  
<div class="pollAns" style="font-size:8pt;text-align:left;">$ANSWERS$</div>  
<center><button class="fbutton" href="$RESULTS_LINK$">Results</button>  
<button class="fbutton" href="$ARCHIVE_LINK$">Polls archive</button></center>  
</div>  

<script type="text/javascript">  
  var a = ['1','2','3','4','5','6','1','2','3','4','5','6'];  
  for(var i = 0; i < a.length; i++){$('div.answer div').eq(i).addClass('progress');$('div.answer div div').eq(i).addClass('progress'+[i]).css({marginTop: '-3px', marginBottom: '-3px',backgroundRepeat: 'repeat-x'});}  
  $('div.answer span').each(function(){$(this).html($(this).html()+' - <span class="procent">'+$(this).attr('title').split(':')[1]+'</span>')});  
  </script>


If you are in the survey (for example) 7 golf response is in line

Code
var a = ['1','2','3','4','5','6','1','2','3','4','5','6'];


In the stylesheet Css:

Code
.progress {   
overflow: hidden;   
height: 15px;   
margin-bottom: 5px;   
background-color: #F7F7F7;   
background-image: -moz-linear-gradient(top, whiteSmoke, #F9F9F9);   
background-image: -ms-linear-gradient(top, whiteSmoke, #F9F9F9);   
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(whiteSmoke), to(#F9F9F9));   
background-image: -webkit-linear-gradient(top, whiteSmoke, #F9F9F9);   
background-image: -o-linear-gradient(top, whiteSmoke, #F9F9F9);   
background-image: linear-gradient(top, whiteSmoke, #F9F9F9);   
background-repeat: repeat-x;   
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f5f5f5', endColorstr='#f9f9f9', GradientType=0);   
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);   
-moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);   
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);   
-webkit-border-radius: 4px;   
-moz-border-radius: 4px;   
border-radius: 4px;   
}   
   .progress0 {   
color: white;   
text-align: center!important;   
text-indent: -2000em!important;   
height: 15px!important;   
display: block!important;   
overflow: hidden!important;   
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)!important;   
background: #0E90D2!important;   
background-image: -moz-linear-gradient(top, #149BDF, #0480BE)!important;   
background-image: -ms-linear-gradient(top, #149BDF, #0480BE)!important;   
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#149BDF), to(#0480BE))!important;   
background-image: -webkit-linear-gradient(top, #149BDF, #0480BE)!important;   
background-image: -o-linear-gradient(top, #149BDF, #0480BE)!important;   
background-image: linear-gradient(top, #149BDF, #0480BE)!important;   
background-repeat: repeat-x;   
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#149bdf', endColorstr='#0480be', GradientType=0)!important;   
}   
   .progress1 {   
color: white;   
text-align: center!important;   
text-indent: -2000em!important;   
height: 15px!important;   
display: block!important;   
overflow: hidden!important;   
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)!important;   
background-color: #DD514C!important;   
background-image: -moz-linear-gradient(top, #EE5F5B, #C43C35)!important;   
background-image: -ms-linear-gradient(top, #EE5F5B, #C43C35)!important;   
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#EE5F5B), to(#C43C35))!important;   
background-image: -webkit-linear-gradient(top, #EE5F5B, #C43C35)!important;   
background-image: -o-linear-gradient(top, #EE5F5B, #C43C35)!important;   
background-image: linear-gradient(top, #EE5F5B, #C43C35)!important;   
background-repeat: repeat-x;   
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ee5f5b', endColorstr='#c43c35', GradientType=0)!important;   
}   
   .progress2 {   
color: white;   
text-align: center!important;   
text-indent: -2000em!important;   
height: 15px!important;   
display: block!important;   
overflow: hidden!important;   
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)!important;   
background-color: #5EB95E!important;   
background-image: -moz-linear-gradient(top, #62C462, #57A957)!important;   
background-image: -ms-linear-gradient(top, #62C462, #57A957)!important;   
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62C462), to(#57A957))!important;   
background-image: -webkit-linear-gradient(top, #62C462, #57A957)!important;   
background-image: -o-linear-gradient(top, #62C462, #57A957)!important;   
background-image: linear-gradient(top, #62C462, #57A957)!important;   
background-repeat: repeat-x!important;   
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#62c462', endColorstr='#57a957', GradientType=0)!important;   
}   
   .progress3 {   
color: white;   
text-align: center!important;   
text-indent: -2000em!important;   
height: 15px!important;   
display: block!important;   
overflow: hidden!important;   
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)!important;   
background-color: #4BB1CF!important;   
background-image: -moz-linear-gradient(top, #5BC0DE, #339BB9)!important;   
background-image: -ms-linear-gradient(top, #5BC0DE, #339BB9)!important;   
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5BC0DE), to(#339BB9))!important;   
background-image: -webkit-linear-gradient(top, #5BC0DE, #339BB9)!important;   
background-image: -o-linear-gradient(top, #5BC0DE, #339BB9)!important;   
background-image: linear-gradient(top, #5BC0DE, #339BB9)!important;   
background-repeat: repeat-x!important;   
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#5bc0de', endColorstr='#339bb9', GradientType=0)!important;   
}   
   .progress4 {   
color: white;   
text-align: center!important;   
text-indent: -2000em!important;   
height: 15px!important;   
display: block!important;   
overflow: hidden!important;   
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)!important;   
background-color: #FAA732!important;   
background-image: -moz-linear-gradient(top, #FBB450, #F89406)!important;   
background-image: -ms-linear-gradient(top, #FBB450, #F89406)!important;   
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#FBB450), to(#F89406))!important;   
background-image: -webkit-linear-gradient(top, #FBB450, #F89406)!important;   
background-image: -o-linear-gradient(top, #FBB450, #F89406)!important;   
background-image: linear-gradient(top, #FBB450, #F89406)!important;   
background-repeat: repeat-x!important;   
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fbb450', endColorstr='#f89406', GradientType=0)!important;   
}   
     
.progress5 {   
color: white;   
text-align: center!important;   
text-indent: -2000em!important;   
height: 15px!important;   
display: block!important;   
overflow: hidden!important;   
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)!important;   
background: #0E90D2!important;   
background-image: -moz-linear-gradient(top, #149BDF, #0480BE)!important;   
background-image: -ms-linear-gradient(top, #149BDF, #0480BE)!important;   
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#149BDF), to(#0480BE))!important;   
background-image: -webkit-linear-gradient(top, #149BDF, #0480BE)!important;   
background-image: -o-linear-gradient(top, #149BDF, #0480BE)!important;   
background-image: linear-gradient(top, #149BDF, #0480BE)!important;   
background-repeat: repeat-x;   
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#149bdf', endColorstr='#0480be', GradientType=0)!important;   
}   
   .answer {   
color: black;   
background-image: none;   
background-repeat: no-repeat;   
background-position: bottom left;   
line-height: 22px;   
display: block;   
}   
   .pollAns {padding: 5px;text-align: center!important;}   
   .titles {margin: 0 3px 4px 3px;display: block;-moz-border-radius: 3px;-webkit-border-radius: 3px;-khtml-border-radius: 3px;padding: 4px 5px 5px 5px; border-radius: 3px;background: #FF6161;color: white;text-shadow: 0 1px 0 #BA4747;}


 
Message



Web Polls---Type of polling form:

Code
<div class="pollBlock" style="font-family:Tahoma,Arial;">  
<div class="titles">$QUESTION$ ?</div>  
<div class="pollAns" style="font-size:8pt;text-align:left;">$ANSWERS$</div>  
<center><button class="fbutton" href="$RESULTS_LINK$">Results</button>  
<button class="fbutton" href="$ARCHIVE_LINK$">Polls archive</button></center>  
</div>  

<script type="text/javascript">  
  var a = ['1','2','3','4','5','6','1','2','3','4','5','6'];  
  for(var i = 0; i < a.length; i++){$('div.answer div').eq(i).addClass('progress');$('div.answer div div').eq(i).addClass('progress'+[i]).css({marginTop: '-3px', marginBottom: '-3px',backgroundRepeat: 'repeat-x'});}  
  $('div.answer span').each(function(){$(this).html($(this).html()+' - <span class="procent">'+$(this).attr('title').split(':')[1]+'</span>')});  
  </script>


If you are in the survey (for example) 7 golf response is in line

Code
var a = ['1','2','3','4','5','6','1','2','3','4','5','6'];


In the stylesheet Css:

Code
.progress {   
overflow: hidden;   
height: 15px;   
margin-bottom: 5px;   
background-color: #F7F7F7;   
background-image: -moz-linear-gradient(top, whiteSmoke, #F9F9F9);   
background-image: -ms-linear-gradient(top, whiteSmoke, #F9F9F9);   
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(whiteSmoke), to(#F9F9F9));   
background-image: -webkit-linear-gradient(top, whiteSmoke, #F9F9F9);   
background-image: -o-linear-gradient(top, whiteSmoke, #F9F9F9);   
background-image: linear-gradient(top, whiteSmoke, #F9F9F9);   
background-repeat: repeat-x;   
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f5f5f5', endColorstr='#f9f9f9', GradientType=0);   
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);   
-moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);   
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);   
-webkit-border-radius: 4px;   
-moz-border-radius: 4px;   
border-radius: 4px;   
}   
   .progress0 {   
color: white;   
text-align: center!important;   
text-indent: -2000em!important;   
height: 15px!important;   
display: block!important;   
overflow: hidden!important;   
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)!important;   
background: #0E90D2!important;   
background-image: -moz-linear-gradient(top, #149BDF, #0480BE)!important;   
background-image: -ms-linear-gradient(top, #149BDF, #0480BE)!important;   
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#149BDF), to(#0480BE))!important;   
background-image: -webkit-linear-gradient(top, #149BDF, #0480BE)!important;   
background-image: -o-linear-gradient(top, #149BDF, #0480BE)!important;   
background-image: linear-gradient(top, #149BDF, #0480BE)!important;   
background-repeat: repeat-x;   
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#149bdf', endColorstr='#0480be', GradientType=0)!important;   
}   
   .progress1 {   
color: white;   
text-align: center!important;   
text-indent: -2000em!important;   
height: 15px!important;   
display: block!important;   
overflow: hidden!important;   
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)!important;   
background-color: #DD514C!important;   
background-image: -moz-linear-gradient(top, #EE5F5B, #C43C35)!important;   
background-image: -ms-linear-gradient(top, #EE5F5B, #C43C35)!important;   
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#EE5F5B), to(#C43C35))!important;   
background-image: -webkit-linear-gradient(top, #EE5F5B, #C43C35)!important;   
background-image: -o-linear-gradient(top, #EE5F5B, #C43C35)!important;   
background-image: linear-gradient(top, #EE5F5B, #C43C35)!important;   
background-repeat: repeat-x;   
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ee5f5b', endColorstr='#c43c35', GradientType=0)!important;   
}   
   .progress2 {   
color: white;   
text-align: center!important;   
text-indent: -2000em!important;   
height: 15px!important;   
display: block!important;   
overflow: hidden!important;   
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)!important;   
background-color: #5EB95E!important;   
background-image: -moz-linear-gradient(top, #62C462, #57A957)!important;   
background-image: -ms-linear-gradient(top, #62C462, #57A957)!important;   
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62C462), to(#57A957))!important;   
background-image: -webkit-linear-gradient(top, #62C462, #57A957)!important;   
background-image: -o-linear-gradient(top, #62C462, #57A957)!important;   
background-image: linear-gradient(top, #62C462, #57A957)!important;   
background-repeat: repeat-x!important;   
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#62c462', endColorstr='#57a957', GradientType=0)!important;   
}   
   .progress3 {   
color: white;   
text-align: center!important;   
text-indent: -2000em!important;   
height: 15px!important;   
display: block!important;   
overflow: hidden!important;   
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)!important;   
background-color: #4BB1CF!important;   
background-image: -moz-linear-gradient(top, #5BC0DE, #339BB9)!important;   
background-image: -ms-linear-gradient(top, #5BC0DE, #339BB9)!important;   
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5BC0DE), to(#339BB9))!important;   
background-image: -webkit-linear-gradient(top, #5BC0DE, #339BB9)!important;   
background-image: -o-linear-gradient(top, #5BC0DE, #339BB9)!important;   
background-image: linear-gradient(top, #5BC0DE, #339BB9)!important;   
background-repeat: repeat-x!important;   
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#5bc0de', endColorstr='#339bb9', GradientType=0)!important;   
}   
   .progress4 {   
color: white;   
text-align: center!important;   
text-indent: -2000em!important;   
height: 15px!important;   
display: block!important;   
overflow: hidden!important;   
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)!important;   
background-color: #FAA732!important;   
background-image: -moz-linear-gradient(top, #FBB450, #F89406)!important;   
background-image: -ms-linear-gradient(top, #FBB450, #F89406)!important;   
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#FBB450), to(#F89406))!important;   
background-image: -webkit-linear-gradient(top, #FBB450, #F89406)!important;   
background-image: -o-linear-gradient(top, #FBB450, #F89406)!important;   
background-image: linear-gradient(top, #FBB450, #F89406)!important;   
background-repeat: repeat-x!important;   
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fbb450', endColorstr='#f89406', GradientType=0)!important;   
}   
     
.progress5 {   
color: white;   
text-align: center!important;   
text-indent: -2000em!important;   
height: 15px!important;   
display: block!important;   
overflow: hidden!important;   
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)!important;   
background: #0E90D2!important;   
background-image: -moz-linear-gradient(top, #149BDF, #0480BE)!important;   
background-image: -ms-linear-gradient(top, #149BDF, #0480BE)!important;   
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#149BDF), to(#0480BE))!important;   
background-image: -webkit-linear-gradient(top, #149BDF, #0480BE)!important;   
background-image: -o-linear-gradient(top, #149BDF, #0480BE)!important;   
background-image: linear-gradient(top, #149BDF, #0480BE)!important;   
background-repeat: repeat-x;   
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#149bdf', endColorstr='#0480be', GradientType=0)!important;   
}   
   .answer {   
color: black;   
background-image: none;   
background-repeat: no-repeat;   
background-position: bottom left;   
line-height: 22px;   
display: block;   
}   
   .pollAns {padding: 5px;text-align: center!important;}   
   .titles {margin: 0 3px 4px 3px;display: block;-moz-border-radius: 3px;-webkit-border-radius: 3px;-khtml-border-radius: 3px;padding: 4px 5px 5px 5px; border-radius: 3px;background: #FF6161;color: white;text-shadow: 0 1px 0 #BA4747;}

Author - Alonzo
Date Added - 2012-11-12 в 11:57 AM
ScripTDate: Wednesday, 2013-11-20, 5:00 PM | Message # 2
Group: UcozBaze Team
Messages: 1
0
cool
 
Messagecool

Author - ScripT
Date Added - 2013-11-20 в 5:00 PM
UcozBaze All Scripts And Templates » Scripts and Coding » Web Polls » Web Polls Type of polling form (Web Polls Type of polling form)
Page 1 of 11
Search:
                                                               
Statistics Forum
New Posts Popular topic Top Forum Users New User

type list Forumo Informatorius (2)
type list Pereiti i kita puslapi forume 1.2.3. Ucoz skriptas (1)
type list The script for the output of a random video from Youtube (0)
type list The script updates the block comment without refreshing the (0)
type list Information about your browser for uCoz (0)
type list Kaip isideti Forum Online/Offline Image Ucoz ? (4)
type list Highlight the code in one click (0)
type list The original form of statistics for uCoz (0)
type list The ban on the entry of certain characters in the Input (0)
type list Clock for site ucoz (0)

type list Skaiciuojam nuo 1 iki 1000 ! (557)
type list Forum SignatureBar (60)
type list Avatars (22)
type list Kaip pakeisti paveiksla mazas? (19)
type list Juokingos Fotkes :) (19)
type list Mini-Chatas islendantis is sono ucoz (15)
type list Mp3-Tau.do.am (13)
type list Шаблон форума для ucoz For-css (12)
type list Ucoz script - favicon (11)
type list Button scrolling up ucoz (10)

interout
GoblinaS
Adi
Esquire
BAtman
WaSHkaZ
Skacikas
meskis
Gytenas
vicka

AnelsoNN
nemanjababin
defaultNick0568
mechoochite
mdcurren
yastreb
lad0s™
Lapuxa
th3kizaka
projektas420


Site design by uCozBaze
uCozBaze © 2011-2016