해당 Javascript 소스 코드는 다음과 같습니다.
var hex = new Array(6)
hex[0] = "FF"
hex[1] = "CC"
hex[2] = "99"
hex[3] = "66"
hex[4 ] = "33"
hex[5] = "00"
function display(triplet) {
document.bgColor = '#' threelet
}
function drawCell(red, green, 파란색) {
document.write('
') document.write('') document.write('') document.write('< ;/A>') document.write(' | ')
}
function drawRow(red, blue) {
document.write('
')
for (var i = 0; i < 6; i) {
drawCell(red, hex[i], blue)
}
document.write('
' )
}
function drawTable(blue) {
document.write('
')
for (var i = 0; i < 6; i) {
drawRow(hex[i], blue)
}
document.write('
')
}
function drawCube() {
document.write('
')
for (var i = 0; i < 6; i) {
document.write( '') drawTable(hex[i]) document.write(' | ')
}
document.write( '
')
}
drawCube()