<SCRIPT TYPE="text/JavaScript"> <!-- function BClr( Clr ) // (1) { document.bgColor = Clr; // (2) } //--> </SCRIPT> <FORM> // (3) 背景色を選んで下さい。<BR> <INPUT TYPE="button" VALUE="青" ONCLICK="BClr(0x0000ff);"> //(4) <INPUT TYPE="button" VALUE="緑" ONCLICK="BClr(0x00ff00);"> <INPUT TYPE="button" VALUE="赤" ONCLICK="BClr(0xff0000);"> <INPUT TYPE="button" VALUE="黒" ONCLICK="BClr(0x000000);"> <INPUT TYPE="button" VALUE="白" ONCLICK="BClr(0xffffff);"> </FORM> |