Jquery中文网 www.jquerycn.cn
Jquery中文网 >  脚本编程  >  Asp.net  >  正文 asp For Next语句实例

asp For Next语句实例

发布时间:2016-09-26   编辑:www.jquerycn.cn
jquery中文网为您提供asp For Next语句实例等资源,欢迎您收藏本站,我们将为您提供最新的asp For Next语句实例资源

<html>
<head>
<title>for next语句实例example25</title>
</head>
<body>
<%
 dim filename                      '图片文件名
 for i = 9 to 0 step -2    '用图片显示生成的随机数的每个数字
  filename="<img src=image/"&i&".gif>" '图片文件名
  response.write filename   '在网页上显示图片
 next
%>
</body>
</html>

实例二

<html>
<head>
<title>for next语句实例example24</title>
</head>
<body>
<%
 dim filename                      '图片文件名
 for i=0 to 9 step 2    '用图片显示生成的随机数的每个数字
  filename="<img src=image/"&i&".gif>" '图片文件名
  response.write filename   '在网页上显示图片
 next
%>
</body>
</html>

您可能感兴趣的文章:
asp For Next 循环语句语法与实例
asp For Each语句实例
php和asp语法上的区别是什么
asp For Next语句实例
asp exit用法与exit实例教程
ASP脚本循环语句
on error goto与try catch语句介绍
VBScript 循环语句
on error resume next错误处理的用法介绍
使用循环语句

[关闭]