首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

FCK 轮换 多个 textarea

2012-09-18 
FCK 替换 多个 textarea<html><head><title>Testing ReplaceAll()</title><script typetext/javascript

FCK 替换 多个 textarea

<html><head><title>Testing ReplaceAll()</title><script type="text/javascript" src="/FCKeditor/fckeditor.js"></script><script type="text/javascript"><!--function ReplaceAllTextareas() {// replace all of the textareasvar allTextAreas = document.getElementsByTagName("textarea");for (var i=0; i < allTextAreas.length; i++) {var oFCKeditor = new FCKeditor( allTextAreas.name ) ;oFCKeditor.BasePath = "/FCKeditor/" ;oFCKeditor.ReplaceTextarea() ;}}// --></script></head><body onLoad="javascript: ReplaceAllTextareas()"><form><input type="checkbox" name="bobby" /> bobby <br /><input type="checkbox" name="sue" /> sue <br />Summary:<textarea name="summary" rows="4" cols="80"> here is the summary </textarea>Overview:<textarea name="overview" rows="10" cols="80"> here is the overview </textarea>Detials:<textarea name="d??etails" rows="60" cols="80"> here are teh details </textarea><input type="submit" name="sue" /> <br /><input /></form></body></html>

热点排行