》DOM操作分为DOM Core,HTML-DOM和CSS-DOM三个方面
》在HTML DOM中查找节点的标准方法getElment系列方法,也可以使用parentNode,firstChild,lastChild,nextSibling
previousSibling按层次关系查找节点,为避免浏览器兼容性,也使用firstElementChild, lastElementChild, nextElementSibling,previousElementSibling按层次关系查找节点
》在Core DOM中访问和设置节点属性值的标准方法是getAttribute()和setAttribute()
》创建和增加节点的方法是insertBefore(),appendChild(),creatElement()和cloneNode()
删除和替换节点的方法1是removeChild()和replaceChild()
》使用JavaScript改变样式的两种方法是使用style属性和className属性
》使用style对象获取内联样式属性值,使用currentStyle对象在IE浏览器中获取样式的属性值,DOM提供了getComputedStyle()方法以获取样式中的属性值。
》制作鼠标滚动的广告图片