求助,javascript高手进来帮我看看
谁 能帮我看看,下面这段哪里出错了, 为什么在网页了显示不出来?document.write(' <table cellSpacing=0 cellPadding=0 width="100%" background=image/sfhao.com_Index_016.gif border=0>');
document.write(' <tr>');
document.write(' <td vAlign=center align=middle width=800 height=18><span class="style4">
<A lass=MPTS_ToolbarPane1_first_item title="中亿网页设计中心" onclick="javascript:TrackThisClick
('ctl00_ToolbarControl1_MPTS_Toolbar','ctl00_ToolbarControl1_LocalToolbarLink0',this);"
href="index.htm"> 中亿网页设计中心首页
</A> | <A title=网站建设onclick="javascript:TrackThisClick
('ctl00_ToolbarControl1_MPTS_Toolbar','ctl00_ToolbarControl1_LocalToolbarLink1',this);"
href="server.html">网站建设</A> | <A title=网站推广onclick="javascript:TrackThisClick
('ctl00_ToolbarControl1_MPTS_Toolbar','ctl00_ToolbarControl1_LocalToolbarLink2',this);"
href="Promotion.html">网站推广</A> | <A title=空间域名onclick="javascript:TrackThisClick
('ctl00_ToolbarControl1_MPTS_Toolbar','ctl00_ToolbarControl1_LocalToolbarLink3',this);"
href="Space.html">空间域名</A> | <A title=成功案例onclick="javascript:TrackThisClick
('ctl00_ToolbarControl1_MPTS_Toolbar','ctl00_ToolbarControl1_LocalToolbarLink4',this);"
href="Case.htm">成功案例</A> | <A title=网站知识库onclick="javascript:TrackThisClick
('ctl00_ToolbarControl1_MPTS_Toolbar','ctl00_ToolbarControl1_LocalToolbarLink5',this);"
href="Knowledge.htm">网站知识库</A> | <A title="在线咨询" onclick="javascript:TrackThisClick
('ctl00_ToolbarControl1_MPTS_Toolbar','ctl00_ToolbarControl1_LocalToolbarLink6',this);"
href="Contactus.html">联系我们</A></span></td>');
document.write(' </tr>');
document.write(' </table>');
谁帮我修改一下, 谢谢
我是HTML的页面调用javascript的导航加了一点特效,不知道哪里错了? 每行都要docuement.write出来,不能一次docuement.write多行 学习了!!!!! haohaoxue 现在的人,不会动脑子~~~~
书写长字符串或者类似这样的html代码,可以采取这样的方式
var str=[
"<table>",
"<tr>",
"<td>",
"</td>",
"</tr>",
"</table>"
];
document.write(str.join(""));
优点
1、不用一行写太长
2、类似这种html代码,可以方便的缩进格式化
页:
[1]
