Código PHP:
Ver original<div id="información">
<h2>Colores disponibles </h2>
<?php
if ($color1 == "gris" ){
echo'<img src="imagenes/1.jpg" alt="" width="40px" height="40px" title=" '.$color1.'" style="margin-right:10px; margin-left:10px;" />';
}
if ($color1 == "azul" ){
echo '<img src="imagenes/2.jpg" alt="" width="40px" height="40px" title=" '.$color1.'" style="margin-right:10px; margin-left:10px;" />';
}
if ($color1 == "rojo" ){
echo '<img src="imagenes/3.jpg" alt="" width="40px" height="40px" title=" '.$color1.'" style="margin-right:10px; margin-left:10px;" />';
}
if ($color1 == "amarillo" ){
echo '<img src="imagenes/4.jpg" alt="" width="40px" height="40px" title=" '.$color1.'" style="margin-right:10px; margin-left:10px;" />';
}
?>
</div>
Prueba asi! e investiga sobre la estructura de If en PHP