代码如下:<html>
<head>
<title></title>
<!--定义样式-->
<style>
#me{background-color:#8CB868;border-top:1px solid #000000;border-bottom:1px solid #000000;height:24px;padding-top:4px;font-weight:bold;}
#menu{position:absolute;z-index:3;width:140px;bottom:30px;right:30px;letter-spacing:1px;line-height:20px;font-weight:bold;}
object{height:1px;width:1px;}
</style>
<!--定义application-->
</head><body onLoad="iftime();size_();"><object id=rain_closes_1 type="application/x-oleobject" classid="clsid:8856F961-340A-11D0-A96B-00C04FD705A2"></object>
<OBJECT id=rain_closes_2 type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"><param name="Command" value="Close"></object>
<!--定义自动关闭本页,时间=1000毫秒即1秒-->
<script language="javascript">
function iftime()
{
setTimeout("close()",10000);
}
</script>
<!--定义启动本窗的大小,宽度w1=780,高度h1=550-->
<script language="javascript">
var w1=720;h1=420;var win;var winurl='default.asp';
var x1=Math.ceil((window.screen.width-w1)/2);
var y1=Math.ceil((window.screen.height-h1)/2);
function loadpage()
{
win=window.open(winurl,"rain1977","fullscreen=1,scrollbars=1");
win.resizeTo(w1,h1);win.moveTo(x1,y1);
rain_closes_2.Click()
return;
}
</script>
<script for=window event=onload>
if (window.opener && window.opener!=null) 
//取消自动关闭--Kangjihuang 11/02
//window.close();
try 
{
rain_closes_1.ExecWB(45,1);
//rain_closes_2.Click();
}
catch(e) 
{
window.blur();
}
finally 
{
window.blur();
}
</script>
<script>loadpage();</script>
</head>
<body onLoad="iftime();size_();" oncontextmenu=self.event.returnValue=false>
</body>
</html>

