Ver Mensaje Individual
  #2 (permalink)  
Antiguo 13/03/2002, 08:29
bet
 
Fecha de Ingreso: febrero-2001
Mensajes: 292
Antigüedad: 23 años, 2 meses
Puntos: 0
Re: Como cambio color d fondo de un boton en un form?

Algo así te puede servir?

Código:
<html>
<head>
<title> Cambiar colores </title>

<style type="text/css">

input { font-family: Tahoma, Verdana, Arial; font-size: 11px; color: #FFFFFF; background-color: #7F99D4; border: #000099; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; cursor: hand} 
</style> 

<script language="JavaScript">
<!--
	function cambiar(b,bg,tx){
		b.style.backgroundColor = bg;
		b.style.color = tx;

	}
	//-->
</script>
</head>
<body>

<input type="button" name="bot"  value="Mi Boton" onMouseOver="cambiar(this,'#CCAAFF','#000000')" onMouseOut="cambiar(this,'#7F99D4','#FFFFFF')"><br>
</body>
</html>
<hr noshade size=1><img src="http://www.gograph.com/Images-8712/ClipArt/cat03.gif" height="50" border=0 align="absmiddle"> <font size="2" face="verdana" color="#000000">bet[/CODE]