Response.Write引号嵌套的问题

来源:百度知道 编辑:UC知道 时间:2024/05/05 10:12:45
Response.Write "document.write('<td><input type=""button"" style=""width: 38px; height: 16px; border-width: 0px; padding-top: 2px;background: url(/images/top/dl.gif)"" onclick=""window.location='"&webpath&"/bbs/reg.asp' value=""注 册"" />  </td>');" & vbCrLf
这里面onclick=""window.location='"& webpath & "bbs/reg.asp' 这个 引号怎么用?我这个是错的 没法输出

Response.Write "<td><input type='button' style='width: 38px; height: 16px; border-width: 0px; padding-top: 2px;background: url(/images/top/dl.gif)' onclick=""window.location='"&webpath&"/bbs/reg.asp'"" value='注 册' /> </td>" & vbCrLf

这样不就行了,你用Response.Write 了,干嘛还要用document.write

onclick=""window.location="""&webpath&"/bbs/reg.asp"" value=""注 册"" /> </td>');" & vbCrLf