主題: [其它]熊熊啊~拿你的檔注音功能來發啊~XD [打印本頁]
發表人:
OverZero 時間: 2004-12-7 11:55 AM 主題: [其它]熊熊啊~拿你的檔注音功能來發啊~XD
先聲明這是從ED2K的原始檔裡偷來的
開啟所有發文的版面
找到
引用:
alert("您的文章長度超過限制\n\n目前長度: "+theform.message.value.length+" 位元組\n系統限制: 100000 位元組");
取代為
引用:
alert("您的文章長度超過限制\n\n目前長度: "+theform.message.value.length+" 位元組\n系統限制: 100000 位元組");
return false; }
else {
var formErrors = "";
for (var i = 0 ; i < theform.message.value.length ; i++)
{
var code = theform.message.value.charCodeAt(i);
if (12549 <= code && code <= 12585)
{
formErrors = "注音";
}
}
if (formErrors)
{
var confirmPost = confirm("內容有違反版規的注音字,請確定發表?");
if (confirmPost == false)
{
return false;
}
else
{
disableButton(theform.newthread);
return true;
}
}
else
{
disableButton(theform.newthread);
return true;
}
}
} else {
var formErrors = "";
for (var i = 0 ; i < theform.message.value.length ; i++)
{
var code = theform.message.value.charCodeAt(i);
if (12549 <= code && code <= 12585)
{
formErrors = "注音";
}
}
if (formErrors)
{
var confirmPost = confirm("內容有違反版規的注音字,請確定發表?");
if (confirmPost == false)
{
return false;
}
else
{
disableButton(theform.newthread);
return true;
}
}
else
{
disableButton(theform.newthread);
return true;
}
}
}
好 完成
好用呢
歡迎光臨 TWed2k (http://twed2k.org/) |
Powered by Discuz! 4.1.0 |