var zvukmsgno=1; //для кнопки вкл/откл по умол 1- вкл 0 -выкл var zvukmsg="<embed type='application/x-shockwave-flash' src='http://mpchat.com/blank/player.swf' allowfullscreen='false' flashvars='file=ССЫЛКА_НА_MP3&autostart=true' width='0' height='0'>"; var zvukmsg_p="<embed type='application/x-shockwave-flash' src='http://mpchat.com/blank/player.swf' allowfullscreen='false' flashvars='file=ССЫЛКА_НА_MP3_ДЛЯ_ПРИВАТА&autostart=true' width='0' height='0'>";
if(tonick==mynick || text.split(" "+mynick+":").length>1) symbol=symbols[2];
if(tonick==mynick || text.split(" "+mynick+":").length>1) {if(zvukmsgno==1) symbol=zvukmsg+symbols[2]; else symbol=symbols[2];}
if(tonick==mynick) symbol=symbols[4];
if(tonick==mynick) {if(zvukmsgno==1) symbol=zvukmsg_p+symbols[4]; else symbol=symbols[4];}
<input type=checkbox checked="checked" onclick="if(this.checked) {parent.zvukmsgno=1;parent.loadframes();} else {parent.zvukmsgno=0;parent.loadframes();}" title="вкл/откл звуки входящих сообщений" >
<input type=checkbox onclick="if(this.checked) {parent.zvukmsgno=1;parent.loadframes();} else {parent.zvukmsgno=0;parent.loadframes();}" title="вкл/откл звуки входящих сообщений" >
if(cmd==1 && privatok==1) {var obj=document.getElementById("privatdiv"); obj.innerHTML+="<div>"+towr+"</div>";obj.scrollTop=1000000;}
if(cmd==1 && privatok==1) {var obj=document.getElementById("privatdiv"); var newDiv = document.createElement('div'); newDiv.innerHTML = towr; obj.appendChild(newDiv); obj.scrollTop=1000000;}