Chinaunix首页 | 论坛 | 博客
  • 博客访问: 103400
  • 博文数量: 26
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 375
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-01 21:18
文章分类

全部博文(26)

文章存档

2009年(2)

2008年(24)

我的朋友

分类:

2008-12-25 15:27:42

function addEventHandler(target, type, func) {
    if (target.addEventListener)
        target.addEventListener(type, func, false);
    else if (target.attachEvent)
        target.attachEvent("on" + type, func);
    else target["on" + type] = func;
}
 
var editorButtonClick = function()
 { 
   var ta=document.createElement("textarea");
   ta.setAttribute("id","editTa");
   ta.value=newValue;
   editorButton.innerHTML="";
   editorButton.appendChild(ta);
   $.fck.config = {path: 'scripts/fckeditor/',height:400,toolbar:'Basic'};
   $('textarea#editTa').fck();
 };
 addEventHandler(editorButton, "click", editorButtonClick);
阅读(553) | 评论(0) | 转发(0) |
0

上一篇:FCKeditor JavaScript API

下一篇:tablesorter

给主人留下些什么吧!~~