/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function cargarImagen( $dir, $img, $alt='', $extraDentro='', $extra = '' ){ $imagen = ''; $imagen = '<img src="'.$dir.$img.'" width="'.$size[0].'" height="'.$size[1].'" border=0 alt="'. ( empty( $alt ) ? $img : $alt ).'" '.$extraDentro.'>' . $extra; } return $imagen; }