response.write "document.write(xxx)"怎么写阿???

jsidiot 2002-05-16 06:44:36
response.write "document.write('<tr onmouseover=\"this.bgColor='\#000000\'\" onmouseout=\'this.bgColor=#d8d8d8\' ><td align=left class= "& style &" ><font color=#666666 size=2 ><strong>" & chr(30) & " 最新动态</strong></font></td></tr>');"
总是出错
那位可以教我阿?
...全文
57 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
seabell 2002-05-17
  • 打赏
  • 举报
回复
那就这样,测试通过
<%@language=vbscript%>
<%option explicit%>
<%
dim style
style="myclass"
response.write "document.write('<table><tr onmouseover=""this.bgColor=\'#000000\'"" onmouseout=""this.bgColor=\'#d8d8d8\'""><td align=left class= "& style &" ><font color=\'#666666\' size=2 ><strong>" & chr(30) & " 最新动态</strong></font></td></tr></table>');"
%>
qiushuiwuhen 2002-05-17
  • 打赏
  • 举报
回复
好了么?
如果好了,揭帖的时候转到asp区,好么?
jsidiot 2002-05-17
  • 打赏
  • 举报
回复
我要把这个文件作为一个asp文件包含到
<script language=javascript src='xx.asp'></script>
只有这样了
seabell 2002-05-16
  • 打赏
  • 举报
回复
直接这样写就可以出效果
<%
dim style
style="myclass"
response.write "<table><tr onmouseover=""this.bgColor='#000000'"" onmouseout=""this.bgColor='#d8d8d8'""><td align=left class= "& style &" ><font color='#666666' size=2 ><strong>" & chr(30) & " 最新动态</strong></font></td></tr></table>"
%>
qiushuiwuhen 2002-05-16
  • 打赏
  • 举报
回复
为什么不用这种?很清晰的
%>
document.write('<tr onmouseover=this.bgColor="#000000" onmouseout=this.bgColor="#d8d8d8" ><td align=left class=<%=style%>><font color=#666666 size=2 ><strong><%=chr(30)%>最新动态</strong></font></td></tr>')
<%
jsidiot 2002-05-16
  • 打赏
  • 举报
回复
response.write "document.write('<tr onmouseover=""this.bgColor='\#000000\'"" onmouseout=""this.bgColor=\'#d8d8d8\'"" ><td align=left class= "& style &" ><font color=#666666 size=2 ><strong>" & chr(30) & " 最新动态</strong></font></td></tr>');"
现在是这样的e
可是还是不行
qiushuiwuhen 2002-05-16
  • 打赏
  • 举报
回复
\" 改为 ""

87,901

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