Page 1 of 11
UcozBaze All Scripts And Templates » Scripts and Coding » Web Polls » A new kind of Our poll on the CSS by Winston888 (A new kind of Our poll on the CSS by Winston888)
A new kind of Our poll on the CSS by Winston888
interoutDate: Wednesday, 2014-07-30, 11:22 PM | Message # 1
Group: Administrators
Messages: 1023
34


A new version of
the Our poll "BY WINSTON888" still does not use the pictures, everything is done on the css. This type of Our poll has been adapted for dle ucoz.

installation:

1. Type of polling form:

Code
<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>


2.CSS:

Code
.answer {font-weight: normal;font-style: normal; position:relative; color:#4d4d4d; margin-bottom:10px;height:25px;}   
   .answer span{z-index:2;position:relative;left:-8px;color: #fff;top:8px;text-shadow: 0 -1px 0 rgba(0,0,0,0.25);}   
   .answer div{z-index:1;height:25px!important;position:absolute;top:3px;left:0px;width:100%;}   
   .progress {   
   height: 25px;   
   margin-bottom: 20px;   
   overflow: hidden;   
   background-color: #f7f7f7;   
   background-image: -moz-linear-gradient(top,#f5f5f5,#f9f9f9);   
   background-image: -webkit-gradient(linear,0 0,0 100%,from(#f5f5f5),to(#f9f9f9));   
   background-image: -webkit-linear-gradient(top,#f5f5f5,#f9f9f9);   
   background-image: -o-linear-gradient(top,#f5f5f5,#f9f9f9);   
   background-image: linear-gradient(to bottom,#f5f5f5,#f9f9f9);   
   background-repeat: repeat-x;   
   -webkit-border-radius: 4px;   
   -moz-border-radius: 4px;   
   border-radius: 4px;   
   filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5',endColorstr='#fff9f9f9',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);   
   }   
     
   .progress div {height: 25px !important;}   
   .procent {top:0px !important; left:5px !important;}   
   .progress0 {background-color: #fb3c2d !important;}   
   .progress1 {background: rgb(32, 195, 209) !important;}   
   .progress2 {background: rgb(133, 202, 45) !important;}   
   .progress3 {background: rgb(231, 197, 19) !important;}   
   .progress4 {background: rgb(22, 184, 206) !important;}   
   .progress5 {background: rgb(32, 195, 209) !important;}   
   .progress6 {background: rgb(32, 195, 209) !important;}   
     
   .progress0, .progress1, .progress2, .progress3, .progress4, .progress5, .progress6 {   
   background-image: -webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255, 255,  
255, 0)),color-stop(0.25,rgba(0, 0, 0, 0.07)),color-stop(0.5,rgba(0, 0,  
0, 0.07)),color-stop(0.5,rgba(255, 255, 255,  
0)),color-stop(0.75,rgba(255, 255, 255, 0)),color-stop(0.75,rgba(0, 0,  
0, 0.07)),to(rgba(0, 0, 0, 0.07))) !important;   
   -webkit-background-size: 40px 40px !important;   
   -moz-background-size: 40px 40px !important;   
   -o-background-size: 40px 40px !important;   
   background-size: 40px 40px !important;   
   box-sizing: border-box;   
   background-repeat: repeat-x;   
   -webkit-transition: width .6s ease;   
   transition: width .6s ease;   
   }


 
Message


A new version of
the Our poll "BY WINSTON888" still does not use the pictures, everything is done on the css. This type of Our poll has been adapted for dle ucoz.

installation:

1. Type of polling form:

Code
<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>


2.CSS:

Code
.answer {font-weight: normal;font-style: normal; position:relative; color:#4d4d4d; margin-bottom:10px;height:25px;}   
   .answer span{z-index:2;position:relative;left:-8px;color: #fff;top:8px;text-shadow: 0 -1px 0 rgba(0,0,0,0.25);}   
   .answer div{z-index:1;height:25px!important;position:absolute;top:3px;left:0px;width:100%;}   
   .progress {   
   height: 25px;   
   margin-bottom: 20px;   
   overflow: hidden;   
   background-color: #f7f7f7;   
   background-image: -moz-linear-gradient(top,#f5f5f5,#f9f9f9);   
   background-image: -webkit-gradient(linear,0 0,0 100%,from(#f5f5f5),to(#f9f9f9));   
   background-image: -webkit-linear-gradient(top,#f5f5f5,#f9f9f9);   
   background-image: -o-linear-gradient(top,#f5f5f5,#f9f9f9);   
   background-image: linear-gradient(to bottom,#f5f5f5,#f9f9f9);   
   background-repeat: repeat-x;   
   -webkit-border-radius: 4px;   
   -moz-border-radius: 4px;   
   border-radius: 4px;   
   filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5',endColorstr='#fff9f9f9',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);   
   }   
     
   .progress div {height: 25px !important;}   
   .procent {top:0px !important; left:5px !important;}   
   .progress0 {background-color: #fb3c2d !important;}   
   .progress1 {background: rgb(32, 195, 209) !important;}   
   .progress2 {background: rgb(133, 202, 45) !important;}   
   .progress3 {background: rgb(231, 197, 19) !important;}   
   .progress4 {background: rgb(22, 184, 206) !important;}   
   .progress5 {background: rgb(32, 195, 209) !important;}   
   .progress6 {background: rgb(32, 195, 209) !important;}   
     
   .progress0, .progress1, .progress2, .progress3, .progress4, .progress5, .progress6 {   
   background-image: -webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255, 255,  
255, 0)),color-stop(0.25,rgba(0, 0, 0, 0.07)),color-stop(0.5,rgba(0, 0,  
0, 0.07)),color-stop(0.5,rgba(255, 255, 255,  
0)),color-stop(0.75,rgba(255, 255, 255, 0)),color-stop(0.75,rgba(0, 0,  
0, 0.07)),to(rgba(0, 0, 0, 0.07))) !important;   
   -webkit-background-size: 40px 40px !important;   
   -moz-background-size: 40px 40px !important;   
   -o-background-size: 40px 40px !important;   
   background-size: 40px 40px !important;   
   box-sizing: border-box;   
   background-repeat: repeat-x;   
   -webkit-transition: width .6s ease;   
   transition: width .6s ease;   
   }

Author - interout
Date Added - 2014-07-30 в 11:22 PM
UcozBaze All Scripts And Templates » Scripts and Coding » Web Polls » A new kind of Our poll on the CSS by Winston888 (A new kind of Our poll on the CSS by Winston888)
Page 1 of 11
Search:
                                                               
Statistics Forum
New Posts Popular topic Top Forum Users New User

type list How to customize the design of the site for mobile version (3)
type list Video player for uCoz (3)
type list Auto Youtube Trailers for Ucoz Movies Web (0)
type list Automatically add tags for all uCoz modules (5)
type list Pranešimai skrti jums yra matomi Tag Board Ucoz skriptas (1)
type list Why can’t I copy large files over 4GB to my USB flash drive (0)
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 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 Megsti samp? Ateik cia (10)

interout
GoblinaS
Adi
Esquire
BAtman
WaSHkaZ
Skacikas
meskis
Gytenas
vicka

m7mad
greeklifeinworld
gmosergey123
robihorvat95
info
seriestimeucoz
Gabicamokus
unsoppabl3xd
41sieunhanchuot
hikor096


Site design by uCozBaze
uCozBaze © 2011-2016