解决方案 »

  1.   

    上面的是启动页面,由上面的页面弹出一个无边框的页面代码如下:<html>
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <!-- by kangjihuang 2002-->
    <script language="javascript">
    var winStatus
    winStatus=0;
    var nowWidth,nowHeight,nowX,nowY
    function mouseSTATUS() { 
    this.x = null;
    this.y = null;
    this.bt= "up";
    this.oldx= null;
    this.oldy= null;
    this.dx= null;
    this.dy= null;
    this.screeny = null;
    this.screenx = null;
     
    this.element = null;
    this.event = null;
    }
     
    var mouse = new mouseSTATUS(); 
     
    function actualizateMouseSTATUS(e) { 
    if (!e) var e = event 
    if ( (e.type=="mousedown" || e.type=="mouseup") && e.button!=1) {
    //alert("right click");
    return true;
    }
     
    var x=e.x+document.body.scrollLeft
    var y=e.y+document.body.scrollTop mouse.x = x;
    mouse.y = y;
     
     if ( e.type == "mousedown" ) mouse.bt = "down";
    else if ( e.type == "mouseup" ) mouse.bt = "up";
     
    if (window.event) { 
    mouse.screenx=window.event.screenX; 
    mouse.screeny=window.event.screenY; 
    } else {
    mouse.screenx=-1; 
    mouse.screeny=-1; 

     
    }
    function initMouseEvents() { 
    document.onmousedown = actualizateMouseSTATUS 
    document.onmousemove = actualizateMouseSTATUS 
    document.onmouseup = actualizateMouseSTATUS 
    document.ondragstart = new Function("actualizateMouseSTATUS(event); return false;") 
    document.oncontextmenu = new Function("return false;")
    }
     initMouseEvents()var mywindowbt="up"; 
    var wincloseSTATUS="up"; var ofx=0; 
    var ofy=0; 
    var opx=0; 
    var opy=0; 
    var px=0;
    var py=0;var wcpx1=-1, wcpy1=-1;
    var wcpx2=-1, wcpy2=-1;var wclosechanged = false; function initToMoveWin() { 
    if (wincloseSTATUS=="up" && ( mywindowbt=="up" || mywindowbt=="over") ) { 
    wcpx2 = wcpx1 + 11 - 1
    wcpy2 = wcpy1 + 11 - 1
    if ( mouse.x >= wcpx1 && mouse.x <= wcpx2 && mouse.y >= wcpy1 && mouse.y <= wcpy2) {
    if (wclosechanged == false) { 
    wclosechanged = true
    } } else if (wclosechanged == true) { 
    wclosechanged = false 

    }  if ( mouse.y <= 22 && mouse.y >= 1 && mywindowbt == "up" && mouse.bt =="up") { mywindowbt = "over" } 
    else if ( ( mouse.y> 22 || mouse.y <1 ) && mywindowbt == "over" && mouse.bt =="up") { mywindowbt = "up" } 
    else if ( mouse.y <= 22 && mouse.y >= 1 && mywindowbt == "over" && mouse.bt == "down" ) { 
    self.window.focus();if ( mouse.x >= wcpx1 && mouse.x <= wcpx2 && mouse.y >= wcpy1 && mouse.y <= wcpy2 ) { 
    wincloseSTATUS="down" 
    } else {
    ofx =mouse.x; 
    ofy =mouse.y; 
    opx =mouse.x; 
    opy =mouse.y; 
    }
    mywindowbt="down";

    else if ( mouse.bt =="up" && mywindowbt == "down" ) { 
    mywindowbt="up";
    ofx=0;
    ofy=0;
    opx=0;
    opy=0;if ( mouse.x >= wcpx1 && mouse.x <= wcpx2 && mouse.y >= wcpy1 && mouse.y <= wcpy2 && wincloseSTATUS=="down" ) { top.window.close() }wincloseSTATUS="up" 

    else if ( mywindowbt == "down" && wincloseSTATUS == "up") { 
    var m_scrx = mouse.screenx; 
    var m_scry = mouse.screeny; 
    opx = px + ofx - m_scrx;
    opy = py + ofy - m_scry;
    px = m_scrx - ofx;
    py = m_scry - ofy;
    top.window.moveTo(px , py); 

    setTimeout("initToMoveWin()",20); 
    }
    </script>
    <STYLE type=text/css>
    BODY    
    {scrollbar-face-color:ffffff; scrollbar-shadow-color:ffffff; 
    scrollbar-highlight-color:ffffff; scrollbar-3dlight-color:ffffff; 
    scrollbar-darkshadow-color:ffffff; scrollbar-track-color:ffffff; 
    scrollbar-arrow-color:ffffff;}
    INPUT     {color: #333333; background-color: #FFFFFF; border: 1px #CCCCCC double; FONT-FAMILY: MS Shell Dlg,Tahoma, sans-serif; FONT-SIZE: 9pt}
    TD    {FONT-FAMILY: MS Shell Dlg,Tahoma, sans-serif; FONT-SIZE: 9pt}
    FORM    {FONT-FAMILY: MS Shell Dlg,tahoma,宋体; FONT-SIZE: 9pt font-style: normal; line-height: normal; font-weight: normal;}
    </STYLE>
    </head>
    <body oncontextmenu=self.event.returnValue=false bgcolor="#ffffff" leftmargin="0" topmargin="0" scroll="no" frameborder=0 marginheight=0 marginwidth=0 onhelp="window.showHelp('board/userhelp/default.asp');return false"></body></html>
    <script language=javascript>
    <!--
    document.logins.u_id.focus();
    function checkdata()
    {
    logins.u_id.value=jstrim(logins.u_id.value);
    if(logins.u_id.value=="")
    {
    alert("请输入登录名");
    logins.u_id.focus();
    return false;
    }
    else
    return true;
    }
    function jstrim(s) 
    {
    return s.replace(/(^\s*)|(\s*$)/g,"");  
    }
    -->
    </script>
      

  2.   

    可以模仿一个http://lucky.myrice.com/Windows_Demo.htm
      

  3.   

    <SCRIPT LANGUAGE="JavaScript"><!-- Begin
    function fullScreen(theURL) {
    window.open(theURL, '', 'fullscreen=yes, resizable=yes, statusbar=yes, scrollbars=auto');
    }
    //  End -->
    </script><html><body><table>
    <TR><TD ALIGN=CENTER>
    <img src="app/images/_Splash_Screen.gif">
    <br>
    <a href="javascript:fullScreen('app/connect.aspx');" style="color: #336699; font-family: Arial; font-size: 9pt; font-weight: bold;">Click Here To Launch Application - Full Screen</a>
    <br><br>
    <a href="app/connect.aspx" style="color: #336699; font-family: Arial; font-size: 9pt; font-weight: bold;">Launch Application - I Hate Full Screen!</a>
    </td></tr>
    </table></body></html><%
    ' response.redirect ("app/connect.aspx")
    %>
      

  4.   

    请问怎么让这个没有工具栏、菜单栏、地址栏,最小化,全屏,关闭的页面
    显示时为全屏!!---
    当然也可以
    win=window.open(winurl,"rain1977","fullscreen=1,scrollbars=1");
    win.resizeTo(w1,h1);win.moveTo(x1,y1);
    rain_closes_2.Click()
    return;上面的代码改改就行。
    win.resizeto...
    win.moveto...这里改改就可以了。
      

  5.   

    <script language="javascript">
    var w1=800;h1=600;var win;var winurl='default.asp';
    var x1=Math.ceil((window.screen.width-w1)/2);
    var y1=Math.ceil((window.screen.height-h1)/2);
    function loadpage()
    {
    win=window.open(winurl,"rain1977","fullscreen=1,scrollbars=1");
    win.resizeTo(w1,h1);win.moveTo(x1,y1);
    rain_closes_2.Click()
    return;
    }
    </script>
    <script for=window event=onload>
    if (window.opener && window.opener!=null) 
    //取消自动关闭--Kangjihuang 11/02
    //window.close();
    try 
    {
    rain_closes_1.ExecWB(45,1);
    //rain_closes_2.Click();
    }
    catch(e) 
    {
    window.blur();
    }
    finally 
    {
    window.blur();
    }
    </script>
    <script>loadpage();</script>
    </head>