Ver Mensaje Individual
  #4 (permalink)  
Antiguo 21/02/2008, 06:56
Avatar de Raulmmmm
Raulmmmm
 
Fecha de Ingreso: marzo-2007
Ubicación: En otro lugar que tú
Mensajes: 1.549
Antigüedad: 17 años, 1 mes
Puntos: 36
Re: Cómo lograr que una foto pequeña aparezca en un tamaño mayor haciéndole clik.

Pues lo de la imagen sería así:
Código HTML:
<script>
function agrandar(){
document.getElementById('ejemplo').style.width='800px';
document.getElementById('ejemplo').style.height='400px';
}
</script>
<img src="C:\Users\Public\myweb\pictures\DSC00863.jpg" id="ejemplo" onclick="agrandar()" /> 
Y lo otro, más o menos así:
Código HTML:
<div>
<img src="tuimagen.jpg" style="float: left; width: 20%;" />
<div style="float: left; width: 60%;"></div>
<img src="tuimagen.jpg" style="float: left; width: 20%;" />
<div style="clear: both;"></div>
</div>