标题:这个为什么不行
只看楼主
melack
Rank: 1
等 级:新手上路
帖 子:230
专家分:0
注 册:2006-9-27
 问题点数:0 回复次数:1 
这个为什么不行

<%set rst=server.CreateObject("adodb.recordset")
rst.open"select * from notice_jj where tan=1",conn,1,1
if not rst.eof and not rst.bof then%>
<script>
<%for t=1 to rst.recordcount%>

win1<%=t%> = window.open('notice.asp?id=<%=rst("id")%>', 'b', 'toolbar=no,menubar=no,left=200,top=200');
<%rst.movenext
next%>
win2<%=t%> = window.open('notice.asp?id=<%=rst("id")%>', 'b', 'toolbar=no,menubar=no,left=200,top=200');
</script>
<%end if%>
这个为什么总是弹出一个窗口!!?
怎样才能弹出好几个呢
该怎样改?

搜索更多相关主题的帖子: where 
2007-04-18 12:07
lq7350684
Rank: 6Rank: 6
等 级:贵宾
威 望:20
帖 子:5089
专家分:98
注 册:2006-11-6
得分:0 

<%set rst=server.CreateObject("adodb.recordset")
rst.open"select * from notice_jj where tan=1",conn,1,1
if not rst.eof and not rst.bof then%>
<script>
<%for t=1 to rst.recordcount%>
win1<%=t%> = window.open('notice.asp?id=<%=rst("id")%>', 'b', 'toolbar=no,menubar=no,left=200,top=200');
<%rst.movenext
next%>
</script>
<%end if%>


这样去试试.

2007-04-19 10:28



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-132819-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 2.081367 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved