Speller Pages- 拼写检查
ErLang 常用JavaScript包
共0Star
详细介绍
Speller Pages是一个自由,开放源码的Web用户界面和JavaScript库服务器端拼写检查程序。适用于PHP或Perl /
CGI方式的版本,拼字网页,可让您带来优越的拼写建议capabilites的GNU Aspell的用户您的网站。
在线演示:http://www.netjs.com/speller/
使用代码:
< **script** **language** ="javascript" **type** ="text/javascript" **src** ="spellChecker.js">
</ **script** >
_<!-- Call a function like this to handle the spell check command -->_
< **script** **language** ="javascript" **type** ="text/javascript">
**function** openSpellChecker() **{**
_// get the textarea we're going to check_
**var** txt = document.myform.mytextarea;
_// give the spellChecker object a reference to our textarea_
_// pass any number of text objects as arguments to the constructor:_
**var** speller = **new** spellChecker( txt );
_// kick it off_
speller.openChecker();
**}**
</ **script** >