<tr bgcolor="<% if a=0 then %><% a=1 %>#cccccc<% else %><% a=0 %>#ffffff<% end if %>">

解决方案 »

  1.   

    <html>
    <head>
    <title>My JS</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <style type="text/css">
    <!--
    body {  margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px}
    -->
    </style>
    </head><body bgcolor="#FFFFFF" text="#000000" scroll="no">
    <iframe width="100%" height="100%" src="index-frameset.htm"></iframe>
    </body>
    </html>
      

  2.   

    index-frameset.htm文件如下:<html>
    <head>
    <title>My JS</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type="text/css">
    <!--
    body {  margin-top: -1px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px}
    -->
    </style>
    <script language="JavaScript">
    <!--
    function MM_reloadPage(init) {  //reloads the window if Nav4 resized
      if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
        document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
      else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
    }
    MM_reloadPage(true);
    // -->
    </script>
    </head><frameset id=testframeset cols="200,*" rows="*" bordercolor="menu" border="6" framespacing="6"> 

    <frame name="leftFrame" src="dir.htm" frameborder="1" border="1" scrolling="NO">

    <frame name="main" src="main.htm" frameborder="1" border="1" scrolling="auto">
    </frameset><noframes>
    <body bgcolor="#FFFFFF" text="#000000"></body>
    </noframes>
    </html>
      

  3.   

    谢谢楼上的,请问,给的代码放到哪里??粘贴了代码,用文本存成了HTML的文件,打开,IE就报错~~~