解决方案 »

  1.   

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title></title><frameset  cols="1*,1001,1*" border="0px" frameborder="0" framespacing="0px"> 
    <frame src="about:blank" scrolling="no" noresize> 
    <frameset rows="90,*" cols="*" frameborder="0" border="1" framespacing="0">
    <frame name="top" src="top1.html?next_file=top1.html" scrolling="No" noresize="noresize"/>
    <frameset id="left" cols="@,*" frameborder="no" border="0" framespacing="0">
        <frame name="left" src="tree.html?next_file=tree.html" scrolling="auto" noresize="noresize"/>
    <frame name="right" src="view.html?next_file=view.html"/>
    <frame src="UntitledFrame-18"></frameset>
    </frameset>
    <frame src="about:blank"> </frameset><noframes></noframes></head>
    <body>
    <p>This webpage using frames, but your browser does not support frames.</p>
    </body>
    </html>
      

  2.   

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <link href="css_cn.css" rel="stylesheet" type="text/css" id="css1" />
    <title></title>
    <script language="javascript" type="text/javascript" src="func.js"></script>
    <script language="javascript" type="text/javascript" src="[email protected]"></script>
    <script language="JavaScript">
    <!--
    var a = 0; 
    var b = 0; 
    function showtime()
    {
    var cf = document.forms[0];
    var now= new Date();
    var year=now.getFullYear();
    var month=now.getMonth();
    var day=now.getDate();
    var hour=now.getHours();
    var minute=now.getMinutes();
    var second=now.getSeconds();
        var sys_day = new Date(year,month,day,hour,minute,second);
        var date_str = sys_day.toLocaleString(); 
        if(cf.h_language.value==0)
    {
    if(CheckChinese(date_str))
             document.getElementById('sys_time').innerHTML= date_str;
    else
    document.getElementById('sys_time').innerHTML= date_str.substring(0,24);
    h = parseInt(b/3600, 10);
    m = parseInt((b%3600)/60, 10);
    s = parseInt(b%60, 10);
    if(h<=9)
    h = "0"+ h;    
    if(m<=9)
    m = "0"+ m;
    if(s<=9)
    s = "0"+ s;
    second++;
    b++;
    }
    else if(cf.h_language.value==1)
    {
    setInterval("sys_time.innerHTML=new Date()+''+''.charAt(new Date().getDay());",1000); 
    }
    }function init()
    {
    var cf = document.forms[0];
        setInterval("showtime()", 1000);
    var lo=document.getElementById('Uplogo'); 
    document.getElementById('Current').innerHTML=Current_Time;
    document.getElementById('language').appendChild(document.createTextNode(Language));
    var css2=document.getElementById("css1");

    if(cf.h_language.value==1)
    {
    css2.setAttribute('href','css_en.css');
    }
    else if(cf.h_language.value==0)
    {
    css2.setAttribute('href','css_cn.css');
    }
    if(cf.h_language.value== 0)
    {
    cf.language.value = 0;

    if(Sys.ie)
    {
    if(document.documentMode >= 10)
    {
    lo.setAttribute('class','logo_cn');
    }
    else
    {
    var cl=document.createElement('<div id=logo class=logo_cn></div>');
    lo.appendChild(cl);
    }
    }
    else
    {
    lo.setAttribute('class','logo_cn');
    }
    }
    else if(cf.h_language.value== 1)
    {
    cf.language.value = 1;

    if(Sys.ie)
    {
    if(document.documentMode >= 10)
    {
    lo.setAttribute('class','logo_en');
    }
    else
    {
    var cl=document.createElement('<div id=logo class=logo_en></div>');
    lo.appendChild(cl);
    }
    }
    else
    {
    lo.setAttribute('class','logo_en');
    }



    }
    function SetLan()
    {
    var cf = document.forms[0];
    cf.h_language.value = cf.language.value;
    createCookie("language",cf.h_language.value,30);
    document.forms[0].submit();
    }
    //-->
    </script>
    <style type="text/css">.main{width:1001px;height:76px;margin:0 auto;margin-top:10px;}
    *html .main{width:1001px;height:78px;margin:0 auto;padding-top:10px;}
    *+html .main{width:1001px;height:78px;margin:0 auto;padding-top:10px;}
    a {text-decoration:none;}
    a,a:visited {color:#000;background:inherit;}
    .top{width:998px;height:74px;margin:0 auto;border:1px solid #96add4;}
    .top1{width:998px;height:74px;margin:0 auto;}
    .logo_cn{width:208px;height:74px;float:left;background-image:url(./logo_cn.gif);}
    .logo_en{width:208px;height:74px;float:left;background-image:url(./logo_en.gif);}.rig529{width:790px;height:74px;float:right;background-image:url(./bg.jpg);}
    .stdbutton{width:90px;padding-top:2px;}
    #update_time{text-align:left;width:200px;height:20px;float:left;}
    </style>
    </head><body style="margin:0;"  id="bd"  scrolling="no" onLoad="init();">
    <form method="post" action="top1.html">
    <div class="main">
    <div class="top">
         <div class="top1">
                <div id="Uplogo"></div>
                <div class="rig529">
                  <div class="info">
    <div class="txt55" id="Current"></div><div id="sys_time"></div>
    <div class="text350"><span id="language"></span><select size="1" name="language" class="stdbutton" onChange="SetLan();"><option value="0">简体中文</option><option value="1">English</option></select></div>
    </div>
    </div>
                     </div>
           <div class="nav"></div>
       </div>
    </div>
    <input type="hidden" id="h_language" name="h_language" value="@">
    </form>
    </body>
    </html>
     这个top页面提交数据,然后刷新整个框架,也就是top,left,right这三个。
      

  3.   

    数据提交后 。用location.href="最初进来框架页面的地址"
      

  4.   

    iframe 子页面提交后 刷新父级页面:parent.window.location = parent.window.location;
    iframe 子页面提交后 刷新最顶级级页面:top.window.location = top.window.location;
      

  5.   

    document.forms[0].submit();
    后面执行这个问题么?我这里用过这个window.top.location.reload(),但是一起用数据就没提交了