这是你要的吧.
<%
Dim output
Dim xx
'你的相关xx的赋值..
output="<td><a href=ckgj.asp?username="&rs("姓名")
output=output&" onMouseOver=""drs('"&xx
output=output&"');return true;"" onMouseOut=""nd(); return true;"">"&rs("姓名")
output=output&"</a> </td>"
Response.write output
%>ASP中用""来表示一个双引号
所以,你要输出一个双引号是这样写的
Response.write """"
<%
Dim output
Dim xx
'你的相关xx的赋值..
output="<td><a href=ckgj.asp?username="&rs("姓名")
output=output&" onMouseOver=""drs('"&xx
output=output&"');return true;"" onMouseOut=""nd(); return true;"">"&rs("姓名")
output=output&"</a> </td>"
Response.write output
%>ASP中用""来表示一个双引号
所以,你要输出一个双引号是这样写的
Response.write """"
解决方案 »
- 跪求高手帮我瞧瞧下面的代码,到底哪里出错了!
- js中push是什么意思
- 为什么设置fck的值后 他会不可用了
- 如何在光标当前位置插入一段文字或图片阿,
- 急急急救命呀!!!请高手们看看帮忙在线等.给120分!
- 超难问题!!!!! 如何 用 javascript 实现 表格 的列头 通过 鼠标 拖动 列之间的位置进行对调 ???????急!!!!!!!!
- 大家来看看吧,当层数目较少时可以正常切换菜单图片,多的时候就不正常,超过30个层时连显示也成问题,为什么?急!!!!!
- 在location.href中写入参数
- 怎样防止事件向上冒泡?急在线等待!!!!!
- js读取excel文件时,workbooks.open(filePath)出错,只在xp,ie8上无法执行,其他电脑正常
- 程序的问题
- 如何实现如csdn一样双击时自动滚屏,再击时停止?
document.writeln()
输出哈
\" -> "
\' -> '
<!--
var str="<td><a href=ckgj.asp?username=<%=rs(";
str=str+"\"姓名\""+")%> onMouseOver="+"\"drs('<%=xx%> '); return true;\"";
str=str+" onMouseOut="+"\"nd(); return true;\""+"><%=rs("+"\"姓名\""+")%></a></td>";
//alert("原来:"+str);
document.writeln(str);//输出html//原样输出,转化“<"--><">"-->>
var len=str.length;for (pos=0;pos<len;pos++){
if (str.indexOf("<")!=-1){
pos=str.indexOf("<");
str=str.substring(0,pos)+"<"+str.substring(pos+1,len);
}
else if(str.indexOf(">")!=-1){
pos=str.indexOf(">");
str=str.substring(0,pos)+">"+str.substring(pos+1,len);
}
else{ str=str;}
}
//alert("后来:"+str);
document.writeln(str);
//-->
</script>