function expand(entity) {
alert("expand");
var oImage;
var children;
if (entity.hasChildNodes())
{
children= entity.childNodes;
for (var i = 0; i < children.length; i++)
{
};
};
oImage = children.all["image"];
oImage.src = entity.imageOpen;
if (typeof(entity.imageOpen) == "undefined")
oImage.src = "<%=request.getContextPath()%>/images/MinusSignBlackSilver.gif";
for(i=0; i < entity.childNodes.length; i++) {
if(entity.childNodes(i).tagName == "DIV") {
entity.childNodes(i).style.display = "block"
}
}
entity.open = "true"
}
.all
在 Mozilla 中没有醒来。我用什么功能代替.all
它可以在 IE 和 Mozilla 中工作?