Главная » 2012 » Март » 16 » Скрипты uCoz: Список online юзеров в столбик
18:39 Скрипты uCoz: Список online юзеров в столбик | ||||||||||||
Список online юзеров в столбикСоветуем посмотреть: src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> Скрипт немного видоизменит вашу статистику пользователей, находящихся online. ПУ-->Управление дизайном-->CSS. В любое место ставим этот код: Code a.userList:link, a.userList:visited, a.userList:active {display:block; text-decoration:none; border-top:1px solid #ccc; margin-top:-1px; background:#EDEDED; padding:5px 5px;} a.userList:hover {text-decoration:none; background:#D8C9C9;} Затем, там где вам нужна статистика, ставим этот скрипт: Code <div style="margin:-6px; margin-top:6px; padding:0px; border-top:1px solid #ccc; background:#EDEDED; max-height:55px; overflow:auto; overflow-x:hidden;" id="userList"> <div style="clear:both"></div> </div> <script type="text/javascript"> $.get('/index/62',function(e){ fuu = $('cmd[p="content"]',e).text(); $('a',fuu).each(function(i){ $('#userList').prepend('<div style="margin-top:6px; margin-bottom:-16px; padding-right:6px;" align="right"><a href="/index/8" title="На свой профиль..."><img style="margin-right:4px; cursor:pointer" src="http://webo4ka.ru/Ucoz4/ctatictika_user_profil.png" border="0" /></a><a href="/index/14-0-0-1" title="На ЛС"><img style="cursor:pointer" src="http://webo4ka.ru/Ucoz4/ctatictika_user_lc.png" border="0" /></a></div><a class="userList '+$(this).attr('class')+'" href="'+$(this).attr('href')+'">'+$(this).text()+'</a><div style="clear:both"></div>'); }); }); </script> Материал взят с сайта infoscript.ru
|