Ver Mensaje Individual
  #10 (permalink)  
Antiguo 14/07/2009, 20:29
thezzin
 
Fecha de Ingreso: septiembre-2008
Mensajes: 350
Antigüedad: 15 años, 7 meses
Puntos: 31
Respuesta: Imagen como boton

vi tu tema en php y dices que quieres usar php
aquí te dejo un código parecido al que te dejo el usuario New

el problema es que dices que tienes un file en Flash
si es así tendrás que usar un código php diferente.
porque este código solo lo podes usar en una pagina php/html
abajo el código.

Código PHP:
<?php
$ImagenDeLaDB 
'images/imagen.jpg';
?>
<table width="537" border="1">
  <tr>
    <td width="233"><a href="<?php echo $_SERVER['PHP_SELF']."?img=$ImagenDeLaDB";?>"><img src="<?php echo $ImagenDeLaDB;?>" width="194" height="152"></a></td>
    <td width="141">Imagen 2 B</td>
    <td width="141">Imagen 2 C</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><?php $sel $_SERVER['PHP_SELF'];
if(isset(
$_GET['img'])){
//una ves que se ha hecho click en la imagen la muestras en tamaño grande sin el, width ni el height
echo "<a href=\"$sel\" title=\"Click Aqui Para Cerrar\">Click aqui Para Cerrar<br /><br />"'<img src="'.$_GET['img'].'"></a>';
}
?></td>
    <td>Imagen Grande 2 B</td>
    <td>Imagen Grande 2 B</td>
  </tr>
</table>
Ver Ejemplo http://www.eigts.com/doc.php
__________________
╬-----╬
║☺₧☻║
╬-----╬