Quote
<script type="text/javascript">
//Code and Quote replace Start
diviki=document.getElementsByTagName('div');
for(i=0;i<diviki.length;i++) {
if(diviki[i].className == "bbCodeName") {
s=diviki[i].innerHTML;
s=s.replace('Code','Код');
diviki[i].innerHTML=s;}
if(diviki[i].className == "bbQuoteName") {
s=diviki[i].innerHTML;
s=s.replace('Quote','Цитата');
s=s.replace(' (',', ');
s=s.replace(')',' <b>писал(а):</b>');
diviki[i].innerHTML=s;}}
//Code and Quote replace End
</script>
Комментарии: