关于一个ASP语句的写法,高手来看看
来源:百度知道 编辑:UC知道 时间:2024/06/23 01:57:43
<a style="behavior:url(hint.htc)" son="divtip" alt="提示..." target="_blank" href="123" >连接</a>
这一句要用Response.Write 怎么写才是对的,引号看得头疼了
补充一下,谢谢招贴的回答,回答也太快了,还没说完。
原来的句子是这样的:
Response.Write("<a href=""SrcShow.asp?Src_ID="&Rs("Src_ID")&""" class=""postfontindex"" style=""font-weight: bold;"" onMouseOut='window.status="""&Web_Name&"欢迎您!"";' onMouseOver='window.status="""&Web_Name&":打开"&src_Title2&""";return true;'>"&vbcr)
这个有一个JS状态栏效果
现在我要用的在HTML里是 :<a style="behavior:url(hint.htc)" son="divtip" alt="提示..." target="_blank" href="" >连接</a>
把它写到上面那个ASP里,地址是上面那个动态的,引号实在太多了。。。
这一句要用Response.Write 怎么写才是对的,引号看得头疼了
补充一下,谢谢招贴的回答,回答也太快了,还没说完。
原来的句子是这样的:
Response.Write("<a href=""SrcShow.asp?Src_ID="&Rs("Src_ID")&""" class=""postfontindex"" style=""font-weight: bold;"" onMouseOut='window.status="""&Web_Name&"欢迎您!"";' onMouseOver='window.status="""&Web_Name&":打开"&src_Title2&""";return true;'>"&vbcr)
这个有一个JS状态栏效果
现在我要用的在HTML里是 :<a style="behavior:url(hint.htc)" son="divtip" alt="提示..." target="_blank" href="" >连接</a>
把它写到上面那个ASP里,地址是上面那个动态的,引号实在太多了。。。
从你上面的语句来看并不是一个完成得连接,因为没有</a>结尾。有关<a>……</a>中间的我无从得知。
大致如下
Response.write("<a style=""behavior:url(hint.htc)"" son=""divtip"" alt="""&src_Title2&""" target=""_blank"" href=""SrcShow.asp?Src_ID="&Rs("Src_ID")&""" >连接</a> ")
连接需要改成你需要的连接变量
----------------------------------------------
<%
Response.write("<a style=""behavior:url(hint.htc)"" son=""divtip"" alt=""提示..."" target=""_blank"" href=""123"" >连接</a> ")
%>
或者是直接单引号或者不要引号,不过那样不符合规范
<%
Response.write("<a style='behavior:url(hint.htc)' son='divtip' alt='提示...' target='_blank' href='123' >连接</a> ")<