Page 1 of 11
UcozBaze All Scripts And Templates » Scripts and Coding » Statistics » The original form of statistics for uCoz (Оригинальный вид статистики для uCoz)
The original form of statistics for uCoz
GoblinaSDate: Tuesday, 2016-07-12, 12:58 PM | Message # 1
Group: S-Moderator
Messages: 374
3


Insert the style sheet (CSS):


Code
.statistics {margin: 20px 0 17px; text-align: center;}  
.statistics .block {display: inline-block; margin: 0 8px; position: relative;}  
.statistics .block div {border: 1px solid; border-radius: 50%; width:
60px; height: 60px; line-height: 53px; font-size: 16px;}  
.statistics span {display: block; border-radius: 3px; width: 54px;
height: 20px; line-height: 20px; font-size: 10px; color: #fff;
text-transform: uppercase; position: absolute; right: 3px; top: 47px;}  
.statistics .block:nth-of-type(1) div {border-color: #ca6539; color: #ca6539;}  
.statistics .block:nth-of-type(1) span {background: #ca6539;}  
.statistics .block:nth-of-type(2) div {border-color: #8bca39; color: #8bca39;}  
.statistics .block:nth-of-type(2) span {background: #8bca39;}  
.statistics .block:nth-of-type(3) div {border-color: #cac839; color: #cac839;}  
.statistics .block:nth-of-type(3) span {background: #cac839;}


Replace $ ONLINE_COUNTER $ with the following code :


Code
<div class="statistics">  

<div class="block">  
<div id="tnum"></div>  
<span>Total</span>  
</div>  

<div class="block">  
<div id="unum"></div>  
<span>Users.</span>  
</div>  

<div class="block">  
<div id="gnum"></div>  
<span>Guests</span>  
</div>  

</div>  

<div style="display: none;">$ONLINE_COUNTER$</div>

<script type="text/javascript">  
$('#tnum').text($('#onl1 b').text());  
$('#gnum').text($('#onl2 b').text());  
$('#unum').text($('#onl3 b').text());  
</script>


 
Message

Insert the style sheet (CSS):


Code
.statistics {margin: 20px 0 17px; text-align: center;}  
.statistics .block {display: inline-block; margin: 0 8px; position: relative;}  
.statistics .block div {border: 1px solid; border-radius: 50%; width:
60px; height: 60px; line-height: 53px; font-size: 16px;}  
.statistics span {display: block; border-radius: 3px; width: 54px;
height: 20px; line-height: 20px; font-size: 10px; color: #fff;
text-transform: uppercase; position: absolute; right: 3px; top: 47px;}  
.statistics .block:nth-of-type(1) div {border-color: #ca6539; color: #ca6539;}  
.statistics .block:nth-of-type(1) span {background: #ca6539;}  
.statistics .block:nth-of-type(2) div {border-color: #8bca39; color: #8bca39;}  
.statistics .block:nth-of-type(2) span {background: #8bca39;}  
.statistics .block:nth-of-type(3) div {border-color: #cac839; color: #cac839;}  
.statistics .block:nth-of-type(3) span {background: #cac839;}


Replace $ ONLINE_COUNTER $ with the following code :


Code
<div class="statistics">  

<div class="block">  
<div id="tnum"></div>  
<span>Total</span>  
</div>  

<div class="block">  
<div id="unum"></div>  
<span>Users.</span>  
</div>  

<div class="block">  
<div id="gnum"></div>  
<span>Guests</span>  
</div>  

</div>  

<div style="display: none;">$ONLINE_COUNTER$</div>

<script type="text/javascript">  
$('#tnum').text($('#onl1 b').text());  
$('#gnum').text($('#onl2 b').text());  
$('#unum').text($('#onl3 b').text());  
</script>

Author - GoblinaS
Date Added - 2016-07-12 в 12:58 PM
UcozBaze All Scripts And Templates » Scripts and Coding » Statistics » The original form of statistics for uCoz (Оригинальный вид статистики для uCoz)
Page 1 of 11
Search:
                                                               
Statistics Forum
New Posts Popular topic Top Forum Users New User

type list Automatically add tags for all uCoz modules (6)
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 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

Adriana
aljoxp
Eden
Bind3436
TotEu9652
honda012009
m7mad
greeklifeinworld
gmosergey123
robihorvat95


Site design by uCozBaze
uCozBaze © 2011-2016