好湿?好紧?好多水好爽自慰,久久久噜久噜久久综合,成人做爰A片免费看黄冈,机机对机机30分钟无遮挡

主頁(yè) > 知識(shí)庫(kù) > FCKEidtor 自動(dòng)統(tǒng)計(jì)輸入字符個(gè)數(shù)(IE)

FCKEidtor 自動(dòng)統(tǒng)計(jì)輸入字符個(gè)數(shù)(IE)

熱門(mén)標(biāo)簽:靈聲智能電話機(jī)器人招聘 智能電銷(xiāo)機(jī)器人真的好嗎 天津電銷(xiāo)卡外呼系統(tǒng)線路 長(zhǎng)春防封卡電銷(xiāo)卡套餐 興化400電話辦理多少錢(qián) 企業(yè)電話機(jī)器人辦理 株洲外呼營(yíng)銷(xiāo)系統(tǒng)有哪些 四平電話機(jī)器人哪家好 長(zhǎng)春銷(xiāo)售外呼系統(tǒng)業(yè)務(wù)
此方法支持IE 不支持火狐。可能是因?yàn)镕CKEidtor的keyup方法在火狐下不被支持。
FCKEditor編輯器換為T(mén)extBox,應(yīng)該就沒(méi)有問(wèn)題了。
前臺(tái):
復(fù)制代碼 代碼如下:

tr>
th>
短敘述
br />
(限100中文字)br />
當(dāng)前文字個(gè)數(shù):asp:Label ID="lblShowTextLength" runat="server" Text="0" ForeColor="Red">/asp:Label>br />
/th>
td style="text-align: left;">
FCKeditorV2:FCKeditor ID="fckPrdDescription" runat="server" Height="240px" Width="100%">
/FCKeditorV2:FCKeditor>
/td>
/tr>

JS代碼:
復(fù)制代碼 代碼如下:

script type="text/javascript">
function FCKeditor_OnComplete(editorInstance)
{
var oEditor = FCKeditorAPI.GetInstance('fckPrdDescription');
oEditor.EditorDocument.body.onkeyup=function ()
{
if( document.all)
{
$("lblShowTextLength").innerText =oEditor.EditorDocument.body.innerText.length;
}
else
{
var r = oEditor.EditorDocument.createRange() ;
r.selectNodeContents( oEditor.EditorDocument.body ) ;
$("lblShowTextLength").innerText= r.toString().length ;

}
if(parseInt($("lblShowTextLength").innerText)>100)
{
alert("當(dāng)前已經(jīng)達(dá)到100中文字,請(qǐng)不要繼續(xù)輸入!");
oEditor.EditorDocument.body.innerText=oEditor.EditorDocument.body.innerText.substring(0,100);
$("lblShowTextLength").innerText =oEditor.EditorDocument.body.innerText.length;
}
// $("ddd").value =oEditor.EditorDocument.body.innerHTML;
}
if (document.getElementById("hidStatus").value=="Cancel")
{
editorInstance.EditorDocument.designMode="off";
}
}
/script>

演示:
輸入多馀100個(gè)字符數(shù) 提示

點(diǎn)擊【確定】后 自動(dòng)截取100個(gè)字符

您可能感興趣的文章:
  • linux下wc統(tǒng)計(jì)文件的個(gè)數(shù)、行數(shù)、字?jǐn)?shù)、字節(jié)數(shù)等信息方法
  • C++統(tǒng)計(jì)中英文大小寫(xiě)字母、數(shù)字、空格及其他字符個(gè)數(shù)的方法
  • C語(yǔ)言編程中統(tǒng)計(jì)輸入的行數(shù)以及單詞個(gè)數(shù)的方法
  • c++統(tǒng)計(jì)文件中字符個(gè)數(shù)代碼匯總
  • C語(yǔ)言統(tǒng)計(jì)字符個(gè)數(shù)代碼分享
  • C語(yǔ)言統(tǒng)計(jì)一串字符中空格鍵、Tab鍵、回車(chē)鍵、字母、數(shù)字及其他字符的個(gè)數(shù)(Ctrl+Z終止輸入)

標(biāo)簽:漯河 巴彥淖爾 黑龍江 運(yùn)城 青海 石嘴山 新疆 貴港

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《FCKEidtor 自動(dòng)統(tǒng)計(jì)輸入字符個(gè)數(shù)(IE)》,本文關(guān)鍵詞  FCKEidtor,自動(dòng),統(tǒng)計(jì),輸入,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《FCKEidtor 自動(dòng)統(tǒng)計(jì)輸入字符個(gè)數(shù)(IE)》相關(guān)的同類信息!
  • 本頁(yè)收集關(guān)于FCKEidtor 自動(dòng)統(tǒng)計(jì)輸入字符個(gè)數(shù)(IE)的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章