求助-_-~!高手请进来帮忙,谢谢!

tooogoooo 2004-10-18 11:44:10
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)可以找到对象.
求救~~~~~~~~~~~~~~~~~~~~~~~~~>_<~~~~~~~~~~~~~~~~~~~~~~~~~~
...全文
124 4 打赏 收藏 举报
写回复
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
ouyld 2004-10-18
  • 打赏
  • 举报
回复
tooogoooo 2004-10-18
  • 打赏
  • 举报
回复
titi为kiki页面上的DIV
eleLayer = document.createElement("DIV");
JK_10000 2004-10-18
  • 打赏
  • 举报
回复
titi是什么对象?
eleLayer又是什么对象?

提示应该是在说
eleLayer不可以加到titi里去。
tooogoooo 2004-10-18
  • 打赏
  • 举报
回复
谢谢帮顶
相关推荐
发帖
JavaScript

8.7w+

社区成员

Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
帖子事件
创建了帖子
2004-10-18 11:44
社区公告
暂无公告