Пользователь
219 сообщений
Мужчина
|
Кто поможет сделать так? Вот коди мои. Код .messagehis { height:379px; border-bottom:1px solid #B3B3B3; border-left:1px solid #B3B3B3; } .mesinfo { padding:2px; height:20px; border-radius:0px; border:none; resize:none; overflow-y:hidden; border-left:1px solid #B3B3B3; width:100%; max-width:585px; } .messend { position:absolute; height:20px; border-radius:0px 0px 3px 0px; font-size:10px; padding:4px; border-top:1px solid #000 !important; border-left:1px solid #000 !important; border:0px; float:right; right:0px; } #lbmessages hr,.pbarContainer,form[name='fuser'] {display:none;} #messages { height:380px; width:250px; }
#searchusers{ height:380px; width:250px; display:none; } .lcomments { float:left; width:250px; } .lcontent { width:auto; margin-left:250px; background:rgba(0,0,0,1.0); } .white { background:rgba(255,255,255,1.0)!important; } .window_fon {position:fixed;width:100%;height:100%;background:#000;background:rgba(0,0,0,0.4); z-index:999;} .window_fon_close {cursor:pointer;position:fixed;overflow:hidden;height:100%;width:100%;} .window_fon_close:hover {cursor:pointer;position:fixed;overflow:hidden;height:100%;width:100%;} .window_main {position:fixed;overflow-y:scroll;width:100%;height:100%;z-index:999;} .window_play {width:900px !important;z-index:999;position:relative!important;margin-top:25px !important;margin-bottom:45px !important;}
Код #SearchUser { width: 250px; height: 20px; border-radius: 2px 0px 0px 0px; border: 0px none; border-bottom:1px solid #B3B3B3 ; } .culist,.lcomments { float:left; width:250px; } .lcontent { width:auto; margin-left:250px; background:rgba(0,0,0,1.0); border-radius:0px 2px 2px 0px; } .lbmessages { height:400px; } .innercontent { background:#FFF; border-radius:2px; -moz-border-radius:2px; -webkit-border-radius:2px; position:relative; box-shadow:0px 0px 3px #000; -moz-box-shadow:0px 0px 3px #000; -webkit-box-shadow:0px 0px 3px #000; } .noneselected { color:#666; font-size:9pt; padding:192px 0px ; background:#fff; text-align:center; border-left:1px solid #B3B3B3; border-radius: 0px 0px 0px 5px ; display:none; } .bgpreloader { right:315px; top:200px; border-radius:2px; -moz-border-radius:2px; -webkit-border-radius:2px; background: rgba(0, 0, 0, 0.5); padding:5px; width:70px height:30px; position:absolute; } .photopreloader { background: url('/users/loaderbgb.gif') no-repeat; width:60px; height:20px; } .photo_play_fon { position:fixed; cursor:pointer; } .photo_play_fon_closea { cursor:pointer; position:fixed; overflow:hidden; height:auto; width:100%;} .photo_play_fon_closea:hover {cursor:pointer;position:fixed;overflow:hidden;height:100%;width:100%;} .photo_play_main { position:fixed; overflow-y:scroll; width:100%; height:100%; background:rgba(0,0,0,0.4); z-index:999; } .photo_play { width:900px !important; z-index:999; position:relative!important; margin-top:25px!important; margin-bottom:45px!important; } .bg { background:#5A5A5A; padding:0px; border-radius:5px; -moz-border-radius:5px; -webkit-border-radius:5px; box-shadow:0px 2px 5px rgba(0,0,0,0.5); -moz-box-shadow:0px 2px 5px rgba(0,0,0,0.5); -webkit-box-shadow:0px 2px 5px rgba(0,0,0,0.5); } .innervideo { background:#FFF; border-radius:2px; -moz-border-radius:2px; -webkit-border-radius:2px; position:relative; box-shadow:0px 0px 3px #000; -moz-box-shadow:0px 0px 3px #000; -webkit-box-shadow:0px 0px 3px #000; }
.profile_select1 {font-weight:bold;text-align:center;color:#2b587a;text-shadow: 0 1px 0 #FFFFFF; border-top: 1px solid #3b6798;border-left: 1px solid #3b6798;border-right: 1px solid #3b6798;background:#f7f7f7;padding:5px 9px 5px 9px;} .profile_select2 {font-weight:bold;text-align:center;color:#FFFFFF;text-shadow: 0 1px 0 #45678d; border-top: 1px solid #3b6798;border-bottom: 1px solid #3b6798;background:#6d8fb3;padding:4px 10px 5px 10px;}
.now_play {border-radius: 5px;-moz-border-radius: 5px;-webkit-border-radius: 5px;cursor:pointer;padding:19px 10px 9px 20px;background:#313131;color:#FFFFFF;text-shadow: 0 1px 0 #000000;border-right:1px solid #101010;border-top:1px solid #101010;border-bottom:1px solid #101010;} .photobg img { max-width:650px; margin-top:10px; } .fr_wall:hover {background:#E9EDF1;cursor:pointer} .next .photo {width:100px !important;height:100px !important;position:fixed;cursor:pointer;} .now_play {border-radius: 5px;-moz-border-radius: 5px;-webkit-border-radius: 5px;cursor:pointer;padding:19px 10px 9px 20px;background:#313131;background:rgba(0,0,0,0.6);color:#FFFFFF;text-shadow: 0 1px 0 #000000;border-right:1px solid #101010; z-index:900;border-top:1px solid #101010;border-bottom:1px solid #101010;} .obbeditor{width:450px !important} .obbeditor textarea{width:444px !important} .ltpanel { height:10px; padding:5px; width:640px!important; background:rgba(0,0,0,0.5); color:#fff; position:absolute; } .lbpanel { padding:4px; } .lclose { background:url('/images/close.png'); width:14px; height:14px; margin:auto; float:right; } .lclose { background:url('/images/close.png') 0px 0px; width:14px; height:14px; margin:auto; float:right; } .lclose:hover { background:url('/images/close.png') 0px -14px; width:14px; height:14px; margin:auto; float:right; } #photo_comms { padding:5px; } .lcomment { font-family: 'lucida grande',tahoma,verdana,arial,sans-serif; resize:none; height:20px; font-size:11px; padding:2px; width:240px; } Код function nshow(username, obj) { $.get("/php/ajax/notifications/notification.php", { name: username, skin: "userhint", tpl: "userhint" }, function (data) { ShowHintDialog(data, obj, true); }); }
function requests(obj) {
var html = $("#friend-requests").html(); ShowHintDialog(html, obj); }
lformopened = false;
function allmes() { if(!lformopened){ $('.notifications').hide('fast'); $('.lightbox').append('<div class="lightbox inner"><div onclick="mesclose();" class="window_fon"></div><div class="window_main"><div onclick="mesclose();" class="window_fon_close"></div><div style="margin:0 auto;" class="window_play">'+ '<div class="bg"><div class="innercontent lbmessages"><div class="culist" id="users"><div class="searchu"><input onfocus="search.focus();" onblur="search.blur();" onkeyup="search.start();" autocomplete="off" id="SearchUser" value="" size="30" type="text" placeholder="ааВаЕаДаИбаЕ аИаМб аПаОаЛбаЗаОаВаАбаЕаЛб" autocomplete="off" ></div><div id="lbmessages"></div><div id="searchusers"></div></div><div class="lcontent lbmessages white"><div class="noneselected">аЇбаО аДаОаЛаЖаНаО аБббб аЗаДаЕбб?</div><div id="message-window"></div><div class="write-newmessage"><div style="display:none; margin: 0px 0px 10px 0px;">ааОаМб: <input class="mesreceiver" style="width: 100%" type="text"></div><div style="display:none; margin: 0px 0px 10px 0px;">аЂаЕаМаА: <input class="messubject" style="width: 100%" type="text"></div><div class="messagehis"></div><div class="messageform"><textarea class="mesinfo" cols="30"></textarea><input class="messend" type="button" value="абаПбаАаВаИбб"/></div></div></div></div></div></div></div><link type=\'text/css\' rel=\'StyleSheet\' href=\'http://webo4ka.ru/Ucoz6/pmSearchLs.css\'>' ); $('body').addClass('vphidden'); $('#lbmessages').load('/index/14 #messages'); search.run(window.location.href,12); $('#now_play').css('display','block'); } else { mesclose(); return false; } } function newmmes() { $('.searchu #SearchUser').focus(); }
function newform() { $('.write-newmessage').append('<div style="display:none; margin: 0px 0px 10px 0px;">ааОаМб: <input class="mesreceiver" style="width: 100%" type="text"></div><div style="display:none; margin: 0px 0px 10px 0px;">аЂаЕаМаА: <input class="messubject" style="width: 100%" type="text"></div><div class="messagehis"></div><div class="messageform"><textarea class="mesinfo" cols="30"></textarea><input class="messend" type="button" value="абаПбаАаВаИбб"/></div>'); }
function newmes(user,avaurl) { newform(); $('#message-window,.noneselected,.searchu').fadeOut('slow'); $('.write-newmessage,.lbmessages').fadeIn('slow'); $('.mesreceiver').val('+user+'); $('.messubject').val('+avaurl+'); }
function mesclose() { $('body').removeClass('vphidden'); $(".bg").hide(); $('.notifications').show('fast'); $(".lightbox.inner").remove(); lformopened = false; } function loadmes() { $.get('/index/14', function(el) { if($('.nav.counter_block').html() == '1') { if($('#mes-content').html() != ' ааЕб баОаОаБбаЕаНаИаЙ ') { if($('#mes-content').html() != $('.unread', el).html()) {$('#ifm').html('<div style="position:absolute;top:-1500px"><embed src="/img/mp3player.swf" flashvars="file=http://pingver.ru/img/messages/notifer.mp3&startplay=true" wmode="opaque" width="90" height="8"></embed></div>')} else {$('#ifm').html('')} } } $('#numberg').html($('.unread', el).parent().parent().parent().find("td:eq(0) b").html()) $('#mes-load').html($('.unread:lt(5)', el).html()) $('#mes-content').html('<div id="listen_message"></div>') $('.unread', el).each(function(){ id_m = $(this).parent().parent().find("a:eq(0)").attr('href').substring(27,$(this).parent().parent().find("a:eq(0)").attr('href').length-2) dt = $(this).parent().parent().parent().find("td:eq(2)").html() if($('.unread', el).parent().parent().parent().find("td:eq(0) b").html() == 1) {ms = '0'} else {ms = '1'} if($(this).html().substring(0,3) == 'm: ') { $('#listen_message').before('<div id="nk'+id_m+'" class="mls mls_white"><table width="300"><tr><td valign="top" width="21"><div class="icon_message"> </div></td><td valign="top"><a class="usertag" href="/'+$(this).parent().parent().find("a:eq(1)").html()+'">'+$(this).parent().parent().find("a:eq(1)").html()+'</a>: '+$(this).html().substring(3)+'<br /><span class="dt">'+dt+' /</span> <a href="javascript:;" onclick="openMessage("'+$(this).parent().parent().find("a:eq(1)").html()+'")" class="answ">абаВаЕбаИбб</a></td><td width="25" valign="top"><div class="close" onclick="refreshCounter('+ms+');messDel('+id_m+')"> </div></td></table></div>') } else { $('#listen_message').before('<div id="nk'+id_m+'" class="mls"><table width="300"><tr><td valign="top" width="21"><div class="icon_notif"> </div></td><td valign="top">'+$(this).html().substring(3)+' <a class="usertag" href="/'+$(this).parent().parent().find("a:eq(1)").html()+'">'+$(this).parent().parent().find("a:eq(1)").html()+'</a><br /><span class="dt">'+dt+'</span></td><td width="25" valign="top"><div class="close" onclick="messDel('+id_m+')"> </div></td></table></div>') } }); }) setTimeout(function(){loadmes()},10000) } function messages(obj) { loadmes(); var html = $("#messages").html(); ShowHintDialog(html, obj); }
function updates(obj) { loadmes(); var html = $("#ufeed").html(); ShowHintDialog(html, obj); }
function ShowHintDialog(data, object, showClose) { $("body").unbind("click"); if (!showClose) { var showClose = false; } var closeBtn = ""; if (showClose) { closeBtn = '<a href="#" onclick="HideHintDiaog(); return false;" style="display:block; font-size:0px; position:absolute; top:3px; right:3px; z-index:100;"><img src="/images/close_popup.png" alt="X" /></a>'; } $(".popupHintOut").remove(); $("body").append('<div class="popupHintOut" style="position:absolute; top:0px; left:0px; display:none;">' + closeBtn + '<div class="popupHintArrow"></div><div class="popupHintIn">' + data + '</div></div>'); var hintWidth = $(".popupHintOut").width(); var hintHeight = $(".popupHintOut").height(); var scrollTop = $(window).scrollTop(); var windowWidth = $(window).width(); var windowHeight = $(window).height(); var objPosLeft = $(object).offset().left; var objPosTop = $(object).offset().top; var arrowWidth = 48; var arrowHeight = 10; if ((hintHeight + arrowHeight + 50) < (objPosTop - scrollTop)) { $(".popupHintOut .popupHintArrow").addClass('arrowBottom').css({ left: "4px" }); var positionTop = objPosTop - hintHeight - arrowHeight - 10; } else { $(".popupHintOut .popupHintArrow").addClass('arrowTop').css({ left: "4px" }); var positionTop = objPosTop + arrowHeight + $(object).height(); } if ((objPosLeft + hintWidth + 100) < windowWidth) { var positionLeft = Math.round(objPosLeft - ((arrowWidth - $(object).width()) / 2) - 4); } else { var positionLeft = Math.round(objPosLeft - hintWidth + arrowWidth - ((arrowWidth - $(object).width()) / 2) - 4); $(".popupHintOut .popupHintArrow").css({ left: "auto", right: "4px" }); } $(".popupHintOut").css({ top: positionTop + "px", left: positionLeft + "px" }).fadeIn('normal'); setTimeout(function () { $("body").unbind("click").bind("click", function (e) { e = e || window.event; var target = e.target || e.srcElement; while (target) { if (target == $(".popupHintOut").get(0)) return; target = target.parentNode; } $(".popupHintOut").fadeOut('normal', function () { $(this).remove(); }); $("body").unbind("click"); }); }, 100); }
function HideHintDiaog() { $(".popupHintOut").stop(true, true).fadeOut('normal', function () { $(this).remove(); }); $("body").unbind("click"); } Ето дали ЮЖАС коди Код /* Name: Удобный поиск и выбор получателя ЛС Date: 19.08.2012 Author: www.ujs.su
Внимание: работа со скриптами, кардинально изменяющими страницу ЛС не гарантируется! По вопросам о скрипте обращайтесь на форум ujs.su */
var search = { run:function (inp, offset) { if(inp.split('/')[inp.split('/').length-1] == '14-0-0-1') { $('#SearchUser').blur(); $('#SearchUser').after('<div id="search_cont" style="width:'+$('#SearchUser').width()+'px;display:none"></div>').css({'width':$('#SearchUser').width()+offset}); } }, focus:function () { if(!$('#search_cont').is(':visible')) { $('#search_cont').html('Начните вводить логин...').fadeIn(300); } }, blur: function () { if($('#search_cont').is(':visible') && $('#search_cont').text().indexOf('Начните вводить логин...') != -1) { $('#search_cont').fadeOut(300); } }, start: function () { if($('#SearchUser').val() != '') { $.post('/index/', { a: 15, user: $('#SearchUser').val() },function (ress) { if (parseInt($('#num_results', ress).text()) > 0) { $('#search_cont').html(''); $('.uTable tr', ress).each(function(a, obj){ var avatar = $('.uTd:eq(1)', obj).find('img').attr('src'); var avachka = avatar ? avatar : 'http://webo4ka.ru/Ucoz6/ujs_true_avaLs.png'; var group = $('.uTd:eq(3)',obj).text(); var user = $('.uTd > a[title!="Отправить Личное Сообщение"]', obj).html(); if(user != null && group != null) { $('#search_cont').append('<div id="results_bg_users" onclick="$(\'#PMtoUser\').val(\''+user+'\');$(\'#search_cont\').fadeOut(300)"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td class="search_ava" width="15%"><img src="'+avachka+'" width="40" height="40" /></td><td width="85%" style="padding:2px"><div class="search_login">'+user+'</div><div class="search_group">'+group+'</div></td></tr></tbody></table></div>') } }); } else {$('#search_cont').html('<center><span onclick="$(\'#search_cont\').fadeOut(300)">К сожалению, по вашему запросу никого не найдено</span></center>')} })}}, }
|
|
|
|
|
Пользователь
219 сообщений
Мужчина
|
Код lformopened = false;
function allmes() { if(!lformopened){ lformopened = true; $('.notifications').hide('fast'); $('.lightbox').append('<div class="lightbox inner"><div onclick="mesclose();" class="window_fon"></div><div class="window_main"><div onclick="mesclose();" class="window_fon_close"></div><div style="margin:0 auto;" class="window_play">'+ '<div class="bg"><div class="innercontent lbmessages"><div class="culist" id="users"><div class="searchu"><input onfocus="search.focus();" onblur="search.blur();" onkeyup="search.start();" autocomplete="off" id="SearchUser" value="" size="30" type="text" placeholder="Введите имя пользователя" autocomplete="off" ></div><div id="lbmessages" style="display:none;"></div><div id="mesresults"></div><div id="searchusers"></div></div><div class="lcontent lbmessages white"><div class="noneselected">Добро пожаловать, у вас нет истории сообщений.</div><div id="message-window"></div><div class="write-newmessage"></div><link type=\'text/css\' rel=\'StyleSheet\' href=\'http://webo4ka.ru/Ucoz6/pmSearchLs.css\'>' ); $('body').addClass('vphidden'); $('#lbmessages').load('/index/14 #messages'); $('#now_play').css('display','block'); } else { mesclose(); return false; } } function newmmes() { allmes(); $('.searchu #SearchUser').focus(); $('.mesresults').hide(); }
function newform() { $('.write-newmessage').append('<div style="display:none; margin: 0px 0px 10px 0px;">Получатель: <input class="mesreceiver" style="width: 100%" type="text"></div><div style="display:none; margin: 0px 0px 10px 0px;">Тема сообщения: <input class="messubject" style="width: 100%" type="text"></div><div class="messagehis"></div><div class="messageform"><textarea class="mesinfo" cols="30"></textarea><input class="messend" type="button" value="Отправить"/></div>'); }
function newmes(user,avaurl) { newform(); $('#message-window,.noneselected,.searchu').fadeOut('slow'); $('.write-newmessage,.lbmessages').fadeIn('slow'); $('.mesreceiver').val('+user+'); $('.messubject').val('+avaurl+'); }
function mesclose() { $('body').removeClass('vphidden'); $(".bg").hide(); $('.notifications').show('fast'); $(".lightbox.inner").remove(); lformopened = false; }
function loadmes() { $.get('/index/14', function(el) { if($('.nav.counter_block').html() == '1') { if($('#mes-content').html() != ' ааЕб баОаОаБбаЕаНаИаЙ ') { if($('#mes-content').html() != $('.unread', el).html()) {$('#ifm').html('<div style="position:absolute;top:-1500px"><embed src="/img/mp3player.swf" flashvars="file=http://pingver.ru/img/messages/notifer.mp3&startplay=true" wmode="opaque" width="90" height="8"></embed></div>')} else {$('#ifm').html('')} } } $('#numberg').html($('.unread', el).parent().parent().parent().find("td:eq(0) b").html()) $('#mes-load').html($('.unread:lt(5)', el).html()) $('#mes-content').html('<div id="listen_message"></div>') $('.unread', el).each(function(){ id_m = $(this).parent().parent().find("a:eq(0)").attr('href').substring(27,$(this).parent().parent().find("a:eq(0)").attr('href').length-2) dt = $(this).parent().parent().parent().find("td:eq(2)").html() if($('.unread', el).parent().parent().parent().find("td:eq(0) b").html() == 1) {ms = '0'} else {ms = '1'} if($(this).html().substring(0,3) == 'm: ') { $('#listen_message').before('<div id="nk'+id_m+'" class="mls mls_white"><table width="300"><tr><td valign="top" width="21"><div class="icon_message"> </div></td><td valign="top"><a class="usertag" href="/'+$(this).parent().parent().find("a:eq(1)").html()+'">'+$(this).parent().parent().find("a:eq(1)").html()+'</a>: '+$(this).html().substring(3)+'<br /><span class="dt">'+dt+' /</span> <a href="javascript:;" onclick="openMessage("'+$(this).parent().parent().find("a:eq(1)").html()+'")" class="answ">абаВаЕбаИбб</a></td><td width="25" valign="top"><div class="close" onclick="refreshCounter('+ms+');messDel('+id_m+')"> </div></td></table></div>') } else { $('#listen_message').before('<div id="nk'+id_m+'" class="mls"><table width="300"><tr><td valign="top" width="21"><div class="icon_notif"> </div></td><td valign="top">'+$(this).html().substring(3)+' <a class="usertag" href="/'+$(this).parent().parent().find("a:eq(1)").html()+'">'+$(this).parent().parent().find("a:eq(1)").html()+'</a><br /><span class="dt">'+dt+'</span></td><td width="25" valign="top"><div class="close" onclick="messDel('+id_m+')"> </div></td></table></div>') } }); }) setTimeout(function(){loadmes()},10000) } messagesloaded = false; function messages(obj) { if(!messagesloaded){ loadmes(); messagesloaded = true; } var html = $("#messages").html(); ShowHintDialog(html, obj); } if(lformopened){
} Я переписал несколько кодовДобавлено (31.12.2012, 02:50) ---------------------------------------------
Цитата (DizBaz) DizBaz, И ты в это поверил? :D Он не писал, что он шутит.Добавлено (31.12.2012, 07:10) --------------------------------------------- Я могу создать демо саит и показать, где у меня проблемы :). Пожалуйста, помогите мне!
|
|
|
|
|