摘要: DOM Core常用部分:DOM方法创建节点:createElement(),createTextNode()复制节点:cloneNode()插入节点:appendChild(),insertBefore删除节点:removeChild()替换节点:replaceChild()查找节点:getAttribute(),getElementById(),getElementsByTagName,hasChildNodes设置节点属性:setAttribute()DOM属性节点的属性:nodeName,nodeType,nodeValue遍历节点树:childNodes,firstChild,las 阅读全文
posted @ 2012-04-12 16:34 {前端开发} 阅读(423) 评论(0) 推荐(0) 编辑
摘要: var obj = $(".tip2-bx"),other = $(".enter"),timefunction effect(){ var _this = this; this.other = other; this.obj = obj; other.hover( function(){ _this.show($(this)) }, function(){ _this.hide($(this)) } ) obj.hover( function(){ clearTimeout(time) }, function(){ obj.css({"vis 阅读全文
posted @ 2012-04-12 11:05 {前端开发} 阅读(129) 评论(0) 推荐(0) 编辑