点击标题后向newopen.asp文件提交该标题的编号,并在新弹出的窗口中根据标题编号显示该条新闻的内容。这样对吗?
<html>
<head>
<title>无标题文档</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>
......
response.write "<td><font size=2><a href=# onClick=""MM_openBrWindow('newopen.asp?id="&rs("编号")&"','新兴新闻','width=700,height=300')"">"&rs("标题")&"</a></font></td>"
这句的大概意思是输出每条新闻的标题(从库中读出的),点击标题后向newopen.asp文件提交该标题的编号,并在新弹出的窗口中根据标题编号显示该条新闻的内容。
不知道为什么我写的这句总是在原窗口显示,而不弹出新窗口。请高手给改一下,谢谢!!
问题点数:0、回复次数:2Top
1 楼mao1997(xs)回复于 2004-05-01 19:55:42 得分 0
改成
response.write "<td><font size=2><a href=# onClick=""MM_openBrWindow('newopen.asp?id="&rs("编号")&"','新兴新闻','width=700,height=300')"" target='_blank'>"&rs("标题")&"</a></font></td>"
就是<a target="_blank">
Top
2 楼chinalinx(林高敏)回复于 2004-05-01 22:43:19 得分 0
upTop




