自己做一个无边框的窗口就可以了!!具体的代码请参考www.21cn.com

解决方案 »

  1.   

    无边:(摘)
    minimizebar="images/minimize.gif"; 
    minimizebar2="images/minimize2.gif";
    closebar="images/close.gif";        
    closebar2="images/close2.gif";      
    icon="images/icon.gif";             
    function noBorderWin(fileName,w,h,titleBg,moveBg,titleColor,titleWord,scr)  
    {
      var contents="<html>"+               "<head>"+
            "<title>"+titleWord+"</title>"+
       "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">"+
        "<link rel='stylesheet' href='inquirybase.css'>"+
       "<object id=hhctrl type='application/x-oleobject' classid='clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11'><param name='Command' value='minimize'></object>"+
       "</head>"+
                   "<body topmargin=0 leftmargin=0 scroll=no onselectstart='return false' ondragstart='return false' onkeydown='  if ((window.event.altKey)&&(window.event.keyCode==115)) return false;' onload=' document.all.bottomtxt.style.top=(document.body.clientHeight-20).toString()+px;'>"+
       "  <table height=100% width=100% cellpadding=0 cellspacing=2 bgcolor="+titleBg+" id=mainTab>"+
       "    <tr height=18 style=cursor:default; onmousedown='x=event.x;y=event.y;setCapture();mainTab.bgColor=\""+moveBg+"\";' onmouseup='releaseCapture();mainTab.bgColor=\""+titleBg+"\";' onmousemove='if(event.button==1)self.moveTo(screenLeft+event.x-x,screenTop+event.y-y);'>"+
       "      <td width=18 align=center><img height=12 width=12 border=0 src="+icon+"></td>"+
       "      <td   width="+w+"><span id=mytitle style=font-size:12px;color:"+titleColor+";font-family:宋体;position:relative;top:1px;>"+titleWord+"</span></td>"+
       "      <td width=14><img border=0 width=12 height=12 alt=最小化 src="+minimizebar+" onmousedown=hhctrl.Click(); onmouseover=this.src='"+minimizebar2+"' onmouseout=this.src='"+minimizebar+"'></td>"+
       "      <td width=13><img border=0 width=12 height=12 alt=关闭 src="+closebar+" onmousedown=self.close(); onmouseover=this.src='"+closebar2+"' onmouseout=this.src='"+closebar+"'></td>"+
       "    </tr>"+
       "    <tr height=*>"+
       "      <td colspan=4>"+
       "        <iframe name=nbw_v6_iframe src="+fileName+" scrolling="+scr+" width=100% height=100% frameborder=0></iframe>"+
       "      </td>"+
       "    </tr>"+
       
       "  </table>"+
       "  <div id=bottomtxt style='position:absolute;left:0;top:0px;width:97.3%;height:20;background-color:#0099FF;border:0px' align='left'><table height=100% width=100% cellpadding=0 cellspacing=2 bgcolor=#6a7f9a><tr><td id = mystatus></td></tr></table></div>"+    "</body>"+
       "</html>";  pop=window.open("","_blank","fullscreen=yes");
      pop.resizeTo(w,h);
      pop.moveTo((screen.width-w)/2,(screen.height-h)/2);
      pop.document.writeln(contents);
      

  2.   

    就是打开一个无边窗口的函数呀,如上的定义存为win.js
    你用如下的调用就可呀
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>1111</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <link rel="stylesheet" href="inquirybase.css">
    <style type="text/css">
    </style>
    </head>
    <script langauage="jscript" src="win.js">
    </script>
    <body onkeydown='if ((window.event.altKey)&&(window.event.keyCode==115)) return false;' onload="javascript:
    noBorderWin('你的网页名字.htm',635,420,'#000000','#333333','#CCCCCC','标题','yes');
    window.opener=null;
    window.close(); ">
    </body>
    </html>