implementacion de carga dinamica de imagenes con lazy loading

This commit is contained in:
humano 2017-10-30 11:04:27 -05:00
parent e0c74579b4
commit 4ffa9517ff

View File

@ -11061,7 +11061,7 @@ if (mysqli_num_rows($sql)!='0'){
if($imagen[3] != null AND $tipo !='titulos') { if($imagen[3] != null AND $tipo !='titulos') {
$array[image]=$imagen; $array[image]=$imagen;
$imagen_icon="secure/?file=150/$imagen"; $imagen_icon="secure/?file=150/$imagen";
$imagen= "<img class='thumbnail' data-src='images/secure/?file=150/$imagen' src='images/secure/?file=150/$imagen' alt='$imagen' style='max-width:100px;' title='$imagen'>"; $imagen= "<img class='thumbnail lazy' data-src='images/secure/?file=150/$imagen' src='images/secure/?file=150/$imagen' alt='$imagen' style='max-width:100px;' title='$imagen'>";
$td .= "<td class='planilla_$row[id_campo]' >$imagen</td>"; $td .= "<td class='planilla_$row[id_campo]' >$imagen</td>";
}else {$imagen='';} }else {$imagen='';}
@ -11120,7 +11120,7 @@ $td .= "<td class='planilla_$row[id_campo]' >$imagen</td>";
$url_pin =urlencode("$_SESSION[site]milfs/images/iconos/pin.png"); $url_pin =urlencode("$_SESSION[site]milfs/images/iconos/pin.png");
//http://staticmap.openstreetmap.de/staticmap.php?center=40.714728,-73.998672&zoom=14&size=865x512&maptype=mapnik //http://staticmap.openstreetmap.de/staticmap.php?center=40.714728,-73.998672&zoom=14&size=865x512&maptype=mapnik
$contenido = " $contenido = "
<img class='img-round' src='http://staticmap.openstreetmap.de/staticmap.php?center=$lon,$lat&zoom=$zoom&size=250x100&maptype=mapnik&markers=$lon,$lat,red-pushpin' > <img class='lazy img-round' data-src='http://staticmap.openstreetmap.de/staticmap.php?center=$lon,$lat&zoom=$zoom&size=250x100&maptype=mapnik&markers=$lon,$lat,red-pushpin' >
"; ";
} else { $contenido ='';} } else { $contenido ='';}