这是你要的吧.
<%
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 """"
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>