javascript怎样实现include功能? <SCRIPT src="header.htm"></SCRIPT>改成:<script src="header.js"></script> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <SCRIPT src="header.js"></SCRIPT>header.jsdocument.write(' 内容 ‘) 谢谢回复我晕~我怎么还是不可以啊?网页上包含错误。行:2字符:17错误:未结束的字符串常量代码:0header.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> </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> ') 改成: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> </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%" .......没有回车的. ligerui中下拉框界面值无法通过js修改 js 字符串处理 关于frameset的问题 求代码:点击任意空白处关闭DIV iframe src 在firefox下的問題 怎么访问ext js 做的页面? 怎样获得浏览器的高度? 判读文本里是否有数字 vbscript中的for each在javascript中怎么实现? 求助 javascript可否控制文件下载到硬盘的位置? 为什么这段代码放在网页里不起作用??
document.write(' 内容 ‘)
我晕~
我怎么还是不可以啊?网页上包含错误。
行: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> </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>
')
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> </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%" .......
没有回车的.