<html>
<title>www.ttasp.net(Color Safe Palette or Nested For Next Statments with Arrays)</title>
<body bgcolor="#FFFFFF">
<table border=1 width=500 align=center>
<caption>Web Browser Color Safe Palette</caption>
<%
'安装所有的循环值的变量颜色
dim color(6)
color(1)="00"
color(2)="33"
color(3)="66"
color(4)="99"
color(5)="CC"
color(6)="FF"
'计数
for r_counter = 1 to 6 %>
<tr><%
for g_counter = 1 to 6
for b_counter = 1 to 6
%>
<td align="center" bgcolor="<%
'写出每个数组的当前的计算值来改变双色
response.write color(r_counter) & color(g_counter) & color(b_counter) %>">
<font color='#FFFFFF'><b>
<%
'写出每个数组的当前的计算值来显示颜色代码
response.write color(r_counter) & color(g_counter) & color(b_counter) %>
</b></font>
</td>
<%
next ' loop to change b_counter
%>
</tr>
<%
next ' loop to change g_counter
next ' loop to change r_counter
%>
</body>
</html>
热门信息
阅读 (201)
1 独特的随机字母阅读 (175)
2 检查和设置IIS服务器正确的权限阅读 (167)
3 asp网站伪静态化URL Rewrite中的httpd.ini伪静态化规则编写方法阅读 (166)
4 asp取access数据库里本周、本月、本季度的记录~阅读 (166)
5 ASP-对象