javascript web对话框与弹出窗口

  

复制代码 代码如下:

  function LoadWindow(val)

  {

  URL="sendmsg.aspx?nickname="+val;

  loc_x=document.body.scrollLeft+event.clientX-event.offsetX;

  loc_y=document.body.scrollTop+event.clientY-event.offsetY;

  //window.showModalDialog(URL,self,"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:450px;dialogHeight:450px;dialogTop:"+loc_y+"px;dialogLeft:"+loc_x+"px");

  window.open(URL,null,"height=400,width=550,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top=150,left=100,resizable=no");

  }