html调用asp出错

来源:百度知道 编辑:UC知道 时间:2024/05/30 11:45:48
在html页面<script src="2.asp?id=2"></script>调用2.asp的内容,这样就可以令到html网页有些部分像asp一样动态,不过2.asp里有一行这样写出错 response.write "document.write ('<font color=#CC0033> <input type=button style=width:20px;height:22px;background-color:#FF6600;color:#ffffff; value=详 onClick=MM_openBrWindow(/1.asp?room_name="&rsroom("room_name")&"&id="&rs("id")&",,width=500,height=350)>');"&vbCrLf
就是一个弹出窗口的问题,到底要怎么写呀,js好像单引号跟双引号好烦呀

<!--#include file="xx.asp"-->
汗了。LZ要在html页里,怎么可能用 include呢~根本无法识别~
我给你一个弹窗的代码
<span style=cursor:hand onClick="window.open('code.asp?id=<%=id%>', 'newFormWindow', 'width=470,height=350,top=100,left=400' );">这里可以是文字,也可以是其他标签</span>

用span标签的含义就是,避免超连接,但是可以出现 手形 的标志~style=cursor:hand 样式就是~

你也不一定要把html标签放到<%%>中用response对象来输出呀~
关于JS中的引号,我写个代码出来,LZ去分析下,引号的用法,非要在response里输出,就按格式修改下自己的代码
response.Write("<script language='javascript'>")
response.Write("window.alert('谢谢,你的评论已经成功提交!');")
response.Write("window.location.href('show_photo.asp?cpage_no="&cpage_no&"&id="&id&"#comment');")
response.Write("</script>")

调用代码应该是:
<script language="javascript" src="??"></script>
??是你所需要的 ASP文件

<!--#include file="x