那是不是不能去掉实现不了?
自己顶!!!

解决方案 »

  1.   

    用模式窗口来模拟吧NGPAlert.html<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE></TITLE>
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    function doLoad() {

    var args = window.dialogArguments;
    window.dialogWidth = "280px";
    window.dialogHeight = "120px";


    window.divMessage.innerHTML = args[0];
    if(args[1] == ""){
    args[1] = "1";
    }
    window.document.title = args[2] + "                                            "; if(args[3] == "1") {
    window.img_Icon.src = "images/normal.gif";
    } else if (args[3] == "2") {
    window.img_Icon.src = "images/confirm.gif";
    } else if (args[3] == "3") {
    window.img_Icon.src = "images/warn.gif";
    } else if (args[3] == "4") {
    window.img_Icon.src = "images/error.gif";
    } else {
    window.img_Icon.src = "images/normal.gif";
    }

    window.btn_Cancel.focus();
    } function doReturn(iRtn) {
    window.returnValue = iRtn;
    window.close();
    }
    //-->
    </SCRIPT>
    </HEAD><BODY bgColor="#EFEBDE" onLoad="JavaScript:doLoad();"><DIV id="div1" style="position:absolute; left:6px; top:16px; width:38px; height:38px; z-index:1"><img src="" name="img_Icon" width="38" height="38" id="img_Icon"></DIV>
    <DIV id="div2" style="position:absolute; left:55px; top:5px; width:190px; height:50px; z-index:3">
    <TABLE width="100%" height="100%">
    <TR>
    <TD valign="middle"><DIV id="divMessage"></DIV></TD>
    </TR>
    </TABLE>
    </DIV>
    <DIV id="div3" style="position:absolute; left:30px; top:60px; width:200px; height:20px; z-index:2"> 
      <DIV align="center">
        <input name="btn_OK" style="height:20px;width:80px;font-size: 11px;" type="button" onClick="doReturn(1);" value="OK">
        <input name="btn_Cancel" style="height:20px;width:80px;font-size: 11px;" type="button" onClick="doReturn(2);" value="キャンセル">
      </DIV>
    </DIV>
    <!--<input name="button2" style="height:20px" type="button" onClick="doReturn(3);" value="はい">
    <input name="button2" style="height:20px" type="button" onClick="doReturn(4);" value="いいえ">-->
    </BODY>
    </HTML>//-----------------------------------------------------------------------
    test.html<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE> New Document </TITLE>
    <META NAME="Generator" CONTENT="EditPlus">
    <META NAME="Author" CONTENT="">
    <META NAME="Keywords" CONTENT="">
    <META NAME="Description" CONTENT="">
    <script>
    function NGPAlert(strPrompt,iButton,strTitle,iLevel)
    {
    var iRtn = showModalDialog("NGPAlert.html",NGPAlert.arguments,"dialogWidth:280px; dialogHeight:120px;edge:raised;center:Yes;help:no;sesizable:no;status:no");
    if(iRtn == undefined) {
    iRtn = 1;
    }
    return iRtn;
    }</script>
    </HEAD><BODY>
    <input name="button2" style="height:20px" type="button" onClick="NGPAlert('aaaaaaaa','1','1111111111','1');" value="AAAA">
    <input name="button2" style="height:20px" type="button" onClick="NGPAlert('aaaaaaaa','2','1111111111','2');" value="AAAA">
    <input name="button2" style="height:20px" type="button" onClick="NGPAlert('aaaaaaaa','3','1111111111','3');" value="AAAA">
    <input name="button2" style="height:20px" type="button" onClick="NGPAlert('aaaaaaaa','4','1111111111','4');" value="AAAA">
    </BODY>
    </HTML>