求救!我把一段asp 语句放在javascript 中输入,一切正常,可就是想加 target=blank 是出错,应该如何写呢?

parsely 2005-07-07 09:37:38
<table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left">
<SCRIPT language=JavaScript>
<!-- Begin
//字幕板宽度
var swidth=200

//字幕板高度
var sheight=100


//滚动速度
var sspeed=2

var wholemessage=''

//字幕在此

wholemessage='<div align="center"><font color="red" size=2><%
if rs.eof and rs.bof then
hh ="没有可以显示的数据"
end if
do until rs.EOF
hh =rs("biaoti")
response.write "<a href=g_show.asp?id="&rs("id")&" >"
response.write hh
response.write "</
<SCRIPT language=JavaScript>
<!-- Begin
//字幕板宽度
var swidth=200

//字幕板高度
var sheight=100


//滚动速度
var sspeed=2

var wholemessage=''

//字幕在此

wholemessage='<div align="center"><font color="red" size=2><%
if rs.eof and rs.bof then
hh ="没有可以显示的数据"
end if
do until rs.EOF
hh =rs("biaoti")
response.write "<a href=g_show.asp?id="&rs("id")&" >"
response.write hh
response.write "</a>"
response.write "<p>"
rs.MoveNext
loop
%></font></div>

----------------------------------

response.write "<a href=g_show.asp?id="&rs("id")&" >" 我想把target=blank 加进去,可是加进去就报错,要如何写呢?

俱体报错如下:

Microsoft VBScript 编译器错误 错误 '800a03f6'

缺少 'End'

/iisHelp/common/500-100.asp,行242

Microsoft VBScript 编译器错误 错误 '800a0408'

无效字符

/web/cp.asp,行72

response.write "<a href=g_show.asp?id="&rs("id")&" target="_blank">"



...全文
72 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
parsely 2005-07-07
  • 打赏
  • 举报
回复
谢谢了!
mingday 2005-07-07
  • 打赏
  • 举报
回复
双引号里不能再有单的双引号
要么用单引号,要么用两个双引号
coolwindkaka 2005-07-07
  • 打赏
  • 举报
回复
楼上的对,引号要对应正确
wangwm 2005-07-07
  • 打赏
  • 举报
回复
或者
response.write "<a href=g_show.asp?id="&rs("id")&" target=_blank>"
wangwm 2005-07-07
  • 打赏
  • 举报
回复
response.write "<a href=g_show.asp?id="&rs("id")&" target=""_blank"">"

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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