别在同一个IE里打开window.showModalDialog()窗口就可以了

解决方案 »

  1.   

    同一个IE怎么用showModalDialog()??介绍一下,想学一招
      

  2.   

    用div模仿一个窗口,里面放上iframe,
      

  3.   

    给你个例子,这只是个例子,更多的效果自己扩展吧!我想这样至少可以满足
    你的基本要求!<INPUT TYPE="button" NAME="" value=显示窗口 onclick="Win.style.visibility='visible'">
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    var drag=false;
    var offsetX,offsetY
    function mDown(){
       if(window.event.srcElement.id=='winHead'){
           drag=true;
           offsetX=window.event.offsetX;
           offsetY=window.event.offsetY;
       }
       else return false;
    }
    function mMove(){
       if(!drag)return false;
       document.all['Win'].style.left=window.event.clientX-offsetX-3;
       document.all['Win'].style.top=window.event.clientY-offsetY-3;
       return false;
    }
    function mUp(){
       drag=false;
    }
    document.onmousedown=mDown;
    document.onmousemove=mMove;
    document.onmouseup=mUp;
    //-->
    </SCRIPT>
    <div id="Win" style="position:absolute;width:250px;height:250px;left:100px;top:100px;background-color:black;z-index:500;visibility:hidden;overflow:hidden;">
               <div id="winHead" style="position:absolute;width:248px;height:20px;left:1px;top:1px;background-color:#e7e7e7;z-index:510;cursor:move;overflow:hidden;">
                   
              </div>
               <div id="winButton" style="position:absolute;width:20px;height:20px;left:229px;top:1px;background-color:#e7e7e7;z-index:511;color:red;cursor:hand;overflow:hidden;" title=close onclick="Win.style.visibility='hidden'">X
       </div>
              <div id="winBody" style="position:absolute;width:248px;height:227px;left:1px;top:22px;background-color:red;z-index:510;overflow:hidden;">
                  <IFRAME ID=IFrame1 FRAMEBORDER=0 SCROLLING=NO SRC="http://www.csdn.net" width=100% height=100%></IFRAME>
              </div>
    </div>