http://blog.haohtml.com/archives/8125
display:inline;放在li里面可以并排显示display:inline 的作用是设置对象做为行内元素显示
ie和google 计算尺寸大小是不一样的
http://doc.hz.netease.com/pages/viewpage.action?pageId=15826977
http://www.cnblogs.com/mz121star/archive/2012/11/01/javascript_preloadimages.html
js图片的预加载功能
http://www.cnblogs.com/mingmingruyuedlut/archive/2011/10/12/2208550.html
遍历table的所有单元格
http://www.cnblogs.com/yunfour/archive/2013/04/07/3006473.html 源节点
浏览器区别的传参区别
hoverList.rows[i].cells[j].attachEvent("onmouseover",hoveUp(hoverList.rows[i].cells[j]));其中的this是windows对象
addEventListener:直接使用this可以引用被触发元素
getElementsByClassName()是HTML5 新增的DOM API。IE8以下不支持
http://www.cnblogs.com/yubinfeng/archive/2010/11/02/1867386.html
-moz代表firefox浏览器私有属性
-ms代表IE浏览器私有属性
-webkit代表chrome、safari私有属性
-o代表opera私有属性
有些事,你把它藏在心里或许会更好,。等时间长了,回过头去看它,也就变成了故事。
IE里面只有 window.event.srcElement
FF里面只有 event.target
if(window.event.srcElement==undefined)
{
e.target=window.event.srcElement;
}
else
{
e.target=event.target;
}
this.style.background="#ececec";
var next;
var pre;
if(window.event)
{
next=this.nextSibling;
pre=this.previousSbiling;
}
else
{
next=this.nextElementSibling;
pre=this.previousElementSibling;
}
appendChild() 方法:可向节点的子节点列表的末尾添加新的子节点。语法:appendChild(newchild)
insertBefore() 方法:可在已有的子节点前插入一个新的子节点。语法 :insertBefore(newchild,refchild)
display:inline;放在li里面可以并排显示display:inline 的作用是设置对象做为行内元素显示
ie和google 计算尺寸大小是不一样的
http://doc.hz.netease.com/pages/viewpage.action?pageId=15826977
http://www.cnblogs.com/mz121star/archive/2012/11/01/javascript_preloadimages.html
js图片的预加载功能
http://www.cnblogs.com/mingmingruyuedlut/archive/2011/10/12/2208550.html
遍历table的所有单元格
http://www.cnblogs.com/yunfour/archive/2013/04/07/3006473.html 源节点
浏览器区别的传参区别
hoverList.rows[i].cells[j].attachEvent("onmouseover",hoveUp(hoverList.rows[i].cells[j]));其中的this是windows对象
addEventListener:直接使用this可以引用被触发元素
getElementsByClassName()是HTML5 新增的DOM API。IE8以下不支持
http://www.cnblogs.com/yubinfeng/archive/2010/11/02/1867386.html
-moz代表firefox浏览器私有属性
-ms代表IE浏览器私有属性
-webkit代表chrome、safari私有属性
-o代表opera私有属性
有些事,你把它藏在心里或许会更好,。等时间长了,回过头去看它,也就变成了故事。
IE里面只有 window.event.srcElement
FF里面只有 event.target
if(window.event.srcElement==undefined)
{
e.target=window.event.srcElement;
}
else
{
e.target=event.target;
}
this.style.background="#ececec";
var next;
var pre;
if(window.event)
{
next=this.nextSibling;
pre=this.previousSbiling;
}
else
{
next=this.nextElementSibling;
pre=this.previousElementSibling;
}
appendChild() 方法:可向节点的子节点列表的末尾添加新的子节点。语法:appendChild(newchild)
insertBefore() 方法:可在已有的子节点前插入一个新的子节点。语法 :insertBefore(newchild,refchild)