Code
<script>
txt = document.body.innerHTML;
bad = /мат|мат|мат/;
while (txt.indexOf(bad)>=0) txt = txt.replace(bad, '<span style="color: #FF0000">[матерные слова запрещены!]</span>');
document.body.innerHTML = txt;
</script>
НАСТРОЙКИ
Code
1. � ������ bad = /���|���|���/i; ������ ���� "���" ��������� ����� ���������� �����
2. � ������ bad = /���|���|���/i; ������ ����� ����� ������ ���������� �������� |
3. � ������ bad = /���|���|���/i; �������� ���� �������� ����� � ����� ����.
4. ��������� ��� �������� ����� ������ �� ������� ���� ����� ���������� �� [�������� ����� ���������!]!
5. � ������ <span style="color: #FF0000">[�������� ����� ���������!]</span> ����� �������� [�������� ����� ���������!] �� ����� ������!; color: #FF0000 ����� �������� ���� �� ����� ������ �������������!
6. ��������� � ����� ����� HTML ���� ����� ��������, ����������� ����� ����� </body>
�����!
�� ���� �������� ����������� �� ALLTOPC.ucoz.ru