Ver Mensaje Individual
  #6 (permalink)  
Antiguo 29/08/2010, 11:08
Avatar de mayid
mayid
Colaborador
 
Fecha de Ingreso: marzo-2009
Ubicación: BsAs
Mensajes: 4.014
Antigüedad: 15 años, 1 mes
Puntos: 101
Respuesta: dimensionando elementos con jquery

Yo tengo esto:
Cita:
img.resized{cursor:pointer; width: 780px}
Cita:
$("img").each(function(i){

//only process the foreign ones
IMGsrc = $(this).attr("src");
if (IMGsrc.search("http") != -1)
{

// check the width of the image
if ($(this).width() > 780) {

$(this).addClass("resized"); // apply resized class

$(this).click(function(){
location.href = this.getAttribute("src");
});
}

}
});