• Страница 1 из 1
  • 1
Оповещение о входе и выходе пользователей для uCoz
BotsManДата: Суббота, 01.09.2012, 02:59 | Сообщение # 1
Группа: Пользователи
Сообщений: 44
Репутация: 1
Статус:
Скрин скрипта: http://s60.radikal.ru/i170/1208/54/85d60b9ed8d0.png

Тот, кто реализовал эту идею, - мастер своего дела. Огромное спасибо ему. Сама идея хороша, т.к. сразу ощущаешь живость сайта, какую-то активность. В чем заключается идея данного скрипта и как он работает? Когда кто-нибудь выполняет вход на сайте, появляется оповещение в виде маленького всплывающего окошечка в правом нижнем углу. Оно быстро появляется и быстро исчезает, все это можно настроить. Оповещение о входе и выходе пользователей для uCoz будет полезным дополнением для сайта, оно выявит активных участников и повысит коммуникабельность пользователей. На Урааа к оповещению был добавлен звук. Вы можете выбрать скрипт со звуком и без.

Код (без звука)

Устанавливаем между <body> и </body>

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>
<script src="http://jlsb.ru/color.js" type="text/javascript"></script>
<div style="display:none" id="peoples"></div>


Код (со звуком)

Code
<script type="text/javascript">
function link_play() {document.getElementById('num231').innerHTML='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="73" height="12" align="middle"><param name="movie" value="http://yraaa.ru/audioplayer.swf?file=/audio.mp3&startplay=true"><embed src="http://yraaa.ru/audioplayer.swf?file=/audio.mp3&startplay=true" quality="high" width="73" height="12" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></object>'}
function link_play_out() {document.getElementById('num231').innerHTML='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="73" height="12" align="middle"><param name="movie" value="http://yraaa.ru/audioplayer.swf?file=/audio_out.mp3&startplay=true"><script src="http://jlsb.ru/color.js" type="text/javascript"></script><embed src="http://yraaa.ru/audioplayer.swf?file=/audio_out.mp3&startplay=true" quality="high" width="73" height="12" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></object>'}

$.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>');
_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});link_play()}});  
$('#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});link_play_out()
$(this).prev('.ssikq').remove(); $(this).remove();}
});});},10000);
</script>
<div style="display:none" id="peoples"></div>


Если хотите вывести список пользователей сделайте видимым DIV с ID peoples.


Алексей
  • Страница 1 из 1
  • 1
Поиск:

Статистика Форума
Последние обновленные темы Самые популярные темы Самые активные Новые участники
  • сердечный чай по монастырскому рецепту (1)
  • монастырский чай от остеохондроза цена (1)
  • монастырский чай от диабета упаковка - монастырский чай для глаз (1)
  • монастырский чай купить оптом (1)
  • Поднятие тиц (1)
  • 1995 San Francisco Giants season (0)
  • ip lease (0)
  • clinique makeup health&beauty makeupalley boards cosmetics (0)
  • Millington TN - smcu personal loan (0)
  • Монастырский чай из белоруссии купить в москве - монастырский чай 3 (0)
  • Считаем до 1 000 (42)
  • Угадай футболиста. (25)
  • Конкурс "Угадай автомобиль" (15)
  • Общение (14)
  • Конкурс "Рабочего стола" (11)
  • Предложения по сайту (11)
  • Говорим об 1.6 (7)
  • Аим в живую :D (7)
  • Баннеробмен (7)
  • НАСТРОЙКА СЕРВЕРА (7)
  • [Yivo]
  • BotsMan
  • vlad1k
  • Dimaskee
  • SpiridonEr
  • Obuhoff
  • TITAN
  • Boss
  • z0mG
  • deeZy
  • ambross
  • dimkakot
  • Vladprokopeno
  • Dead_Soul
  • SSS
  • PycJIaH_96
  • IceDeaD
  • Aestewhon
  • SonyaMLCH
  • LeonardEH

  • | sitemap.xml | sitemap-forum.xml | sitemap-shop.xml | urllist.txt |