Главная » Файлы » Для uCoz » Информеры для Ucoz |
Оповещение о входе и выходе пользователей для uCoz
27.01.2012, 15:28 | |
Установка: Вставляем данный после тега , на нужных вам страницах, либо в отдельный блок следующий код: Code <script type="text/javascipt"> $.get('/index/62',function(e){ codet = $('cmd[p="content"]',e).text(); $('a',codet).each(function(i){ $('#peoples').prepend('<a class="peoples '+$(this).attr('class')+'" href="'+$(this).attr('href')+'">'+$(this).text()+'</a>');});}); setInterval(function(){ data=$('#peoples').text(); $.get('/index/62',function(q){ fis = $('cmd[p="content"]',q).text(); $('a',fis).each(function(){ if(data.indexOf($(this).text())== -1){ $('#peoples').prepend('<a class="peoples '+$(this).attr('class')+'" href="'+$(this).attr('href')+'">'+$(this).text()+'</a><div style="clear:both"></div>'); _uWnd.alert('<div align="center" style="padding:5px;"><b><a class="peoples '+$(this).attr('class')+'" href="'+$(this).attr('href')+'">'+$(this).text()+'</a></b> на сайте</div>', '',{w:210, tm:5000, h:60}) }}); $('#peoples a').each(function(){ if(fis.indexOf($(this).text())== -1){ _uWnd.alert('<div align="center" style="padding:5px;"><b><a class="peoples '+$(this).attr('class')+'" href="'+$(this).attr('href')+'">'+$(this).text()+'</a></b> ушел</div>', '',{w:210, tm:5000, h:60}) $(this).prev('.ssikq').remove(); $(this).remove();} });});},10000); </script> <div style="display:none" id="peoples"></div> | |
Просмотров: 407 | Загрузок: 0
| Жаловаться на материал
| Рейтинг: 5.0/4 |