Ver Mensaje Individual
  #6 (permalink)  
Antiguo 02/04/2010, 07:54
xav1
 
Fecha de Ingreso: marzo-2010
Mensajes: 30
Antigüedad: 14 años, 2 meses
Puntos: 0
Respuesta: Propiedades de imagen

Código PHP:
<script>
function 
aa(imagen) {
var 
heightwidth
var alto document.getElementById(imagen).height;
var 
ancho document.getElementById(imagen).width;

height parseInt(alto/4);
width parseInt(ancho/4);

document.getElementById("imagen").style.height height "px";
document.getElementById("imagen").style.width width "px";

}
</script> 
Código PHP:
i=0
while not rs.eof 
if rs.fields("any")=request.QueryString("any") and request.QueryString("seccio")=rs.fields("seccio"then
i
=i+1
if celda=0 then

.....

<
a href="ver_album.asp?id=<%=rs.fields(0)%>"><img src="<%=rs.fields(2)%>" id="imagen_<%=i%>" onload="aa(this.id)" border="0"></a
Sigue sin funcionar :s me deja la imagen a tamaño real. ¿Alguna idea de pq?