ERZATSU | Дата: Среда, 25.12.2013, 18:43 | Сообщение # 1 |
Основатель сайта
Группа: Администраторы
Сообщений: 439
|
Где ходим видеть эту статистику после $BODY$ вставляем: Код <script type="text/javascript" id="userList"> $.get('/index/62',function(e){ fuu = $('cmd[p="content"]',e).text(); $('a',fuu).each(function(i){ $('#userList').prepend('<a class="userList '+$(this).attr('class')+'" href="'+$(this).attr('href')+'">'+$(this).text()+'</a><div style="clear:both"></div>'); }); }); setInterval(function(){ data=$('#userList').text(); $.get('/index/62',function(q){ fis = $('cmd[p="content"]',q).text(); // Здесь должно было быть авторство $('a',fis).each(function(){ if(data.indexOf($(this).text())== -1){ $('#userList').prepend('<a class="userList '+$(this).attr('class')+'" href="'+$(this).attr('href')+'">'+$(this).text()+'</a><div style="clear:both"></div>'); _uWnd.alert('<div align="center" style="padding:5px;"><b>'+$(this).text()+'</b> зашёл на сайт</div>', '',{w:210, tm:4000, h:60}); } }); // вошли $('#userList a').each(function(){ if(fis.indexOf($(this).text())== -1){ _uWnd.alert('<div align="center" style="padding:5px;"><b>'+$(this).text()+'</b> ушёл с сайта</div>', '',{w:210, tm:4000, h:60}); $(this).prev('.ssikq').remove(); $(this).remove(); } }); // вышли // }); },90000); </script> <div style="display:none;margin:-5px; margin-top:5px; padding:0px; border-top:1px solid #ccc; background:#f3f3f3; max-height:160px; overflow:auto; overflow-x:hidden;" id="userList"> <div style="clear:both"></div> </div>
|
|
| |