Пожаловаться на материал
Скачать файл
Вот и готова вторая, детально протестированная, продуманная и проработанная версия ApoChat 2.0 Огромное спасибо выражаю следующим людям: leonP4, Арман, Angry, Vovchik, Enrek, Fang, Tamik, iLonz Именно эти люди придумывали идеи, а я их разрабатывал. Также эти люди безустанно тестировали каждый этап разработки и за это им низкий поклон! Спасибо, парни! Список возможностей: 1) Антифлуд для группы пользователи 2) Премодерация сообщений пользователей с удобным управлением сообщениями(!) 3) Подсветка своих сообщений и сообщений, оставленных вам. Также всплывает уведомление с ником того, кто оставил сообщение и уведомлением, если это сообщение оставлено Вам (!) 4) Быстрое редактирование сообщений пользователей в модальном окне (!) 5) Новое оригинальное оформление чата 6) Смайлы и ВВ коды в модальном окне 7) Включение панели онлайн пользователей 8) Возможность отправки сообщений по ENTER (Выбор запоминается на cookie) 9) Быстрая проверка новых сообщений (ЛС) с темами и с удобной подгрузкой управления ими 10) Возможность отключения (отдельно) звуков отправки и звуков новых сообщений (Выбор запоминается на cookie) 11) Подгрузка мини-профилей пользователей 12) Удобная выезжающая панель дополнений (Положение запоминается на cookie) 13) Автообновление чата каждые 20 секунд 14) Все функции выполняются на ajax запросах без перехода на другие страницы Приступим к установке: 1.a) Настроим права групп пользователей для мини-чата по скриншоту: 1.b) Мини-чат -- Настройка модуля. Настройте всё по скриншоту: 2) На персональной странице пользователя в самый верх:Код
<span style="display:none;"> <div id="loader"> <span id="ava"><a title="Клик для перехода в профиль" href="/index/8-$_USER_ID$" target="_blank"><?if($_AVATAR$)?>$_AVATAR$<?else?><img src="/images/noavatar.png" border="0"><?endif?></a></span> [<?if($_STATUS$)?>$_STATUS$<?else?><font color="green">Olnine</font><?endif?>] <b>Группа:</b> $_GROUP_NAME$<br><br> <?if($_NAME$)?><b>Имя:</b> $_NAME$<br><?endif?> <b>Добавлено файлов:</b> <a href="$_LOAD_ACTIVITY_URL$" target="_blank">$_LOAD_ENTRIES$</a><br> <b>Оставлено комментариев:</b> $_COM_ENTRIES$<br> <b>Последний раз был на сайте:</b><br>$_LOG_TIME$ </div> <div id="onu">$ONLINE_USERS_LIST$</div> </span>
3) В Виде материалов замените всё на:Код
<div class="cBlock" style="padding:0 4px 5px 2px;margin-bottom:3px;"> <?if($CUSTOM1$="moder")?> <div class="nmop2" id="nmop2"> <?else?> <div class="nmop" id="nmop"> <?endif?> <div style="float:right;font-size:8px;" title="$DATE$">$TIME$</div> <div style="text-align:left;"> <?if($USERNAME$)?><img title="Клик для просмотра мини-профиля" id="prof" md="$USER_ID$" src="http://s36.ucoz.net/img/icon/profile.png" width="13" border="0" style="vertical-align:-2px" /> <?endif?> <span class="dert" title="$NAME$,"> <a id="user" href="javascript:void('Apply to')" onclick="parent.window.document.getElementById('mchatMsgF').focus(); parent.window.document.getElementById('mchatMsgF').value+='[i]$NAME$[/i], ';return false;"><b id="name">$NAME$ </b></a> <img id="edm" title="Редактирование сообщения" src="/apo/edmes.png" width="12px" border="0" style="vertical-align:-2px;display:none;" /> <span id="thmes"style="display:none;">$MESSAGE$</span></span> <?if($EMAIL$)?> <a href="$EMAIL_JS$" title="$STR_EMAIL$">E</a><?endif?> <?if($SITE$)?> <a rel="nofollow" href="$SITE$" target="_blank" title="$STR_URL$">W</a><?endif?> </div> <div class="cMessage" style="text-align:left;"><?if($CUSTOM1$="moder")?>$MESSAGE$<?else?><?if($CUSTOM1$="no-moder")?><img src="/apo/attent.png" width="20px" /> <font title="Сообщение заблокировано в связи с нарушением правил сайта<?if($CUSTOM2$)?> °°° $CUSTOM2$ °°°<?endif?>" color="red"><b>Заблокировано модератором</b></font><?else?><img src="/apo/attent2.png" width="20px" /> <font title="Сообщение будет доступно лишь после проверки модератором" color="orange"><b>Сообщение на модерации</b></font><?endif?><?endif?> <span style="display:none;"> <?if($CUSTOM1$)?><br>$STR_CUSTOM1$: $CUSTOM1$<?endif?> <?if($CUSTOM2$)?><br>$STR_CUSTOM2$: $CUSTOM2$<?endif?> </span> </div> <?ifnot($CUSTOM1$="moder")?> </div> <?endif?> </div>
4) В форме добавления сообщений мини-чата замените всё на:Код
<?ifnot($USER_LOGGED_IN$)?><div align="center"><?if($LOGIN_LINK$)?><a href="$LOGIN_LINK$">Для добавления необходима авторизация</a><?else?>Доступ запрещен<?endif?></div><?else?> <table border="0" cellpadding="1" cellspacing="1" width="100%"> <tr><td>$FLD_AUTOUPD$</td> <td width="70%" align="right"> <a href="$RELOAD_URI$" title="Обновить"><img alt="" border="0" align="absmiddle" src="http://s36.ucoz.net/img/fr/mcr.gif" width="13" height="15"></a> <?if($SMILES_URI$)?><a href="$SMILES_URI$" title="Вставить смайл"><img alt="" border="0" align="absmiddle" src="http://s36.ucoz.net/img/fr/mcs.gif" width="13" height="15"></a><?endif?> <?if($BBCODES_URI$)?><a href="$BBCODES_URI$" title="BB-Коды"><img alt="" border="0" align="absmiddle" src="http://s36.ucoz.net/img/fr/mcb.gif" width="13" height="15"></a><?endif?> <?if($MSGCTRL_URI$)?><a href="$MSGCTRL_URI$" title="Управление сообщениями"><img alt="" border="0" align="absmiddle" src="http://s36.ucoz.net/img/fr/mcm.gif" width="15" height="15"></a><?endif?> </td></tr></table> <?if(!$USER_LOGGED_IN$)?> <table style="display:none;" border="0" cellpadding="1" cellspacing="1" width="100%"> <tr><td colspan="2">$FLD_NAME$</td></tr> <tr><td width="50%">$FLD_EMAIL$</td><td>$FLD_URL$</td></tr> </table> <?endif?> <?if($FLD_CUSTOM1$ || $FLD_CUSTOM2$)?> <table border="0" cellpadding="1" cellspacing="1" width="100%"> <tr><td width="50%">$FLD_CUSTOM1$</td><td>$FLD_CUSTOM2$</td></tr> </table> <?endif?> <?if($FLD_SECURE$)?> <table border="0" cellpadding="1" cellspacing="1" width="100%"> <tr><td width="50%">$FLD_SECURE$</td><td align="right">$IMG_SECURE$</td></tr> </table> <?endif?> <table border="0" cellpadding="1" cellspacing="1" width="100%"> <tr><td width="95%" rowspan="2">$FLD_MESSAGE$</td> <td align="center" valign="top"><div style="font-size:10px;">$LENGTH_COUNTER$</div></td> </tr><tr><td align="center" valign="bottom"> <input type="image" src="/apo/OK.png" title="Клик для отправки" class="mchat" id="mchatBtn" style="width:30px;"> <img alt="" style="display:none;" id="mchatAjax" src="http://s36.ucoz.net/img/fr/ajax3.gif" border="0" width="16"> </td></tr></table> <div id="setter"> <div class="setall"> <table> <tr> <td valign="top" width="25px"><img src="/apo/pm.png" width="25px" title="Проверить личные сообщения" id="pmnshow" /></td> <td width="25px"><img src="/apo/muzkey.png" width="25px" title="Отключить звуки отправки сообщений" id="muzickey" /></td> <td width="25px"><img src="/apo/muznpm.png" width="25px" title="отключить звуки получения сообщений" id="muzicnpm" /></td> <td valign="top" width="25px"><img src="/apo/enter.png" width="25px" title="Отправка сообщений через ENTER" id="entr" /></td> </tr> </table> </div> </div> <?endif?>
5) Замените $CHAT_BOX$ (Обычно находится в глобальном блоке) на:
Код
<script> // ApoChat 2.0 by Apocalypse function setCookie(name, value, days) { if (days) { var date = new Date(); date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); var expires = "; expires=" + date.toGMTString(); } else var expires = ""; document.cookie = name + "=" + value + expires + "; path=/"; } function getCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') c = c.substring(1, c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length); } return null; } function eraseCookie(name) { setCookie(name, "", -1); }; $(document).ready(function() { $('#mchatC2F').hide(0); <?if($GROUP_ID$='1')?> $('#mchatC2F').remove(); $('#mchatC1F').remove(); <?else?> $('#mchatC1F').val('moder'); <?endif?> $('#mchatC1F').hide(0); }); // apo-ucoz.com © 2011 год </script> <style> <?ifnot($GROUP_ID$='3' or $GROUP_ID$='4')?> input[name=custom1] {display:none;} input[name=custom2] {display:none;} <?endif?> a#mysmes {text-decoration:none;} a#user {text-decoration:none;} #mchatMsgF {border: 2px inset #eee;border-radius:5px;opacity:0.8;} div .nmop {opacity:0.3;} div #nmop:hover {opacity:0.5;} .edm2 {font-weight:bold;cursor:pointer;left:50%;top:50%;z-index:160;position:fixed;margin-left:140px;margin-top:-100px;width:5px;height:5px;border-radius:5px;background:#fff;border:3px solid #eee;opacity:0.95;padding:3px 7px 10px 5px;display:none;} .edm {left:50%;top:50%;z-index:150;position:fixed;margin-left:-140px;margin-top:-70px;width:280px;border-radius:5px;background:#fff;border:3px solid #eee;box-shadow:0px 2px 4px #000;opacity:0.95;padding:20px 10px 20px 10px;display:none;} .postRest1 {background:none;width:300px;} .postRest2 {background:none;width:300px;} .contentBg {background:none;} .myBdBottom {display:none;} #bbsmile {border:3px solid #eee;left:50%;margin-left:-150px;top:50%;margin-top:-175px;width:300px;height:250px;opacity:0.75;display:none;position:fixed;z-index:100;background:#fff;box-shadow:0px 4px 5px #aaa;padding:5px;border-radius:5px;} #bbsmile:hover {opacity:1;} .setall {display:none;} .oulist {z-index:100;text-align:center;display:none;left:50%;margin-left:-150px;color:#eee;position:fixed;top:0;padding:25px 15px 15px 15px;width:300px;background:#fff;opacity:0.9;border:5px solid #efefef;box-shadow:0px 2px 3px #777;border-radius:0px 0px 5px 5px;} img.codeButtons {border:0} .xw-mc {background:none;border:0;} div img {cursor:pointer} #scrollers {width:auto; height:300px; overflow-x:hidden;position:relative;z-index:15;background:url('/apo/75.jpg');} .prblock {position:absolute;width:150px;height:150px;border-radius:0 10px 10px 0;box-shadow:1px 1px 5px #444;background:ddd;z-index:100;opacity:0.85;margin-left:180px;padding:10px;} #nnn {z-index:100;position:absolute;background:#ddd;border:1px dashed #ccc;opacity:0.9;margin-left:120px;height:300px;overflow-x:hidden;} .mpr {left:50%;top:50%;z-index:110;position:fixed;margin-left:-140px;margin-top:-70px;width:280px;height:140px;border-radius:5px;z-index:35;background:#fff;border:3px solid #eee;box-shadow:0px 2px 4px #777;opacity:0.95;padding:20px 0 0 50px;display:none;} #rel {color:green;font-weight:bold;font-size:9px;vertical-align:2px;opacity:0;} #ava img {width:30px;} div.cBlock {color:#333;background:#fff;border-radius:5px;margin:5px !important;padding:5px !important;box-shadow:0px 1px 1px #aaa;opacity:0.85;} div.cBlock:hover {opacity:1;} input[name=s] {display:none;} input[name=soll] {display:none;} } </style> <div class="gmm3" style="display:none;"></div> <div class="edm2">X</div> <div class="edm"><div id="hload"><img src="/apo/ajax-loader.gif" width="100px"/></div></div> <div style="display:none;" id="per1"></div> <div style="display:none;" id="per2"></div> <div id="dels"></div> <div id="flash" style="position:absolute;top:-1000;z-index:-10;"> </div> <div id="flash2" style="position:absolute;top:-1000;z-index:-10;"> </div> <div class="oulist"><table><td width="12px"><img title="Обновить статистику" src="/apo/27.png" style="display:none;cursor:pointer;" width="12px" id="rimg" /></td><td><span id="rell"><img src="/apo/i3.gif" border="0" width="150px" /></span></td></table></div> <span id="pr"></span> <div id="scrollers"> <div id="cht"><center><img src="/apo/i3.gif" border="0" width="150px" /></center></div> </div> <table width="100%"> <td width="25px"><img title="Обновить" width="25px" src="/apo/2.png" onclick="reloader();" /></td> <td width="25px"> <img title="Смайлы и ВВ коды" width="25px" src="/apo/1.png" id="smile1" /></td> <td valign="top" width="25px"><img name="hider" src="/apo/whon.png" width="25px" title="Показать список онлайн пользователей" id="ounshow" /> </td> <td width="25px"> <img title="Дополнительно" width="25px" src="/apo/set.png" id="setter"/> </td> <td align="right"><div title="Индикатор обновления" id="rel">Обновлено</div></td> </table> $CHAT_BOX$ <div id="bbsmile"> <center> <script type='text/javascript' src='/apo/bbcodes.js'></script> <script src="/apo/apoSM.js"></script> <br><br> <script src="/apo/apoCH.js"></script> </center> </div> <div title="Клик по профилю для его закрытия" class="mpr" id="loadp"><img src="/apo/ajax-loader.gif" /></div> </div></div></div> <script type="text/javascript"> // ApoChat 2.0 by Apocalypse var addb = $('div#chaddf').html(); var integ = $('div#cht'); var edit1 = $('div#chedit'); var bedit = $('#edit1'); var beditc = $('#edit2'); function dere() { $('div.cMessage:contains("$USERNAME$,")').parent().parent().attr('title', 'Это сообщение оставлено вам').css('background', '#ddffdd !important'); $('div.cMessage').parent().parent().find('a#user:contains("$USERNAME$ ")').parent().parent().parent().parent().css('background', '#ffeedd').attr('title', 'Это ваше сообщение'); $('div.cMessage').parent().parent().each(function() {$(this).find('a#user:contains("$USERNAME$ ")').hide(0).after('<a onclick="mysmes();" href="javascript://"><b>$USERNAME$</b></a>'); }); }; function mysmes() {_uWnd.alert('Себя то зачем цитировать?', 'Ошибка', {tm:3000, name:'whyq', w:200, h:70})}; $('#rimg').click(function() { $('#rell').load('/index/8 #onu', function() { oul.fadeTo(300, 0.5).fadeTo(300, 0.8); }); }); $('#dels').load('/index/14-0-0-1 input[name=ssid]', function() { delres = $('input[name=ssid]').val(); }); var setall = $('.setall'); if(getCookie('setall')) { setall.slideDown(500); $('#setter').toggle(function() { eraseCookie('setall'); setall.slideUp(500); }, function() { setall.slideDown(500); setCookie('setall', 365); _uWnd.close('hw'); }); } else { $('#setter').toggle(function() { setCookie('setall', 365); _uWnd.close('hw'); setall.slideDown(500); }, function() { eraseCookie('setall'); setall.slideUp(500); }); }; $('#smile1').toggle(function() { $('#bbsmile').fadeIn(500); }, function() { $('#bbsmile').fadeOut(500); }); var ous = $('#ounshow'); var oul = $('.oulist'); ous.toggle(function() { $(this).fadeTo(300, 0.5); oul.fadeIn(500, function() { setTimeout(function() { $('#rimg').fadeIn(500); }, 500); }); $('#rell').load('/index/8 #onu'); setInterval(function() { $('#rell').load('/index/8 #onu'); }, 60000); }, function() { ous.fadeTo(500, 1);oul.fadeOut(500); }); var muzk = $('#muzickey'), muznp = $('#muzicnpm'), muz1 = $('#muz1'), fl1 = $('#flash'), fl2 = $('#flash2'); if (getCookie('muzic1')) { fl1.attr('id', 'f1'); muzk.fadeTo(500, 0.5).attr('title', 'Клик для включения звука отправки'); muzk.toggle(function() { eraseCookie('muzic1'); $(this).fadeTo(500, 1).attr('title', 'Клик для отключения звука отправки'); $('#f1').attr('id', 'flash'); }, function() { setCookie("muzic1", 365); $(this).fadeTo(500, 0.5).attr('title', 'Клик для включения звука отправки'); fl1.attr('id', 'f1'); }); } else { $('#f1').attr('id', 'flash'); muzk.fadeTo(500, 1).attr('title', 'Клик для отключения звука отправки'); muzk.toggle(function() { setCookie("muzic1", 365); $(this).fadeTo(500, 0.5).attr('title', 'Клик для включения звука отправки'); fl1.attr('id', 'f1'); }, function() { eraseCookie('muzic1'); $(this).fadeTo(500, 1).attr('title', 'Клик для отключения звука отправки'); $('#f1').attr('id', 'flash'); })}; if (getCookie('muzic2')) { fl2.attr('id', 'f2'); muznp.fadeTo(500, 0.5).attr('title', 'Клик для включения звука новых сообщений'); muznp.toggle(function() { eraseCookie('muzic2'); $(this).fadeTo(500, 1).attr('title', 'Клик для отключения звука новых сообщений'); $('#f2').attr('id', 'flash2'); }, function() { setCookie("muzic2", 365); $(this).fadeTo(500, 0.5).attr('title', 'Клик для включения звука новых сообщений'); fl2.attr('id', 'f2'); }); } else { $('#f2').attr('id', 'flash2'); muznp.fadeTo(500, 1).attr('title', 'Клик для отключения звука новых сообщений'); muznp.toggle(function() { setCookie("muzic2", 365); $(this).fadeTo(500, 0.5).attr('title', 'Клик для включения звука новых сообщений'); fl2.attr('id', 'f2'); }, function() { eraseCookie('muzic2'); $(this).fadeTo(500, 1).attr('title', 'Клик для отключения звука новых сообщений'); $('#f2').attr('id', 'flash2'); })}; function reloader() { integ.load('/mchat div.cBlock', function() { dere(); integ.fadeOut(0).fadeIn(500); rell(); }); }; setInterval(function() { integ.load('/mchat div.cBlock', function() { dere(); rell(); }); }, 20000); $('#mchatBtn').click(function() { smes(); }); $("#mchatMsgF").bind("keydown",function(e){if(e.keyCode==13 && e.ctrlKey && !e.shiftKey){ smes(); }}); function del_item(id){if (confirm('Вы подтверждаете удаление?')){var img=document.getElementById('di'+id);img.src='http://s36.ucoz.net/img/fr/OmnAjax.gif';_uPostForm('',{url:'http://bagger.ucoz.kz/index/16-'+id});}}function delgroup(f) {if (confirm('Вы подтверждаете удаление?')){document.getElementById('dpms').style.display='none';var frm=eval('document.'+f);_uPostForm(f,{type:'POST',url:frm.action});}} function show_profile(uid) { window.open('/index/8-'+uid); return false; } function edit_rec(id) { <?ifnot($GROUP_ID$='3' or $GROUP_ID$='4')?> setTimeout(function() { $('td:contains("Идентификатор"):first').after('<td> <font color="red">Доступно только для Админов и Модеров</font></td>'); $('td:contains("Причина бана"):first').after('<td> <font color="red">Доступно только для Админов и Модеров</font></td>'); }, 1000); <?endif?> new _uWnd('Ie','Редактирование комментария',-430,-150,{autosize:1,closeonesc:1,resize:0, onclose:function() {_uWnd.close('hw');$('div.contentBg').fadeOut(500);$('div.edm2').fadeOut(500);$('.edm').fadeOut(500);}},{url:'/mchat/'+id+'-5'}); <?if($GROUP_ID$='3' or $GROUP_ID$='4')?> setTimeout(function() { $('#gmod').click(function() { $('input[name="custom1"]').val('moder'); }); }, 2000); setTimeout(function() { $('#bmod').click(function() { $('input[name="custom1"]').val('no-moder');$('input[name="custom2"]').focus();$('#dop').fadeIn(500).fadeOut(500); }); }, 1000); _uWnd.alert('<input type="button" value="Разблокировать сообщение" id="gmod" /><br><input type="button" value="Заблокировать сообщение" id="bmod" /><br><span id="dop" style="display:none;"><font color="red">Укажите причину</font></span>','Подсказка',{align:'left', w:200, h:100, tm:999999999, name:'hw', icon:'http://s36.ucoz.net/img/icon/tip.png'}); <?endif?> } function del_rec(id) { _entrRem('dib'+id,'/mchat/'+id+'-7-'+delres+'','','Вы подтверждаете удаление?'); return false; } function yenter() { $("#mchatMsgF").unbind('keydown'); $("#mchatMsgF").bind("keydown",function(e){if(e.keyCode==13 && e.ctrlKey) { _uWnd.alert('Не забывайте, что у вас отправка по <font color="green">ENTER</font>','Памятка',{align:'left', w:300, h:60, tm:5000, icon:'http://s36.ucoz.net/img/icon/tip.png'}); } else if(e.keyCode==13) {e.preventDefault();sbtFrmMC991(); smes(); }}); $('#entr').fadeTo(500, 0.5); $('#entr').attr('title', 'Отправка по ENTER активна. Клик для отмены функции'); } function nenter() { $("#mchatMsgF").unbind('keydown'); $("#mchatMsgF").bind("keydown",function(e){if(e.keyCode==13 && e.ctrlKey && !e.shiftKey){e.preventDefault();sbtFrmMC991(); smes(); }}); $('#entr').fadeTo(500, 1); $('#entr').attr('title', 'Отправка сообщений через ENTER'); } var ennt = $('#entr'); if(getCookie("ent")) { yenter(); $('#entr').fadeTo(500, 0.5); ennt.toggle(function() { eraseCookie("ent"); nenter(); }, function() { setCookie("ent", 365); yenter(); }); } else { nenter(); $('#entr').fadeTo(500, 1); ennt.toggle(function() { setCookie("ent", 365); yenter(); }, function() { eraseCookie("ent"); nenter(); }); } var pmnshow = $('#pmnshow'); pmnshow.toggle(function() { $('div.gmm3').load('/index/14 .unread', function() { $('b.unread').attr('title', 'Тема сообщения, клик для подгрузки окна').wrap('<a href="javascript://" id="salme"></a>').after('<br>'); var tr4 = $('div.gmm3').html(); setTimeout(function() { $('#45').html(tr4); }, 1000); var asd2 = $('b.unread').size(); if(asd2 > 0) { _uWnd.alert('Непрочитанных сообщений: <font color="green"><b>'+asd2+'</b></font><br><br><div id="45"></div>','Проверка новых сообщений',{name:'13a', align:'left', w:300, h:150, tm:9999999, icon:'http://s36.ucoz.net/img/icon/tip.png'}); setTimeout(function() { $('a#salme').click(function() { _uWnd.alert('<div id="lpt"><img src="/apo/ajax-loader.gif" width="100px"/></div>','Редактирование сообщений',{name:'12a', align:'left', w:300, h:150, tm:9999999, icon:'http://s36.ucoz.net/img/icon/tip.png'}); setTimeout(function() { $('div#lpt').load('/index/14 #pmdform', function() { $('td a').attr('target', '_blank'); }); }, 500); }); }, 1000); } else { _uWnd.alert('Нет непрочитанных сообщений','Проверка новых сообщений',{name:'13a', align:'left', w:300, h:60, tm:10000, icon:'http://s36.ucoz.net/img/icon/tip.png'}); } }); $('#pmnshow').fadeTo(500, 0.5); }, function() { _uWnd.close('13a'); _uWnd.close('12a'); $('#pmnshow').fadeTo(500, 1); }); $('iframe#mchatIfm2').hide(0); $('#MCaddFrm table:first').hide(0); integ.load('/mchat div.cBlock', function() { dere(); integ.fadeOut(0).fadeIn(500); <?ifnot($GROUP_ID$='3' or $GROUP_ID$='4')?> $('span.dert[title="$USERNAME$,"]').each(function() {$(this).find('img#edm').fadeIn(500);}); <?else?> $('img#edm').fadeIn(500); <?endif?> $('img#edm').click(function() { var treeq = $(this).next('span').text(); $(this).fadeTo(500, 0.5);$('.edm').fadeIn(500);$('.edm2').fadeIn(500); $('.edm2').click(function() { _uWnd.close('hw'); $('div.contentBg').fadeOut(500);$(this).fadeOut(500);$('.edm').fadeOut(500); }); $('div#hload').load('/mchat/0-1 div.contentBg', function() { $('div.myBdBottom:contains(' + treeq + '):first').fadeIn(1000); }); }); var per1 = $('.cMessage:first').text(); $('#per1').text(per1); $('img#prof').click(function() { var aq = $('img#prof'); var aa1 = $(this).attr('md'); $('.mpr').fadeIn(500); $('div#loadp').load('index/8-'+aa1+' #loader', function() { $('#loader').fadeOut(0).fadeIn(1000); }); }); $('.mpr').click(function() { $(this).fadeOut(500); $('#loader').fadeOut(500); }); }); function rell() { $('.uSpoilerButton').click(function() { if($('#uSpoiler_U09V_')[0]){if ($('.uSpoilerText',$('#uSpoiler_U09V_'))[0].style.display=='none'){$('.uSpoilerText',$('#uSpoiler_U09V_'))[0].style.display='';$('.uSpoilerButton',$('#uSpoiler_U09V_')).val('Закрыть спойлер');$('#uSpoiler_U09V_').attr('class','uSpoilerOpened');}else {$('.uSpoilerText',$('#uSpoiler_U09V_'))[0].style.display='none';$('.uSpoilerButton',$('#uSpoiler_U09V_')).val('Открыть спойлер');$('#uSpoiler_U09V_').attr('class','uSpoilerClosed');}} }); <?ifnot($GROUP_ID$='3' or $GROUP_ID$='4')?> $('span.dert[title="$USERNAME$"]').each(function() {$(this).find('img#edm').fadeIn(500);}); <?else?> $('img#edm').fadeIn(500); <?endif?> $('img#edm').click(function() { var treeq = $(this).next('span').text(); $(this).fadeTo(500, 0.5);$('.edm').fadeIn(500);$('.edm2').fadeIn(500); $('.edm2').click(function() { _uWnd.close('hw'); $('div.contentBg').fadeOut(500);$(this).fadeOut(500);$('.edm').fadeOut(500); }); $('div#hload').load('/mchat/0-1 div.contentBg', function() { $('div.myBdBottom:contains(' + treeq + '):first').fadeIn(1000); }); }); var per2 = $('.cMessage:first').text(); $('#per2').text(per2); if(per2 == $('#per1').text()) { } else { var uprof = $('div.cBlock #name:first').text(); var iffu = $('.cMessage:first:contains("$USERNAME$,")').size(); if(iffu > 0) { _uWnd.alert('В чате новое сообщение от <font color="green"><b>'+uprof+'</b></font><br><br>Оно адресовано вам','Новое сообщение в чате',{align:'left', w:270, h:80, tm:10000, name:'h3', icon:'http://s36.ucoz.net/img/icon/tip.png'}); $('div#flash2').html('<embed type="application/x-shockwave-flash" src="http://s51.ucoz.net/flash/audio1.swf?song_url=/apo/nm.mp3&autoplay=1&loop=0" width="0" height="0" />'); } else { _uWnd.alert('В чате новое сообщение от <font color="green"><b>'+uprof+'</b></font>','Новое сообщение в чате',{align:'left', w:270, h:60, tm:10000, name:'h3', icon:'http://s36.ucoz.net/img/icon/tip.png'}); $('div#flash2').html('<embed type="application/x-shockwave-flash" src="http://s51.ucoz.net/flash/audio1.swf?song_url=/apo/nm.mp3&autoplay=1&loop=0" width="0" height="0" />'); }; var per1 = $('#per1').text(per2); }; $('img#prof').click(function() { var aq = $('img#prof'); var aa1 = $(this).attr('md'); $('.mpr').fadeIn(500); $('div#loadp').load('index/8-'+aa1+' #loader', function() { $('#loader').fadeOut(0).fadeIn(1000); }); }); $('.mpr').click(function() { $(this).fadeOut(500);$('#loader').fadeOut(500); }); $('#rel').stop().fadeTo(500, 1); setTimeout(function() { $('#rel').stop().fadeTo(500, 0); }, 1000); }; function smes() { // Антифлуд для группы пользователей <?if($GROUP_ID$='1')?> $('#mchatBtn').fadeTo(300, 0.3, function() { $(this).attr('disabled', 'disabled'); $('#mchatMsgF').val('Ожидаем 3 секунды'); $('#mchatMsgF').attr('disabled', 'disabled').attr('background', '#eee').blur(); }); setTimeout(function() { $('#mchatBtn').removeAttr('disabled').fadeTo(300, 1); $('#mchatMsgF').removeAttr('disabled').attr('background', 'none').val('').focus(); }, 3000); <?else?><?endif?> // Конец антифлуда setTimeout(function() { integ.load('/mchat div.cBlock', function() { dere(); <?ifnot($GROUP_ID$='3' or $GROUP_ID$='4')?> $('span.dert[title="$USERNAME$,"]').each(function() {$(this).find('img#edm').fadeIn(500);}); <?else?> $('img#edm').fadeIn(500); <?endif?> $('img#edm').click(function() { var treeq = $(this).next('span').text(); $(this).fadeTo(500, 0.5);$('.edm').fadeIn(500);$('.edm2').fadeIn(500); $('.edm2').click(function() { _uWnd.close('hw'); $('div.contentBg').fadeOut(500);$(this).fadeOut(500);$('.edm').fadeOut(500); }); $('div#hload').load('/mchat/0-1 div.contentBg', function() { $('div.myBdBottom:contains(' + treeq + '):first').fadeIn(1000); }); }); $('div#flash').html('<embed type="application/x-shockwave-flash" src="http://s51.ucoz.net/flash/audio1.swf?song_url=/apo/mm.mp3&autoplay=1&loop=0" width="0" height="0" />'); var per2 = $('.cMessage:first').text(); var per1 = $('#per1').text(per2); $('#dels').load('/index/14-0-0-1 input[name=ssid]', function() { delres = $('input[name=ssid]').val(); }); $('img#prof').click(function() { var aq = $('img#prof'); var aa1 = $(this).attr('md'); $('.mpr').fadeIn(500); $('div#loadp').load('index/8-'+aa1+' #loader', function() { $('#loader').fadeOut(0).fadeIn(1000); }); }); $('.mpr').click(function() { $(this).fadeOut(500);$('#loader').fadeOut(500); }); integ.fadeOut(0).fadeIn(500);edit1.fadeOut(0);beditc.fadeOut(0);bedit.fadeIn(500); }); }, 1000); } // apo-ucoz.com © 2011 год </script>
Залейте папку apo со всем содержимым в корень вашего сайта Всё, наслаждайтесь! Затирание копрайтов строго запрещено! Уважайте наш труд