自己做个窗口页面,用javascript调用弹出

解决方案 »

  1.   

    自己做个页面上面有你要的功能,然后用
     showModalDialog()函数调用就可以了
      

  2.   

    但是在不允许额外的页面的情况下,仅仅用javascript,还有没有可能实现?
      

  3.   

    自己做个 Active X 吧。
      

  4.   

    showModalessDialog
    楼主自己查一下吧。很简单的
      

  5.   

    <head>
    <script language="JavaScript">
    <!--
    var oPopup=window.createPopup();
    var oPopbody=oPopup.document.body;
    function EditBox(strMsg){
    if(typeof(strMsg)!="string") throw(new Error(-1, '传入的参数类型不是字符串!'));
    if(arguments.length==1) throw(new Error(-1, '无法创建没有按钮的对话框!'));
    //arguments
    var strHtml= '<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0">';
    strHtml += '<tr height="20" style="background-color:blue"><td colspan="3"align="right"><input type="button" id="0" style="width:20px; height:20px" onclick="parent.btnClk(this)" value="×"></td></tr>';
    strHtml += '<tr><td width="15%">&nbsp;</td><td width="70%" align="left" valign="middle">'+arguments[0]+'</td><td width="15%">&nbsp;</td></tr>';
    strHtml += '<tr height="22"><td>&nbsp;</td><td id="btnArea">';
    for(var i=1;i<arguments.length;i++)
    strHtml +='<input type="button" id='+i+' value='+ arguments[i]+' onclick="parent.btnClk(this)">&nbsp;';
    strHtml += '</td><td>&nbsp;</td></tr>';
    strHtml += '<tr height="10"><td colspan="3" align="right"><font style="font-size:10px">code by meixx!</font></td></tr>';
    strHtml += '</table>';
    strHtml += '';
    oPopbody.style.cssText="background-color: buttonface;border:3px solid; border-color: buttonhighlight buttonshadow buttonshadow buttonhighlight;;overflow:hidden;margin:0";
    oPopbody.innerHTML=strHtml;
    oPopup.show(100,100,240,120,document.body);}
    function btnClk(src){
    var winRtnVal=parseInt(src.id,10);
    oPopup.hide();
    switch(winRtnVal){
    case 1: break;
    default: break;
    }
    alert(winRtnVal);
    }//-->
    </script>
    </head>
    <body>
    <script language="JavaScript">
    <!--
    EditBox("请选择要进行的操作!","增加","修改","删除");
    //-->
    </script>
    <table width="100%" height="100%" cellpadding="0" cellspacing="0" border="1" style="display:none">
    <tr height="20"><td colspan="3"></td></tr>
    <tr><td width="15%"></td><td width="70%" align="left" valign="middle"></td><td width="15%"></td></tr>
    <tr height="22"><td></td>
    <td id="btnArea"></td>
    <td></td></tr>
    <tr height="10"><td colspan="3" align="right"><font style="font-size:10px">code by meixx!</font></td></tr>
    </table>
    </body>
    没时间美工了,自己修理吧
      

  6.   

    自己做个页面
    用showModelDialog来显示模态窗口