document.write() 不可以使用 include 文件,只有使用框架

解决方案 »

  1.   

    <IFRAME frameBorder=0 marginHeight=0 marginWidth=0 name="iFrame_" id="iFrame_"  scrolling=no width=100%  align="center" height=88></IFRAME>
    //先预植IFRAME
    <script language=javascript> 
    <!-- 
    if(screen.width==800){
                url = "../main/flash2.htm"
    }else{
                url = "../main/flash.htm"
    }
             document.all.iFrame_.src= url
    //--> 
    </script>
      

  2.   

    有没有办法先判断if(screen.width==800){},把结果传递到php中?
      

  3.   

    default.htm<body onload="document.form1.clientWidth.value=screen.width;document.form1.submit()">
    <form name="form1" action="Redirect.asp" method="post">
    <input name="clientWidth" type=text style="display:none">
    </form>
    Redirect.asp<%
    dim clientWidth
    clientWidth =request.form("clientWidth")
    if clientWidth="800" then
     Response.Redirect "default800.asp"
    else
     Response.Redirect "default1024.asp"
    end if
    %>