Mhtml
11-13-2002, 03:40 AM
I have had a go at making a script to list all the hexcidecimal colors, I can easily get the non letter codes but getting ones with letters has me stumped.
<%
'MyArray = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", 1, 2, 3, 4, 5, 6, 7, 8, 9, 0)
for i = 00 to 99
response.write("<input onMouseover="&chr(34)&"ChangeColors(this.style.backgroundColor , this.style.backgroundColor)"&chr(34)&" class="&chr(34)&"this"&chr(34) & " style="&chr(34)&"background-color:0000"&i&""&chr(34)&">")
next
Response.Write("<br>")
for i = 00 to 99
response.write("<input onMouseover="&chr(34)&"ChangeColors(this.style.backgroundColor , this.style.backgroundColor)"&chr(34)&" class="&chr(34)&"this"&chr(34) & " style="&chr(34)&"background-color:00"&i&"00"&chr(34)&">")
next
Response.Write("<br>")
for i = 00 to 99
response.write("<input onMouseover="&chr(34)&" ChangeColors(this.style.backgroundColor , this.style.backgroundColor)"&chr(34)&" class="&chr(34)&"this"&chr(34) & " style="&chr(34)&"background-color:"&i&"0000"&chr(34)&">")
next
Response.Write("<br>")
%>
<style>
.this{border-style:none;height:13;width:5}
.that{border-style:none;}
</style>
<br><br>
<script>
function ChangeColors(CT , CBC){
cc.value = CT ;
ccc.style.backgroundColor = CBC ;
}
</script>
Hexidecimal code / color:
<input id="cc" class="that"><input id="ccc" class="that">
You can see at the top of my code I made an array, I know there has to be a way to cycle through each letter and number combination...
like it picks out the letter a and then writes aa ab ac ad ae etc until it has gone through each combination.
Also is there a way to stop the page loading until all of the fields have been placed on the page?
<%
'MyArray = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", 1, 2, 3, 4, 5, 6, 7, 8, 9, 0)
for i = 00 to 99
response.write("<input onMouseover="&chr(34)&"ChangeColors(this.style.backgroundColor , this.style.backgroundColor)"&chr(34)&" class="&chr(34)&"this"&chr(34) & " style="&chr(34)&"background-color:0000"&i&""&chr(34)&">")
next
Response.Write("<br>")
for i = 00 to 99
response.write("<input onMouseover="&chr(34)&"ChangeColors(this.style.backgroundColor , this.style.backgroundColor)"&chr(34)&" class="&chr(34)&"this"&chr(34) & " style="&chr(34)&"background-color:00"&i&"00"&chr(34)&">")
next
Response.Write("<br>")
for i = 00 to 99
response.write("<input onMouseover="&chr(34)&" ChangeColors(this.style.backgroundColor , this.style.backgroundColor)"&chr(34)&" class="&chr(34)&"this"&chr(34) & " style="&chr(34)&"background-color:"&i&"0000"&chr(34)&">")
next
Response.Write("<br>")
%>
<style>
.this{border-style:none;height:13;width:5}
.that{border-style:none;}
</style>
<br><br>
<script>
function ChangeColors(CT , CBC){
cc.value = CT ;
ccc.style.backgroundColor = CBC ;
}
</script>
Hexidecimal code / color:
<input id="cc" class="that"><input id="ccc" class="that">
You can see at the top of my code I made an array, I know there has to be a way to cycle through each letter and number combination...
like it picks out the letter a and then writes aa ab ac ad ae etc until it has gone through each combination.
Also is there a way to stop the page loading until all of the fields have been placed on the page?