一切皆有可能

相信自己

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

Code


function xWin(id,w,h,l,t,tit,msg)

 使用方法:
  new xWin("Info",400,120,140,50,"标题","内容(可以自己构造table)");
 参数说明:
id:层的ID,实际为xMsg加上传进去的值:如msgInfo
w:width
h:height
l:left
t:top
tit:title
msg:message

移除层可以用
div_Remove(div_name)

跟上new xWin中的ID

//移除层(removeNode,不然会留下DIV占位)
function div_Remove(div_name){
    var win = document.getElementById("xMsg"+div_name);
    var sha = win.nextSibling;
    win.removeNode(true);
    sha.removeNode(true);  
}

posted on 2008-12-11 16:37  李泉生  阅读(121)  评论(0)    收藏  举报