msg_text=translit(msg_text);
/* Транслирует текст на русский по звучанию */ document.write("<"+"script src=http://mpchat.com/blank/translit.js></"+"script>"); function translit(msg){ if (parent.chat.document.fmsg.trans.value == 1 && msg) { for (i=0; i<engRegSmall.length; i++) {msg = msg.replace(engRegSmall[i], rusSmall[i])} for (i=0; i<engRegBig.length; i++) {msg = msg.replace(engRegBig[i], rusBig[i])} } return msg; }
msg_text=abc_flood(msg_text);
#(b)^<b>^ #(i)^<i>^ #(u)^<u>^
msg_text=bt(msg_text);
msg_text=bt2(msg_text);
msg_text=bt3(msg_text);
function bt(msg) { if(parent.chat.document.fmsg.bt.value == 1) { msg = '(b)'+msg+'(/b)'; } return msg; }
function bt2(msg) { if(parent.chat.document.fmsg.bt2.value == 1) { msg = '(u)'+msg+'(/u)'; } return msg; }
function bt3(msg) { if(parent.chat.document.fmsg.bt3.value == 1) { msg = '(i)'+msg+'(/i)'; } return msg; }
| <b>Ж</b> <input type="hidden" name="bt" value="0" /> <input type="checkbox" onclick="fmsg.bt.value = 1; fmsg.text0.focus(); if(!this.checked) { fmsg.bt.value = 0; fmsg.text0.focus(); }" /> <u>П</u> <input type="hidden" name="bt2" value="0" /> <input type="checkbox" onclick="fmsg.bt2.value = 1; fmsg.text0.focus(); if(!this.checked) { fmsg.bt2.value = 0; fmsg.text0.focus(); }" /> <i>K</i> <input type="hidden" name="bt3" value="0" /> <input type="checkbox" onclick="fmsg.bt3.value = 1; fmsg.text0.focus(); if(!this.checked) { fmsg.bt3.value = 0; fmsg.text0.focus(); }" /> |
<div id=hide1 style="display:none;"> <b>Ж</b> <input type="hidden" name="bt" value="0" /> <input type="checkbox" onclick="fmsg.bt.value = 1; fmsg.text0.focus(); if(!this.checked) { fmsg.bt.value = 0; fmsg.text0.focus(); }" /> <u>П</u> <input type="hidden" name="bt2" value="0" /> <input type="checkbox" onclick="fmsg.bt2.value = 1; fmsg.text0.focus(); if(!this.checked) { fmsg.bt2.value = 0; fmsg.text0.focus(); }" /> <i>K</i> <input type="hidden" name="bt3" value="0" /> <input type="checkbox" onclick="fmsg.bt3.value = 1; fmsg.text0.focus(); if(!this.checked) { fmsg.bt3.value = 0; fmsg.text0.focus(); }" /> | </div> <a href=# onclick="obj=document.getElementById('hide1'); if(obj.style.display=='none') obj.style.display='block'; else obj.style.display='none'; return false;">показать/скрыть</a>
<script language="JavaScript"> <!-- // function winop(){ windop=window.open("","mywin","width=300,height=120"); windop.document.open(); windop.document.write("<html><head><title>Дополнительное окно</title>"); windop.document.write("</head><body bgcolor=#f0f8f0>"); windop.document.write("| <b>Ж</b> <input type="hidden" name="bt" value="0" /> <input type="checkbox" onclick="fmsg.bt.value = 1; fmsg.text0.focus(); if(!this.checked) { fmsg.bt.value = 0; fmsg.text0.focus(); }" /> <u>П</u> <input type="hidden" name="bt2" value="0" /> <input type="checkbox" onclick="fmsg.bt2.value = 1; fmsg.text0.focus(); if(!this.checked) { fmsg.bt2.value = 0; fmsg.text0.focus(); }" /> <i>K</i> <input type="hidden" name="bt3" value="0" /> <input type="checkbox" onclick="fmsg.bt3.value = 1; fmsg.text0.focus(); if(!this.checked) { fmsg.bt3.value = 0; fmsg.text0.focus(); }" /> | "); windop.document.write("<center><form><input type='button' value='Закрыть' onClick='window.close()'></form></center>") windop.document.write("</body></html>"); windop.document.close(); } // --> </script> ________________________________________________ <input type="button" value="Открыть" onclick="winop();">
<script language="JavaScript"> <!-- // function winop(){ windop.document.write('|<b>Ж</b><input type="checkbox" onclick="opener.parent.chat.document.bt.value = 1; opener.parent.chat.document.text0.focus(); if(!this.checked) { opener.parent.chat.document.bt.value = 0; opener.parent.chat.document.text0.focus(); }" /><u>П</u><input type="checkbox" onclick="opener.parent.chat.document.bt2.value = 1; opener.parent.chat.document.text0.focus(); if(!this.checked) { opener.parent.chat.document.bt2.value = 0; opener.parent.chat.document.text0.focus(); }" /><i>K</i><input type="checkbox" onclick="opener.parent.chat.document.bt3.value = 1; opener.parent.chat.document.text0.focus(); if(!this.checked) { opener.parent.chat.document.bt3.value = 0; opener.parent.chat.document.text0.focus(); }" />|'); "); windop.document.write("<center><form><input type='button' value='Закрыть' onClick='window.close()'></form></center>") windop.document.write("</body></html>"); windop.document.close(); } // --> </script>