სტატისტიკის ფორმა 2025-07-18 |
დასახელება: სტატისტიკის ფორმა ავტორი: saba-web სისტემა: uCoz დაყენება: 1.ჩასვით Css ში .cross {padding-top:2px; display:inline-block; padding-bottom:3px; color:#fff; text-align:center; text-shadow:0px 1px 0px rgba(0,0,0,0.25)} 1. ჩასვით $ONLINE_COUNTER$ ის ნაცვლად <div
style="display:none;">$ONLINE_COUNTER$</div><div
style="float:right;"><span
style="">Пользователи</span><span style="margin:0px;
margin-left:2px; padding:1px; display:inline-block; border:1px solid
#ccc; background:#fff;"><img style="height:7px; width:7px;
background:#34a61e;" src="/images/1px.gif" border="0" alt=""
/></span></div> 3. ჩასვით head შორის <script type="text/javascript"> var allusers = $(".tOnline b").text(); var gostusers = $(".gOnline b").text(); var siteusers = $(".uOnline b").text(); var uGosti = (gostusers/allusers).toFixed(2)*100; var uUsers = (siteusers/allusers).toFixed(2)*100; $("#Statku").html('<div class="cross" style="width:'+uGosti+'%; background:#7d7d7d;">'+Math.floor(uGosti)+'%</div><div class="cross" style="width:'+uUsers+'%; background:#34a61e;">'+Math.floor(uUsers)+'%</div>').after('<div style="border:0px; padding:2px; text-align:center;">Всего — '+allusers+'</div>'); </script> |
სულ კომენტარები: 3 | |