getElementsByTagName('a')[0]这个后面的0有什么作用呢!
function imgDisplay(){
var Div = document.getElementById('picList').getElementsByTagName('div');
var divHeight = 160;
for(var i=0;i<Div.length;i++)
{
Div[i].onmouseover=showImg
Div[i].onmouseout=hideImg
}
function showImg(){
this.getElementsByTagName('a')[0].style.top=0
}
function hideImg(){
this.getElementsByTagName('a')[0].style.top=divHeight +'px'
}
}
imgDisplay();