| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 782 人关注过本帖
标题:[求助]看看为啥运行不了!
只看楼主 加入收藏
348212866
Rank: 1
等 级:新手上路
帖 子:105
专家分:0
注 册:2005-9-17
收藏
 问题点数:0 回复次数:14 
[求助]看看为啥运行不了!
<%
dim the_a,the_b,the_c
dim the_i,the_m,the_n
the_a=request("the_table")
the_b=request("the_tr")
the_c=request("the_td")
for the_i=1 to the_a
response.write"<table border='1'>"
for the_m=1 to the_b
if the_m mod 2=0 then
response.write"<tr bgcolor='#ff0000'>"
else
response.write"<tr>"
end if
response.write"<tr>"
for the_n=1 to the_c
response.write"<td>"
response.write"&nbsp"
response.write"</td>"
next
response.write"</tr>"
next
response.write"</table>"
response.write"<br>"
next
%>
搜索更多相关主题的帖子: 运行 
2005-09-28 08:09
islet
Rank: 12Rank: 12Rank: 12
等 级:贵宾
威 望:89
帖 子:6548
专家分:0
注 册:2005-1-28
收藏
得分:0 
the_a=request("the_table")这是什么 是数字不
2005-09-28 08:21
348212866
Rank: 1
等 级:新手上路
帖 子:105
专家分:0
注 册:2005-9-17
收藏
得分:0 
是用来接受上一个页面的数值的!主要是帮看看这个命令为什么不能运行: if the_m mod 2=0 then response.write"<tr bgcolor='#ff0000'>" else response.write"<tr>" end if 其它的是能运行的!

独来徙倚信无聊,未见幽人但见宵。 眼底雪花飘似客,别前灯火寂如谣。 鸿门当此复谁走?柯梦依稀空自招。 忆向他年惟一醉,春风可不借长条。 QQ:348212866 E-mail:348212866@
2005-09-28 08:30
islet
Rank: 12Rank: 12Rank: 12
等 级:贵宾
威 望:89
帖 子:6548
专家分:0
注 册:2005-1-28
收藏
得分:0 
现在的结果是运行什么

2005-09-28 10:22
348212866
Rank: 1
等 级:新手上路
帖 子:105
专家分:0
注 册:2005-9-17
收藏
得分:0 
是为生成的表格加上红色! if the_m mod 2=0 then response.write"<tr bgcolor='#ff0000'>" else response.write"<tr>" end if

独来徙倚信无聊,未见幽人但见宵。 眼底雪花飘似客,别前灯火寂如谣。 鸿门当此复谁走?柯梦依稀空自招。 忆向他年惟一醉,春风可不借长条。 QQ:348212866 E-mail:348212866@
2005-09-28 14:42
sudonghai
Rank: 1
等 级:新手上路
帖 子:56
专家分:0
注 册:2005-9-16
收藏
得分:0 
[CODE]&lt;%
dim the_a,the_b,the_c
the_a=request("the_table")
the_b=request("the_tr")
the_c=request("the_td")
for the_i=1 to the_a
response.write"&lt;table border='1'&gt;"
for the_m=1 to the_b
if the_m mod 2=0 then
response.write"&lt;tr bgcolor='#ff0000'&gt;"
else
response.write"&lt;tr&gt;"
end if
for the_n=1 to the_c
response.write"&lt;td&gt;"
response.write"&amp;nbsp"
response.write"&lt;/td&gt;"
next
response.write"&lt;/tr&gt;"
next
response.write"&lt;/table&gt;"
response.write"&lt;br&gt;"
next
%&gt;
你应该这样才对呢!

[/CODE]

QQ:270072546 网上名片 网址为:sudonghai. 网上名片:《一搜》上搜“一个爱的天使”,第一个呵呵!~就是我啦!~ ————————为了生存我想我残酷了————————
2005-09-28 16:18
sudonghai
Rank: 1
等 级:新手上路
帖 子:56
专家分:0
注 册:2005-9-16
收藏
得分:0 
哎呀!~~~
asp 没有用啊!
不早说。
丢人啦!

QQ:270072546 网上名片 网址为:sudonghai. 网上名片:《一搜》上搜“一个爱的天使”,第一个呵呵!~就是我啦!~ ————————为了生存我想我残酷了————————
2005-09-28 16:20
348212866
Rank: 1
等 级:新手上路
帖 子:105
专家分:0
注 册:2005-9-17
收藏
得分:0 
不会不要乱说,知道丢人了吧!

独来徙倚信无聊,未见幽人但见宵。 眼底雪花飘似客,别前灯火寂如谣。 鸿门当此复谁走?柯梦依稀空自招。 忆向他年惟一醉,春风可不借长条。 QQ:348212866 E-mail:348212866@
2005-10-18 10:56
syh878
Rank: 1
等 级:新手上路
威 望:2
帖 子:461
专家分:0
注 册:2005-9-2
收藏
得分:0 
当多个for欠套使用时,next后面是不是要有循环的数啊

2005-10-18 16:52
syh878
Rank: 1
等 级:新手上路
威 望:2
帖 子:461
专家分:0
注 册:2005-9-2
收藏
得分:0 
呵呵,俺错了,我是了一下代码,可以生成表格啊

2005-10-18 17:00
快速回复:[求助]看看为啥运行不了!
数据加载中...
 
   



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

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