Довольно уникальный скрипт,в случае если какой-либо пользователь сайта зашёл или ушёл с сайта показывается AJAX такого содержания:
Code
Пользователь $USERNAME$ зашёл на сайт/вышёл с сайта.
Установка:
На страницу на которой хотим видеть скрипт ставим в любое место:
Code
<script type="text/javascript">
$.get('/index/62',function(e){ fuu = $('cmd[p="content"]',e).text();
$('a',fuu).each(function(i){
$('#userList').prepend('<div class="ssikq" style="margin-top:6px; margin-bottom:-16px; padding-right:6px;" align="right"><img style="margin-right:5px; cursor:pointer" onclick="alert(\'Разрабатываем!\');" src="/img/new/pmver2.png" border="0" /><img style="cursor:pointer" onclick="alert(\'Разрабатываем!\');" src="/img/new/face.png" border="0" /></div><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('<div class="ssikq" style="margin-top:6px; margin-bottom:-16px; padding-right:6px;" align="right"><img style="margin-right:5px; cursor:pointer" onclick="alert(\'Разрабатываем!\');" src="/img/new/pmver2.png" border="0" /><img style="cursor:pointer" onclick="alert(\'Разрабатываем!\');" src="/img/new/face.png" border="0" /></div><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:5000, 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:5000, h:60});
$(this).prev('.ssikq').remove(); $(this).remove();
}
}); // вышли
//
});
},7000);
//Rip by Stalker-Portal.Info
//Original in: USite.Su
</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>
Вот и всё,скрипт установлен.
Советую поставить в "Верхняя часть сайта" или "Первый/Второй контейнер".
Рипнул Strelok,то есть я.
Рип с сайта:USite.Su