ZMENA FARBY POZADIA (2)

ID
Nazov / Name:
Popis / Description:
Dlzka / Length:
Testovane pod / Tested under:

 

012
p012.html / p012.zip
Zmena farby pozadia po stlaceni tlacitka
1059b
NN 4.04, IE 4.0

UKAZKA / CLICK HERE

Zdrojovy tvar / Source code:

<html> <head> <title> JavaScript DESTINATION - P012 </title> <script> <!-- function changeColor(hexNumber) { document.bgColor=hexNumber } // --> </script> </head> <body> <FORM METHOD="POST" NAME="background"> <TABLE> <TR> <TD align=center> <INPUT TYPE="button" VALUE="cervena" OnClick="changeColor('#ff0000')"> </TD> <TD align=center> <INPUT TYPE="button" VALUE="oranzova" OnClick="changeColor('#993300')"> </TD> <tr> <TD align=center> <INPUT TYPE="button" VALUE="zlta" OnClick="changeColor('#ffff00')"> </TD> <td align=center> <INPUT TYPE="button" VALUE="zelena" OnClick="changeColor('#6b8e23')"></td> <tr> <td align=center> <INPUT TYPE="button" VALUE="modra" OnClick="changeColor('#000080')"></td> <td> <INPUT TYPE="button" VALUE="indigova" OnClick="changeColor('#00009c')"></td> <tr> <td align=center> <INPUT TYPE="button" VALUE="fialova" OnClick="changeColor('#db70db')"></td> <td align=center> <INPUT TYPE="button" VALUE="biela" OnClick="changeColor('#ffffff')"> </td> </TABLE> </FORM> </body> </html>
[ Navrat / BACK ]