<!--
var win;
//
function colormake(){
Win = window.open("", "ColorSample", "toolbar=no, width=267, height=107, resizable=yes");
Win.resizeTo(267, 107);

Win.document.write('<HTML>');
Win.document.write('<TITLE>使える！カラーサンプル</TITLE>');
Win.document.write('<style type=text/css>');
Win.document.write('body{ margin:0 0;}');
Win.document.write('</style>');

Win.document.writeln('<SCRIPT language=JavaScript>');
Win.document.writeln('<!--');
Win.document.writeln('/* Copyright @izumikuns Ver 1.0 */');

Win.document.writeln('sw = 0;');
Win.document.writeln('function tdclick(a, b, c){');
Win.document.writeln('	if(sw==0) sw = 1; else sw = 0;');
Win.document.writeln('}');
Win.document.writeln('/* 背景色変更 */');
Win.document.writeln('function tdover(a, b, c){');
Win.document.writeln('	if(sw==1) return;');
Win.document.writeln('	document.bgColor = a*256*256 + b*256 + c;');
Win.document.writeln('	document.form1.ccode.value = document.bgColor;');
Win.document.writeln('}');
Win.document.writeln('//');
Win.document.writeln('function bgcolorSet(){');
Win.document.writeln('document.bgColor = document.form1.ccode.value;');
Win.document.writeln('}');
Win.document.writeln('//');
Win.document.writeln('function mOver(){');
Win.document.writeln('document.form1.bgimg.src="http://izumikuns.hp.infoseek.co.jp/js/ICO_082.GIF";');
Win.document.writeln('}');
Win.document.writeln('//');
Win.document.writeln('function mOut(){');
Win.document.writeln('document.form1.bgimg.src="http://izumikuns.hp.infoseek.co.jp/js/ICO_081.GIF";');
Win.document.writeln('}');
Win.document.writeln('// </comment>');
Win.document.writeln('</SCRIPT>');

Win.document.write('<body bgcolor=#000000 topmargin=5>');
Win.document.write('<form name=form1>');
Win.document.write('<table border=0 cellspacing=0 cellpadding=0><tr><td>');
Win.document.write('<table border=0 cellspacing=0 cellpadding=0><tr>');

sw=0;
for(r=0; r<256; r=r+51)
  {
  for(g=0; g<256; g=g+51)
    {
    for(b=0; b<256; b=b+51)
	{
	Win.document.write('<td width=5 height=9 style=background-color:rgb('+r+','+g+','+b+'); onMouseOver=tdover('+r+','+g+','+b+') onClick=tdclick('+r+','+g+','+b+')>');
	Win.document.write('</td>');
    }
  }
  Win.document.write('</tr><tr>');
}
Win.document.write('</tr></table>');
Win.document.write('</td><td align=center width=75>');
Win.document.write('<span style=color:#ffffff;font-size:7pt>');
Win.document.write('<span style=color:#ff0000>ColorCode</span>');
Win.document.write('<img src="http://izumikuns.hp.infoseek.co.jp/js/ICO_081.GIF" hspace=3 vspace=2 alt="背景" name="bgimg" onMouseOver="mOver()" onMouseOut="mOut()" onClick="bgcolorSet()"><br>');
Win.document.write('<input type=text size=4 name=ccode><br>');
Win.document.write('<span style=color:#ffffff;background-color:#000000>↑コピペして</span>');
Win.document.write('</span>');
Win.document.write('</td></tr></table>');
Win.document.write('<center><span style=color:#ffffff;font-size:7pt>色クリックでコード確定。再クリックで選択モード。<font color=blue>By Izumikun</font></span></center>');
Win.document.write('</form>');
Win.document.write('</body></HTML>');
Win.document.close();
Win.document.focus();

}
//-->
document.write('<table boeder=0><tr><td bgcolor=#ffffcc>');
document.write('<font color=red size=1>使える！');
document.write('<font color=#0000ff>カ</font>');
document.write('<font color=#6600ff>ラ</font>');
document.write('<font color=#ff00ff>ー</font>');
document.write('<font color=#ff0000>サ</font>');
document.write('<font color=#ff6633>ン</font>');
document.write('<font color=#ffcc00>プ</font>');
document.write('<font color=#00cc00>ル</font></font><BR>');
document.write('<input type=button value=ColorSample onClick=colormake()>');
document.write('</td></tr></table>');
