Ver Mensaje Individual
  #5 (permalink)  
Antiguo 30/06/2009, 16:29
easy
 
Fecha de Ingreso: diciembre-2008
Mensajes: 454
Antigüedad: 15 años, 5 meses
Puntos: 2
Respuesta: Tratamiento de Imagenes, como hacer que se vea de dos maneras

hice esto pero no me imprimer las imagenes
Código HTML:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin t&iacute;tulo</title>
<script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript" src="scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="lightbox.js"></script>
<link rel="stylesheet" href="lightbox.css" type="text/css" media="screen" />
</head>

<body>
<?
require_once('GDImageManipulation.class.php');
$filename="IMG_1234.jpg";

function recycle() {
    global $imageManipulation;
    global $filename;
    unset($imageManipulation);
    $imageManipulation = new GDImageManipulation();
    $imageManipulation->set_image_asFile($filename);
    return $imageManipulation;
} 

$imageManipulation = new GDImageManipulation();


$imageManipulation = recycle();
$imageManipulation->fit_height('100', true);
echo "<a href='";
echo $imageManipulation->get_inlineTag_png('jpg');
echo "' title='imagen 1' rel='lightbox[roadtrip]'><img src='";

$imageManipulation = recycle();
$imageManipulation->fit_height('600', true);
echo $imageManipulation->get_inlineTag_png('jpg');
echo "' alt='Plant 1' /></a>";

?>
<br /><br />
<a href="images/IMG_1072_2.jpg" title="imagen 1" rel="lightbox[roadtrip]"><img src="images/IMG_1072.jpg" alt="Plant 1" /></a>
</body>
</html> 
Ayudenme porfa