秋葉あぼ〜んスクリプト(かちゅ〜しゃ用)
header.htmlに以下を追加
-----------------------------------------------------
<script type="text/JavaScript">
<!--
function NGWord(str){
NG=new Array("秋葉チェキ!","チェキ!秋葉","◆eeoWaGy2");//←名前変えてきたら適当に追加
l=NG.length;
for(i=0;i<l;i++){
if(str.indexOf(NG[i],0)!=-1){return 1;}
}
return 0;
}
//-->
</script>
NewRes.htmlとRes.htmlを以下に差し替え
------------------NewRes.html-----------------
<dt><b>&NUMBER</b> 名前:<font color="forestgreen" id="name&PLAINNUMBER">&MAILNAME</font> 投稿
日:&DATE<dd><div id="msg&PLAINNUMBER">&MESSAGE</div><br>
<script>
if(NGWord(name&PLAINNUMBER.innerHTML)==1){
name&PLAINNUMBER.innerHTML="豚";
msg&PLAINNUMBER.innerHTML="(ブヒブヒブヒヒヒ)";
}</script>
--------------------Res.html-------------------
<dt>&NUMBER 名前:<font color="forestgreen" id="name&PLAINNUMBER">&MAILNAME</font> 投稿
日:&DATE<dd><div id="msg&PLAINNUMBER">&MESSAGE</div><br>
<script>
if(NGWord(name&PLAINNUMBER.innerHTML)==1){
name&PLAINNUMBER.innerHTML="豚";
msg&PLAINNUMBER.innerHTML="(ブヒブヒブヒヒヒ)";
}</script>