[外掛]注音魔人退散快速回覆版.....
發表於 : 2003-10-17 18:52
打開viewtopic_body.tpl
尋找\r
置換成
然後在viewtopic_body.tpl中隨便一個地方加上
尋找\r
代碼: 選擇全部
onClick="if(document.quick_reply.message.value == '{L_QUICK_REPLY_TOPIC}' || document.quick_reply.message.value == ''){ alert('{L_EMPTY_MESSAGE}'); return false;}else{ return true;}" />
代碼: 選擇全部
onClick="return checkForm(this)"
代碼: 選擇全部
<script language="JavaScript" type="text/javascript">
function checkForm()
{
formErrors = false;
if(document.quick_reply.message.value == '{L_QUICK_REPLY_TOPIC}' || document.quick_reply.message.value == '' )
{
formErrors = "{L_EMPTY_MESSAGE}";
}
for (var i = 0 ; i < document.quick_reply.message.value.length ; i++)
{
var code = document.quick_reply.message.value.charCodeAt(i);
if (12549 <= code && code <= 12585)
{
formErrors = "注音魔人退散吧!";
}
}
if (formErrors)
{
alert(formErrors);
return false;
}
else
return true;
}
</script>