<SCRIPT src="header.htm"></SCRIPT>
改成:
<script src="header.js"></script>

解决方案 »

  1.   

    <SCRIPT src="header.js"></SCRIPT>header.js
    document.write(' 内容 ‘)
      

  2.   

    谢谢回复
    我晕~
    我怎么还是不可以啊?网页上包含错误。
    行:2
    字符:17
    错误:未结束的字符串常量
    代码:0
    header.js 内容:document.write('
          <TABLE cellSpacing=0 cellPadding=0 width="100%" bgColor=#ffffff border=0>
      <TBODY>
            <TR>
              <TD width=368 rowSpan=2><IMG height=50 src="./images/logo2.gif" 
                width=380></TD>
              <TD width=409 height=18>&nbsp;</TD></TR>
            <TR>
              <TD vAlign=bottom width=409 height=31>
                <marquee class=9hoa scrollamount=3 width=300 height=8 border="0"><DIV align=center>?????<STRONG>
    <FONT color=#cc0000>客户的满意就是我们的成功!</FONT></STRONG></DIV></marquee></TD></TR></TBODY></TABLE> 
          <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
            <TBODY>
            <TR>
              <TD width=491 background=./images/bg.gif height=20><A 
                href="./index.html"><IMG height=20 
                src="./images/n1.gif" width=93 border=0 name=Image15></A><A 
                href="./news/news.htm"><IMG height=20 
                src="./images/n2.gif" width=93 border=0 name=Image12></A>
                <div id="Layer2" style="position:absolute; width:0; height:0; z-index:4">
                  <div id="menu1" style="position:absolute; left:-5px; top:20px; width:99px; height:67px; z-index:1; background-color: #C61008; layer-background-color: #C61008; border: 1px none #000000; visibility: hidden;" onMouseOver="MM_showHideLayers('menu1','','show')" onMouseOut="MM_showHideLayers('menu1','','hide')">
                    <table width="100%"  border="0">
                      <tr>
                        <td><div align="center"><span class="style2">路由器</span></div></td>
                      </tr>
                      <tr>
                        <td><div align="center"><span class="style2">交换机</span></div></td>
                      </tr>
                      <tr>
                        <td><div align="center"><span class="style2">光纤</span></div></td>
                      </tr>
                      <tr>
                        <td><div align="center"><span class="style2">光设备</span></div></td>
                      </tr>
                    </table>
                  </div>
                </div>            <A 
                href="./infor/infor.htm" 
                onmouseover="MM_showHideLayers('menu1','','show')" 
                onmouseout=MM_showHideLayers('menu1','','hide')><IMG 
                src="./images/n3.gif" name=Image13 width=93 height=20 border=0></A><A 
                href="./service/service.htm"><IMG 
                height=20 src="./images/n4.gif" width=93 border=0 
                name=Image14></A>
                <div id="Layer1" style="position:absolute; width:0; height:0; z-index:3">
                  <div id="menu2" style="position:absolute; left:-5px; top:20px; width:98px; height:67px; z-index:2; visibility: hidden;" onMouseOver="MM_showHideLayers('menu2','','show')" onMouseOut="MM_showHideLayers('menu2','','hide')">
                    <table width="100%"  border="0" bgcolor="#C61008">
                      <tr>
                        <td><div align="center"><span class="style2">公司简介</span></div></td>
                      </tr>
                      <tr>
                        <td><div align="center" class="style2">公司架构</div></td>
                      </tr>
                      <tr>
                        <td><div align="center" class="style2">公司资质</div></td>
                      </tr>
                    </table>
                  </div>
                </div>            <A 
                href="./aboutus/aboutus.htm" onmouseover="MM_showHideLayers('menu2','','show')" onmouseout="MM_showHideLayers('menu2','','hide')"><IMG src="./images/nn1.gif" 
                name=Image16 width=93 
                height=20 border=0></A></TD>
              <TD width=305 background=./images/bg.gif height=20>
                <DIV align=right><IMG height=18 src="./images/map.gif" 
                width=120 useMap=#Map border=0></DIV></TD></TR></TBODY></TABLE> 
    ')
      

  3.   

    改成:
    document.write('<TABLE cellSpacing=0 cellPadding=0 width="100%" bgColor=#ffffff border=0><TBODY><TR><TD width=368 rowSpan=2><IMG height=50 src="./images/logo2.gif" width=380></TD><TD width=409 height=18>&nbsp;</TD></TR><TR><TD vAlign=bottom width=409 height=31><marquee class=9hoa scrollamount=3 width=300 height=8 border="0"><DIV align=center>?????<STRONG><FONT color=#cc0000>客户的满意就是我们的成功!</FONT></STRONG></DIV></marquee></TD></TR></TBODY></TABLE><TABLE cellSpacing=0 cellPadding=0 width="100%" .......
    没有回车的.