用"+"连接
suspendcode="<DIV id=lovexin style='right:2px;POSITION:absolute;TOP:1px;'>"+
"<TABLE height=93 width=132><TBODY><TR><TD width=140 height=51>"+
"<P align=center><IMG height=56 src='honyie"+
"(1).gif'width=132></P></TD></TR></TBODY></TABLE></div>"
suspendcode="<DIV id=lovexin style='right:2px;POSITION:absolute;TOP:1px;'>"+
"<TABLE height=93 width=132><TBODY><TR><TD width=140 height=51>"+
"<P align=center><IMG height=56 src='honyie"+
"(1).gif'width=132></P></TD></TR></TBODY></TABLE></div>"
解决方案 »
- 刷新父窗口的父窗口问题
- 【求助】javascript如何获取area的属性??????
- 这个是啥意思
- js怎样监听Select的Onchage事件?
- 为什么 $("#divId").offset().top返回值为window类型
- xslt里怎样使用<号
- 动态增加单元格的问题
- 发布extjs +SSH 到apache+tomcat 时,如果使用directengine 会导致程序出错,有没有好方法?
- 要获得checkbox的个数怎么写?
- 简单问题:javascript调用自己的ActiveX控件,无论IE如何设置总会有控件不安全的提示,如何去掉
- 如何通过 JavaScript 技术改变某个标识的 Class 属性?
- text框中怎样捕捉光标位置
"\n <DIV id=lovexin style='right:2px;POSITION:absolute;TOP:1px;'>"
+ "\n <TABLE height=93 width=132>"
+ "\n <TBODY>"
+ "\n <TR>"
+ "\n <TD width=140 height=51>"
+ "\n <P align=center>"
+ "\n <IMG height=56 src='honyie(1).gif' width=132>"
+ "\n </P>"
+ "\n </TD>"
+ "\n </TR>"
+ "\n </TBODY>"
+ "\n </TABLE>"
+ "\n </div>"
;
<TABLE height=93 width=132>\
<TBODY>\
<TR>\
<TD width=140 height=51>\
<P align=center><IMG height=56 src='honyie(1).gif' width=132></P>\
</TD>\
</TR>\
</TBODY>\
</TABLE>\
</div>"
如果想客户原代码换行,就用、 \n,或 \r
exg:document.write("aaaaaa<br>bbbbbbbb");看到页面上换行了,但代码不换行;<%
Response.Write("adfafa\nfgsdgsdg")//看到代码换行了。页面上没有换行
%>