Ver Mensaje Individual
  #2 (permalink)  
Antiguo 25/05/2006, 03:19
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años
Puntos: 772
Hola Callaghan

Prueba esto:
Código PHP:
<html>
<
head>
<
style type="text/css">
img {border:2px solid white/* color=color de fondo */
</style>
<
script type="text/javascript">
var 
marcado null;
function 
marcar(obj) {
  if (
marcado!=null)
    
marcado.style.borderColor 'white';
  
obj.style.borderColor 'red';
  
marcado=obj;
}
</script>
</head>
<body>
<form>
<img src="imagen1.gif" onclick="marcar(this)" />
<img src="imagen2.gif" onclick="marcar(this)" />
<img src="imagen3.gif" onclick="marcar(this)" />
</form>
</body>
</html> 
Saludos,