文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > 富文本编辑器
侵权投诉

富文本编辑器

})(window.navigator.userAgent.toLowerCase());

// ie6图片强制缓存

try { co.browser.ie6 && document.execCommand('BackgroundImageCache', true, false); } catch(ex) {};

// 获取ID对象

co.getId = function(id) { return document.getElementById(id); };

// 获取对象

co.get = function(node) {

return typeof(node) == 'string' ? document.getElementById(node) : node; };

// 创建DOM对象

co.append = function(parentNode, tag, attributes) { var o = document.createElement(tag); if(attributes && typeof(attributes) == 'string') {

o.className = attributes; } else {

co.setProperties(o, attributes); }

co.get(parentNode).appendChild(o); return o;

};

// 遍历数组

co.foreach = function(arr, callback) { for(var i = 0, l = arr.length; i < l; i++) {

}

arr[i] = callback(arr[i]);

return arr; };

// 设置属性

co.DIRECT_ATTRIBUTE_MAP_ = {

'cellpadding': 'cellPadding', 'cellspacing': 'cellSpacing', 'colspan': 'colSpan', 'rowspan': 'rowSpan', 'valign': 'vAlign', 'height': 'height', 'usemap': 'useMap',

上一页第5页

热门文档

相关文档

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email