Ver Mensaje Individual
  #23 (permalink)  
Antiguo 16/04/2009, 15:40
Avatar de hoberwilly
hoberwilly
 
Fecha de Ingreso: julio-2008
Ubicación: Lima - Perú
Mensajes: 769
Antigüedad: 15 años, 10 meses
Puntos: 2
Respuesta: Centrado Vertical...efecto lightbox

Hola amigos, este es mi index:
Código php:
Ver original
  1. <?php
  2. include("conec.php");
  3. $link=conectarse();
  4. $pagina = "";
  5. if(isset($_GET['p'])){
  6.     $pagina = $_GET['p'];
  7. }
  8. ?>
  9. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  10. <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="es">
  11. <head>
  12. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  13. <meta name="keywords" content="tienda virtual de calzado damas caballeros niños niñas" />
  14. <meta name="description" content="Tienda Virtual de Venta de Calzados" />
  15. <title>:: Tiendas Nando :: Tienda Virtual de Venta de Calzados</title>
  16. <link href="css/catalogo.css" rel="stylesheet" type="text/css">
  17. <link href="css/lightbox.css" rel="stylesheet" type="text/css" media="screen" />
  18. <script src="js/prototype.js" type="text/javascript"></script>
  19. <script src="js/scriptaculous.js?load=effects,builder" type="text/javascript"></script>
  20. <script src="js/lightbox.js" type="text/javascript"></script>
  21. <script src="js/catalogo.js" type="text/javascript"></script>
  22. </head>
  23. <body>
  24. <?php include("top.php"); ?>
  25. <table>
  26. <tr>
  27.  <td><?php include("menuIzquierdo.php"); ?></td>
  28.  <td></td>
  29.  <td>
  30.  <?php
  31.     if($pagina==1){
  32.         include("pagina1.php");
  33.     }elseif($pagina==2){
  34.         include("pagina2.php");
  35.     }else{
  36.         include("#.php");
  37.     }
  38.  ?>
  39.  </td>
  40. </tr>
  41. </table>
  42. <br>
  43. <hr shade>
  44. <?php include("pie.php"); ?>
  45. </body>
  46. </html>
  47. <?php mysql_close($link); ?>
Dentro de una hoja del include (ojo que ya esta solucionado los temas dtd, repeticiones, etc) llamo el lb:
Código php:
Ver original
  1. <?php echo "<a href=\"verLightbox.php?cod=".$row['id']."\" rel=\"lightbox\" title=\"".$desc."\">Ampliar Imagen</a>"; ?>
///ahh un dato el campo de la descripcion del producto es un textarea////
Este el codigo verLb.php
Código php:
Ver original
  1. <?php
  2. if(isset($_GET['cod']))
  3. {
  4.   include('conec.php');
  5.   $link=conectarse();
  6.   $sql = "SELECT foto FROM tabla WHERE id='".$_GET['cod']."'";
  7.   $consulta = mysql_query($sql,$link);
  8.   $imagen = mysql_result($consulta,0,"foto");
  9.   Header ("Content-type: image/jpeg");
  10.   $img = imagecreatefromstring($imagen);
  11.   $picsize = 500;
  12.   $new_w = imagesx($img);
  13.   $new_h = imagesy($img);
  14.   $aspect_ratio = $new_h / $new_w;
  15.   $new_w = $picsize;
  16.   $new_h = abs($new_w * $aspect_ratio);
  17.   $dst_img = ImageCreateTrueColor($new_w,$new_h);
  18.   imagecopyresampled($dst_img,$img,0,0,0,0,$new_w,$new_h,imagesx($img),imagesy($img));
  19.   imagejpeg($dst_img,'',100);
  20.   imagedestroy($imagen);
  21. }
  22. ?>
Este es el css lb:
Código php:
Ver original
  1. #lightbox{ 
  2.     position: absolute;
  3.     left: 0;
  4.     width: 100&#37;;
  5.     z-index: 100;
  6.     text-align: center;
  7.     line-height: 0;
  8. }
  9. #lightbox img{
  10.     width: auto;
  11.     height: auto;
  12. }
  13. #lightbox a img{
  14.     border: none;
  15. }
  16.  
  17. #outerImageContainer{
  18.     position: relative;
  19.     background-color: #fff;
  20.     width: 250px;
  21.     height: 250px;
  22.     margin: 0 auto;
  23. }
  24. #imageContainer{
  25.     padding: 10px;
  26. } /*margen de la imagen*/
  27.  
  28. #loading{
  29.     position: absolute;
  30.     top: 40%;
  31.     left: 0%;
  32.     height: 25%;
  33.     width: 100%;
  34.     text-align: center;
  35.     line-height: 0;
  36. }
  37. #hoverNav{
  38.     position: absolute;
  39.     top: 0;
  40.     left: 0;
  41.     height: 100%;
  42.     width: 100%;
  43.     z-index: 10;
  44. }
  45. #imageContainer>#hoverNav{
  46.     left: 0;
  47. }
  48. #hoverNav a{
  49.     outline: none;
  50. }
  51.  
  52. #prevLink, #nextLink{
  53.     width: 49%;
  54.     height: 100%;
  55.     background-image: url(data:image/gif;base64,AAAA); /* Trick IE into showing hover */
  56.     display: block;
  57. }
  58. #prevLink {
  59.     left: 0;
  60.     float: left;
  61. }
  62. #nextLink {
  63.     right: 0;
  64.     float: right;
  65. }
  66. #prevLink:hover, #prevLink:visited:hover {
  67.     background: url(../images/prevlabel.gif) left 15% no-repeat;
  68. }
  69. #nextLink:hover, #nextLink:visited:hover {
  70.     background: url(../images/nextlabel.gif) right 15% no-repeat;
  71. }
  72.  
  73. #imageDataContainer{
  74.     font: 10px Verdana, Helvetica, sans-serif;
  75.     background-color: #fff;
  76.     margin: 0 auto;
  77.     line-height: 1.4em;
  78.     overflow: auto;
  79.     width: 100% ;
  80. }
  81.  
  82. #imageData{
  83.     padding:0 10px;
  84.     color: #666;
  85. }
  86. #imageData #imageDetails{
  87.     width: 70%;
  88.     float: left;
  89.     text-align: left;
  90. }  
  91. #imageData #caption{
  92.     font-weight: bold; 
  93. }
  94. #imageData #numberDisplay{
  95.     display: block;
  96.     clear: left;
  97.     padding-bottom: 1.0em; 
  98. }          
  99. #imageData #bottomNavClose{
  100.     width: 66px;
  101.     float: right;  
  102.     padding-bottom: 0.7em;
  103.     outline: none;
  104. }      
  105.  
  106. #overlay{
  107.     position: absolute;
  108.     top: 0;
  109.     left: 0;
  110.     z-index: 90;
  111.     width: 100%;
  112.     height: 500px;
  113.     background-color: #000;
  114. }
Se probo con y sin las lineas del 9 al 12...y sigue con estos scroll en la parte inferior del EFECTO LIGHTBOX???
Que debo hacer???

Gracias de antemano,