Здесь не нашел, поэтому решил предложить - может, кому пригодится
Замена слов
Привет, Гость! Войдите или зарегистрируйтесь.
Привет, .... Ваш последний визит: ...
<script>
greet="[color=red]ваш текст[/color], "
str = document.getElementById("pun-status").innerHTML
pos = str.indexOf("Привет")
document.getElementById("pun-status").innerHTML=str.substring(0,pos)+greet+str.substring(pos+8,str.length-1)
</script>
<script>
visit="[color=red]ваш текст[/color]"
str = document.getElementById("pun-status").innerHTML
if( (pos=str.indexOf("Ваш последний визит")) != -1 )
document.getElementById("pun-status").innerHTML=str.substring(0,pos)+visit+str.substring(pos+19,str.length-1)
</script>ставится в html-низ
удобный скрипт - Счетчик символов
Полезен форумам с ролевой тематикой, где есть ограничения на количество строк. Скрипт позволяет поставить ограничения в символах, ибо иногда подсчет по строкам неудобен, если игрок, например, сидит, с телефона
<INPUT style="TEXT-ALIGN: center; WIDTH: 40px" id=num class=codeButtons title="Счётчик символов" readOnly type=text>
<SCRIPT type=text/javascript>
document.getElementById("main-reply").addEventListener('focus', nc, false);
document.getElementById("main-reply").addEventListener('keydown', nc, false);
document.getElementById("main-reply").addEventListener('keyup', nc, false);
document.getElementById("main-reply").addEventListener('keypress', nc, false);
document.getElementById("main-reply").addEventListener('change', nc, false);
function nc(){document.getElementById('num').value = document.getElementById('main-reply').value.length}
</SCRIPT>Внимание, скрипт может не работать в IE, насколько известно, иногда не срабатывает в Мозиле.



