VAOZ Posted April 16, 2018 Share Posted April 16, 2018 Установка: 1. Первым делом установим стили, для нашей статистики. Для этого, зайдите в таблицу стилей вашего сайта и в самый низ установите: .statistics {margin: 20px 0 17px; text-align: center;} .statistics .block {display: inline-block; margin: 0 5px; position: relative;} .statistics .block div {border: 2px solid; border-radius: 20%; width: 45px; height: 50px; line-height: 53px; font-size: 16px;} .statistics span {display: block; border-radius: 2px; width: 54px; height: 20px; line-height: 20px; font-size: 10px; color: #fff; text-transform: uppercase; position: absolute; right: 0px; top: 47px;} .statistics .block:nth-of-type(1) div {border-color: #1d69ff; color: #1;} .statistics .block:nth-of-type(1) span {background: #1d69ff;} .statistics .block:nth-of-type(2) div {border-color: #1d69ff; color: #1;} .statistics .block:nth-of-type(2) span {background: #1d69ff;} .statistics .block:nth-of-type(3) div {border-color: #1d69ff; color: #1;} .statistics .block:nth-of-type(3) span {background: #1d69ff;} 2. Далее Найдите у себя $ONLINE_COUNTER$ и замените на: <Center><b> <div class="statistics"> <div class="block"> <div id="tnum"></div> <span>Всего</span> </div> <div class="block"> <div id="gnum"></div> <span>Гости</span> </div> <div class="block"> <div id="unum"></div> <span>Польз.</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></center> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now