function bt(msg) { if(parent.chat.document.fmsg.bt.value == 1 && msg) { if(msg.substr(0,1) == ' ') { msg = msg.substr(1,msg.length); msg = ' (b) '+msg+'ПРОБЕЛ(/b)'; } else msg = ' (b) '+msg+' (/b)'; } return msg; }
msg_nick=msg.substr(0,msg.indexOf(":")+1); msg_text=msg.substr(msg.indexOf(":")+1);
msg_nick=msg.substr(0,msg.indexOf(": ")+1); msg_text=msg.substr(msg.indexOf(": ")+1);
function bt1(msg) { if(parent.chat.document.fmsg.bt1.value == 1 && msg) { if(msg.substr(0,1) == ' ') { msg = msg.substr(1,msg.length); msg = ' (b) '+msg+'(/b)'; } else msg = '(b)'+msg+'(/b)'; } return msg; }
if(msg.substr(0,1) == ' ') { msg = msg.substr(1,msg.length); msg = ' (b) '+msg+'ПРОБЕЛ(/b)'; } else msg = ' (b) '+msg+' (/b)'; }
onclick="if(this.checked) {document.fmsg.text0.style.fontWeight='bold'} else {document.fmsg.text0.style.fontWeight=''}"
onclick="if(this.checked) {document.fmsg.text0.style.fontStyle='italic'} else {document.fmsg.text0.style.fontStyle=''}"
onclick="if(this.checked) {document.fmsg.text0.style.textDecoration='underline'} else{document.fmsg.text0.style.textDecoration=''}"
<input type="checkbox" onclick="fmsg.bt.value = 1; document.fmsg.text0.style.fontWeight='bold';fmsg.text0.focus(); if(!this.checked) { fmsg.bt.value = 0;document.fmsg.text0.style.fontWeight=''; fmsg.text0.focus(); }" />
#(b)^<b>^
<input type="checkbox" id="fbold"/>
/* [Функции - нижнего фрейма] */
function bt(msg) { if(document.getElementById('fbold') && document.getElementById('fbold').checked && msg) { if(msg.substr(0,1) == ' ') { msg = msg.substr(1,msg.length); msg = ' (b) '+msg+' (/b)'; } else msg = ' (b) '+msg+' (/b)'; } return msg; }
msg_text=translit(msg_text);
msg_text=abc_flood(msg_text);
msg_text=bt(msg_text);
(font)^<font style="color: #^ (font2)^;">^ (/font)^</font>^
<script language="javascript" type="text/javascript"> <!-- var fontcolor = new Array('111111','222222','333333','444444','555555','666666','777777','888888','999999','aaaaaa','bbbbbb','cccccc','dddddd','eeeeee','ffffff','110000','220000','330000','440000','550000','660000','770000','880000','990000','aa0000','bb0000','cc0000','dd0000','ee0000','ff0000','001100','002200','003300','004400','005500','006600','007700','008800','009900','00aa00','00bb00','00cc00','00dd00','00ee00','00ff00','000011','000022','000033','000044','000055','000066','000077','000088','000099','0000aa','0000bb','0000cc','0000dd','0000ee','0000ff','111100','222200','333300','444400','555500','666600','777700','888800','999900','aaaa00','bbbb00','cccc00','dddd00','eeee00','ffff00','110011','220022','330033','440044','550055','660066','770077','880088','990099','aa00aa','bb00bb','cc00cc','dd00dd','ee00ee','ff00ff','001111','002222','003333','004444','005555','006666','007777','008888','009999','00aaaa','00bbbb','00cccc','00dddd','00eeee','00ffff','221100','442200','663300','884400','aa5500','cc6600','ee7700','ff8800','220011','440022','660033','880044','aa0055','cc0066','ee0077','ff0088','002211','004422','006633','008844','00aa55','00cc66','00ee77','00ff88','112200','224400','336600','448800','55aa00','66cc00','77ee00','88ff00','110022','220044','330066','440088','5500aa','6600cc','7700ee','8800ff','001122','002244','003366','004488','0055aa','0066cc','0077ee','0088ff'); var fontselect = '<select id="fontsel" onchange="this.style.background = \'#\'+this.value;fmsg.text0.focus();" class="text"><option value="">по умолчанию</option>'; for(var n = 0; n < fontcolor.length; n++) fontselect += '<option value="'+fontcolor[n]+'" style="background: #'+fontcolor[n]+';"> </option>'; fontselect += '</select>'; document.write(fontselect); //--> </script>
function fc(msg) { if(document.getElementById('fontsel') && document.getElementById('fontsel').value != '' && msg) { if(msg.substr(0,1) == ' ') { msg = msg.substr(1,msg.length); msg = ' (font)'+document.getElementById('fontsel').value+'(font2) '+msg+' (/font)'; } else msg = ' (font)'+document.getElementById('fontsel').value+'(font2) '+msg+' (/font)'; } return msg; }
msg_text=fc(msg_text);