1、a.aspx里面加载的时候弹出《--网关连接地址页面--》。并在一定时间内关掉《--网关连接地址页面--》
2、如果取得网关页面返回的值。我试过用ajax。有返回值。但是由于不是用load事件。是用click事件做的。
用C/S可以实现不?关掉网关页面。
加载的时候用什么控件。<from>表单的load事件不行,不知道怎么回事</from>还有什么控件有load事件的。
求高手帮助。搞好久了。越搞越混乱。现在都没思路了。

解决方案 »

  1.   

    试试Timer
    看看能不能做出来
    只是建议
      

  2.   

    Timer我也想过。但是我怕服务器承受不住。因为我们公司的服务器本来就是很烂的。
      

  3.   

    我最想实现的是用ajax来做。让他默默无闻的去强奸网关。然后返回个很爽的结果。
      

  4.   

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    </head>
    <SCRIPT LANGUAGE="JavaScript">
    function open3(){
    var vlaues=window.showModalDialog("two.html","窗体","dialogHeight=400px,dialogWidth=200px");
    alert(vlaues);
    }
    </SCRIPT>
    <body>
     <input type="button" value="网关连接地址页面" onclick="open3()"></br>
    </body>
    </html>
      

  5.   

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    </head><body>
    <style type="text/css">
        body{font-size:12px;}
        </style>
       <script language="JavaScript" type="text/javascript"> 
        var f8=true; 
        function go()
        { 
            if(!f8) return;f8=false; 
            t=3;
            document.getElementById('view').innerHTML ="<b>"+"4"+"</b>"; 
            window.setInterval("testTime()",1000); 
        } 
        function testTime() 
        { 
            if(t == 0) 
        { 

            f8=true; 
    var val=document.getElementById('val').value;
    window.returnValue=val;
            window.close(); 
        }        document.getElementById('view').innerHTML = "<b>"+ t +"</b>"; // 显示倒计时 
            t--;
        } 
    </script>
    </head>
    <body onload="go()">
        <form id="form1" runat="server">
       <TABLE height=500 cellSpacing=0 cellPadding=0 width=500 align=center 
    background="Images/x.gif" border="0" style="border-top-style: dashed; border-right-style: dashed; border-left-style: dashed; border-bottom-style: dashed">
      <TBODY>
      <TR>
        <TD height=330>&nbsp;</TD></TR>
      <TR>
        <TD vAlign=top>
          <DIV align=center>
          <input type="text" id="val"  value="resultValue"/><br/>
              <strong>您还没有<span style="color: #99ff66">登陆</span>或没有权限<span style="color: #66ff66">访问页面<br />
              </span>操作错误!<br />系统将在</strong><span id="view"></span><strong>秒后跳转<a href="one.aspx">首页</a></strong></DIV></TD></TR></TBODY></TABLE>
             <div style="text-align:center">
                 &nbsp;</div>
        </form></body>
    </html>
      

  6.   

    用jquery加载完成后执行可以吗?
    $(document).ready(function(){
       //语句
    })
      

  7.   


    为什么AJAX在用点击事件?把AJAX请求放在一个方法里。。onload事件调用这个方法不就行了?