求助-_-~!高手请进来帮忙,谢谢!
function create()
{
....
eleLayer = document.createElement("DIV");
eleLayer.setAttribute("id",divId);
eleLayer.setAttribute("class","drag");
eleLayer.style.setAttribute("zIndex",cra);
eleLayer.style.top = ctop;
eleLayer.style.left = cleft;
eleLayer.appendChild(eleImage);
parent.frames["kiki"].document.all.titi.appendChild(eleLayer);
}
titi为kiki页面上的DIV
程序运行到parent.frames["kiki"].document.all.titi.appendChild(eleLayer);出错。提示htmlfile: 参数无效。alert(parent.frames["kiki"].document.all.titi)可以找到对象.
求救~~~~~~~~~~~~~~~~~~~~~~~~~>_<~~~~~~~~~~~~~~~~~~~~~~~~~~