文章
由 ilove1291 »
document.post.username.value
這一串在 posting_bpdy.tpl 有找到\r
[php]function checkForm() {
formErrors = false;
if(!document.post.username.value){
formErrors = "請填你的暱稱";
}
if (document.post.message.value.length < 2) {
formErrors = "{L_EMPTY_MESSAGE}";
}
else if(document.post.subject.value != '' && (document.post.subject.value.charAt(0) != '[' || document.post.subject.value.lastIndexOf(']') == -1) && document.post.subject.value.substring(0, 3) != 'Re:')
{
formErrors = "請選擇合適的主題類型, 或以[ ]自行定義";
}
else if(document.post.subject.value.substring(0, 3) != '' && document.post.subject.value.length < 5 )
{
formErrors = "除了選擇主題類型外,請打上標題";
}
else if(document.post.subject.value.length > 60 )
{
formErrors = "文章標題字數必須在30個中文之內";
}
if (formErrors) {
alert(formErrors);
return false;
} else {
bbstyle(-1);
//formObj.preview.disabled = true;
//formObj.submit.disabled = true;
return true;
}
}[/php]
一點都看不懂 ~"~