<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>
热门信息
阅读 (167)
1 独特的随机字母阅读 (143)
2 检查和设置IIS服务器正确的权限阅读 (139)
3 存在的文件阅读 (134)
4 随机图像阅读 (131)
5 ASP读取、解析JSON数据