• Страница 1 из 1
  • 1
Универсальный ответ на личное сообщение
GoZДата: Воскресенье, 17.04.2011, 20:51 | Сообщение # 1

Сообщений: 494
Награды: 5

[ 33 ]


На страницу личных сообщений после $BODY$ размещаем код:
Code
<script type="text/javascript">      
eMess = $('#eMessage').html();      
$(document).ready(function () {      
       $("#snewmes:contains('Написать')").html('[<a href="javascript://" id="nmessage">Ответить</a>]');      
       $('#nmessage').click(function () {      
       securei = $("#secuImg").attr('src');      
       securer = $("#secuImg").attr('onclick');      
       theme = $("input[name='subject']").val();      
       new _uWnd('rmessage', 'Ответ на сообщение', 0, 0, {align: 0,shadow: 0,autosize: 1,maxh: 400,minh: 180,resize: 0,oncontent: function () {function getform() {qw = $('#eMessage').text();if(qw.indexOf('успешно')!=-1){$('#tmessage').val('');return;}if(qw.indexOf('безопасности')!=-1){$('#eMessage').html('<font class="errorText" color="red">Неправильный код безопасности. Нажмите на картинку для обновления</font><hr>')}}setInterval(getform,1000)      
$("#rch").click(securer);if (securei == undefined) {$("fieldset[class='cph']").hide();}      
       if (securei == undefined) {      
       $("fieldset[class='cph']").hide();      
       }      
             
       $('.thmess').val(theme);      
       $('#tmessage').keyup(function () {      
       $('#message').val(($(this).val()));      
       });      
       $("#secuCodeq").keyup(function () {      
       $("#secuCode").val($(this).val())      
       });      
       }      
       },      
       '<fieldset><legend>Тема</legend><input style="background:#f1f1f1;" class="thmess" type="text" disabled/></fieldset><fieldset><legend>Сообщение</legend><textarea id="tmessage"></textarea></fieldset><fieldset class="cph"><legend>Код безопасности</legend><input class="securityCode" id="secuCodeq" type="text" name="code" size="5" maxlength="4" /><img style="margin-left:5px;padding:0px;border:0;cursor:pointer;" id="rch" align="absmiddle" src="' + securei + '"></fieldset><fieldset style="padding:6px;"><div id="eMessage"></div><table border="0" cellpadding="0" cellspacing="0" onmousedown="this.className=\'downBtn\'" onmouseover="this.className=\'overBtn\'" onmouseout="this.className=\'outBtn\'"><tr><td class="myBtnLeft"><img alt="" border="0" src="http://s1.ucoz.net/img/1px.gif"/></td><td class="myBtnCenter"><div class="myBtnCont x-unselectable" unselectable="on"><a href="javascript://" onclick="safe(\'addform\');">Отправить ответ</a> </div> </td><td class="myBtnRight"><img alt="" border="0" src="http://s1.ucoz.net/img/1px.gif"/></td></tr></table></fieldset>');      

       });      
})      
</script>      
<style>      
#tmessage{width:100%;height:60px;}      
.thmess{width:100%;}      
</style>


[redtable]Мой проект Cs-End.Ru![/redtable]
[redtable]Рипаю Сайты На Заказ![/redtable]
[redtable]Делаю на заказ сайты![/redtable]
[Table][/Table]
  • Страница 1 из 1
  • 1
Поиск:


Дизайн сайта полностью пренадлежит GoZ
Csss-Tm.uCoz.Ru © 2010-1011