/* Вывод простого сообщения */ if(cmd==0) { symbol=symbols[0];if(nick==mynick) symbol=symbols[1];if(tonick==mynick || text.split(" "+mynick+":").length>1) {if(zvukmsgno==1 && loaded) symbol=zvukmsg+symbols[2]; else symbol=symbols[2];} set_nick=" <a href='' onclick=\"parent.tonick('"+nick+": '); return false;\"><font size="+sizenick+" color="+colornick+" face='"+facenick+"'>"+set_nick+":</font></a> "; set_text=" <font size="+size+" color="+color+" face='"+face+"'>" +set_text+"</font> "; if(text.substr(0,9) == 'Барышням:' && parent.mymw == '1') symbol = symbols[2]; if(text.substr(0,7) == 'Кавалерам:' && parent.mymw == '0') symbol = symbols[2]; if(text.substr(0,3) == 'Залетным:' && parent.mymw == '') symbol = symbols[2];
symbols[2]='<p class="chat-msg msg-to-me">';
.msg-to-me {background: rgba(250, 250, 250, 0.1); border:1px solid #333
var sub = string.substr(start[, length])
start
length