// Copyright 2005 Ryo Ueda. ALL Rights Reserved. // URI:http://w3g.jp/script/color function changeBgcolor() { if (document.getElementById('bcctl').point.options[document.getElementById('bcctl').point.selectedIndex].value == "textcolor") { var te = document.getElementById('te'); te.style.color = "#" + document.getElementById('bcctl').rvalA.options[document.getElementById('bcctl').rvalA.selectedIndex].value + document.getElementById('bcctl').rvalB.options[document.getElementById('bcctl').rvalB.selectedIndex].value + document.getElementById('bcctl').gvalA.options[document.getElementById('bcctl').gvalA.selectedIndex].value + document.getElementById('bcctl').gvalB.options[document.getElementById('bcctl').gvalB.selectedIndex].value + document.getElementById('bcctl').bvalA.options[document.getElementById('bcctl').bvalA.selectedIndex].value + document.getElementById('bcctl').bvalB.options[document.getElementById('bcctl').bvalB.selectedIndex].value; var r1 = document.getElementById('bcctl').rvalA.options[document.getElementById('bcctl').rvalA.selectedIndex].value; var r2 = document.getElementById('bcctl').rvalB.options[document.getElementById('bcctl').rvalB.selectedIndex].value; var g1 = document.getElementById('bcctl').gvalA.options[document.getElementById('bcctl').gvalA.selectedIndex].value; var g2 = document.getElementById('bcctl').gvalB.options[document.getElementById('bcctl').gvalB.selectedIndex].value; var b1 = document.getElementById('bcctl').bvalA.options[document.getElementById('bcctl').bvalA.selectedIndex].value; var b2 = document.getElementById('bcctl').bvalB.options[document.getElementById('bcctl').bvalB.selectedIndex].value; f16(r1,r2,g1,g2,b1,b2); } else { var bg = document.getElementById('bg'); bg.style.backgroundColor = "#" + document.getElementById('bcctl').rvalA.options[document.getElementById('bcctl').rvalA.selectedIndex].value + document.getElementById('bcctl').rvalB.options[document.getElementById('bcctl').rvalB.selectedIndex].value + document.getElementById('bcctl').gvalA.options[document.getElementById('bcctl').gvalA.selectedIndex].value + document.getElementById('bcctl').gvalB.options[document.getElementById('bcctl').gvalB.selectedIndex].value + document.getElementById('bcctl').bvalA.options[document.getElementById('bcctl').bvalA.selectedIndex].value + document.getElementById('bcctl').bvalB.options[document.getElementById('bcctl').bvalB.selectedIndex].value; var r1 = document.getElementById('bcctl').rvalA.options[document.getElementById('bcctl').rvalA.selectedIndex].value; var r2 = document.getElementById('bcctl').rvalB.options[document.getElementById('bcctl').rvalB.selectedIndex].value; var g1 = document.getElementById('bcctl').gvalA.options[document.getElementById('bcctl').gvalA.selectedIndex].value; var g2 = document.getElementById('bcctl').gvalB.options[document.getElementById('bcctl').gvalB.selectedIndex].value; var b1 = document.getElementById('bcctl').bvalA.options[document.getElementById('bcctl').bvalA.selectedIndex].value; var b2 = document.getElementById('bcctl').bvalB.options[document.getElementById('bcctl').bvalB.selectedIndex].value; f16v2(r1,r2,g1,g2,b1,b2); } } function f16(r1,r2,g1,g2,b1,b2) { var o16 = document.getElementById('o16'); o16.value = '#' + r1 + r2 + g1 + g2 + b1 + b2; } function f16v2(r1,r2,g1,g2,b1,b2) { var o16v2 = document.getElementById('o16v2'); o16v2.value = '#' + r1 + r2 + g1 + g2 + b1 + b2; } document.write("