Ver Mensaje Individual
  #6 (permalink)  
Antiguo 22/05/2012, 21:16
Avatar de NSD
NSD
Colaborador
 
Fecha de Ingreso: mayo-2012
Ubicación: Somewhere
Mensajes: 1.332
Antigüedad: 12 años, 9 meses
Puntos: 320
Respuesta: Ventana nueva dentro de la pagina

buenas, sin duda ajax y lightbox es una gran solucion pero dependeras de que el visitante lo tenga activado e instalado, (lo mejor en mi opinion) pero como vi que todas las respuestas fueron de este tipo te planteo una opcion distinta, animar tus imagenes con CSS.
puedes agregar animaciones y textos descriptivos a las imagenes con css,
crea un documento nombre.html y pega dentro este codigo:

Código HTML:
Ver original
  1. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  2.  
  3. .imagepluscontainer{ /* main image container */
  4. position: relative;
  5. z-index: 1;
  6. }
  7.  
  8. .imagepluscontainer img{ /* CSS for image within container */
  9. position: relative;
  10. z-index: 2;
  11. -moz-transition: all 0.5s ease; /* Enable CSS3 transition on all props */
  12. -webkit-transition: all 0.5s ease-in-out;
  13. -o-transition: all 0.5s ease-in-out;
  14. -ms-transition: all 0.5s ease-in-out;
  15. transition: all 0.5s ease-in-out;
  16. }
  17.  
  18. .imagepluscontainer:hover img{ /* CSS for image when mouse hovers over main container */
  19. -moz-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
  20. -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
  21. box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
  22. -moz-transform: scale(1.05, 1.05);
  23. -webkit-transform: scale(1.05, 1.05);
  24. -ms-transform: scale(1.05, 1.05);
  25. -o-transform: scale(1.05, 1.05);
  26. transform: scale(1.05, 1.05);
  27. }
  28.  
  29. .imagepluscontainer div.desc{ /* CSS for desc div of each image. */
  30. position: absolute;
  31. width: 90%;
  32. z-index: 1; /* Set z-index to that less than image's, so it's hidden beneath it */
  33. bottom: 0; /* Default position of desc div is bottom of container, setting it up to slide down */
  34. left: 5px;
  35. padding: 8px;
  36. background: rgba(0, 0, 0, 0.8); /* black bg with 80% opacity */
  37. color: white;
  38. -moz-border-radius: 0 0 8px 8px; /* CSS3 rounded borders */
  39. -webkit-border-radius: 0 0 8px 8px;
  40. border-radius: 0 0 8px 8px;
  41. opacity: 0; /* Set initial opacity to 0 */
  42. -moz-box-shadow: 0 0 6px rgba(0, 0, 0, 0.8); /* CSS3 shadows */
  43. -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
  44. box-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
  45. -moz-transition: all 0.5s ease 0.5s; /* Enable CSS3 transition on desc div. Final 0.5s value is the delay before animation starts */
  46. -webkit-transition: all 0.5s ease 0.5s;
  47. -o-transition: all 0.5s ease 0.5s;
  48. -ms-transition: all 0.5s ease 0.5s;
  49. transition: all 0.5s ease 0.5s;
  50. }
  51.  
  52. .imagepluscontainer div.desc a{
  53. color: white;
  54. }
  55.  
  56. .imagepluscontainer:hover div.desc{ /* CSS for desc div when mouse hovers over main container */
  57. -moz-transform: translate(0, 100%);
  58. -webkit-transform: translate(0, 100%);
  59. -ms-transform: translate(0, 100%);
  60. -o-transform: translate(0, 100%);
  61. transform: translate(0, 100%);
  62. opacity:1; /* Reveal desc DIV fully */
  63. }
  64.  
  65. /*### Below CSS when applied to desc DIV slides the desc div from the right edge of the image ###*/
  66.  
  67. .imagepluscontainer div.rightslide{
  68. width: 150px; /* reset from default */
  69. top:15px;
  70. right:0;
  71. left:auto;  /* reset from default */
  72. bottom:auto;  /* reset from default */
  73. padding-left:15px;
  74. -moz-border-radius: 0 8px 8px 0;
  75. -webkit-border-radius: 0 8px 8px 0;
  76. border-radius: 0 8px 8px 0;
  77. }
  78.  
  79. .imagepluscontainer:hover div.rightslide{
  80. -moz-transform: translate(100%, 0);
  81. -webkit-transform: translate(100%, 0);
  82. -ms-transform: translate(100%, 0);
  83. -o-transform: translate(100%, 0);
  84. transform: translate(100%, 0);
  85. }
  86.  
  87. /*### Below CSS when applied to desc DIV slides the desc div from the left edge of the image ###*/
  88.  
  89. .imagepluscontainer div.leftslide{
  90. width: 150px;  /* reset from default */
  91. top:15px;
  92. left:0;
  93. bottom:auto;  /* reset from default */
  94. padding-left:15px;
  95. -moz-border-radius: 8px 0 0 8px;
  96. -webkit-border-radius: 8px 0 0 8px;
  97. border-radius: 8px 0 0 8px;
  98. }
  99.  
  100. .imagepluscontainer:hover div.leftslide{
  101. -moz-transform: translate(-100%, 0);
  102. -webkit-transform: translate(-100%, 0);
  103. -ms-transform: translate(-100%, 0);
  104. -o-transform: translate(-100%, 0);
  105. transform:translate(-100%, 0);
  106. }
  107.  
  108. /*### Below CSS when applied to desc DIV slides the desc div from the top edge of the image ###*/
  109.  
  110. .imagepluscontainer div.upslide{
  111. top:0;
  112. bottom:auto;  /* reset from default */
  113. padding-bottom:10px;
  114. -moz-border-radius: 8px 8px 0 0;
  115. -webkit-border-radius: 8px 8px 0 0;
  116. border-radius: 8px 8px 0 0;
  117. }
  118.  
  119. .imagepluscontainer:hover div.upslide{
  120. -moz-transform: translate(0, -100%);
  121. -webkit-transform: translate(0, -100%);
  122. -ms-transform: translate(0, -100%);
  123. -o-transform: translate(0, -100%);
  124. transform:translate(0, -100%);
  125. }
  126.  
  127. </head>
  128.  
  129. <div class="imagepluscontainer" style="width:263px; height:199px; z-index:2">
  130.     <img src="http://1.bp.blogspot.com/-q_yoK4Rm104/TijHERnER6I/AAAAAAAAAR0/srjbsBCsKNA/s1600/rio-de-selva.jpeg" width="200px" />
  131.     <div class="desc">
  132.         Aca un texto descriptivo de la imagen que acabas de publicar :)
  133.     </div>
  134. </div>
  135.  
  136. <br />
  137.  
  138. <div class="imagepluscontainer" style="width:263px; height:199px; left:350px">
  139.     <img src="http://1.bp.blogspot.com/-q_yoK4Rm104/TijHERnER6I/AAAAAAAAAR0/srjbsBCsKNA/s1600/rio-de-selva.jpeg" width="200px" />
  140.     <div class="desc">
  141.         Aca un texto descriptivo de la imagen que acabas de publicar :)
  142.     </div>
  143. </div>
  144.  
  145. <br />
  146.  
  147. <div class="imagepluscontainer" style="width:263px; height:199px">
  148.     <img src="http://1.bp.blogspot.com/-q_yoK4Rm104/TijHERnER6I/AAAAAAAAAR0/srjbsBCsKNA/s1600/rio-de-selva.jpeg" width="200px" />
  149.     <div class="desc">
  150.         Aca un texto descriptivo de la imagen que acabas de publicar :)
  151.     </div>
  152. </div>
  153.  
  154. <br />
  155.  
  156. <div class="imagepluscontainer" style="width:263px; height:199px; left:350px">
  157.     <img src="http://1.bp.blogspot.com/-q_yoK4Rm104/TijHERnER6I/AAAAAAAAAR0/srjbsBCsKNA/s1600/rio-de-selva.jpeg" width="200px" />
  158.     <div class="desc">
  159.         Aca un texto descriptivo de la imagen que acabas de publicar :)
  160.     </div>
  161. </div>
  162. </body>
  163. </html>

dime que te parece el resultado jeje es CSS3 y es copatible con muchos navegadores, es mucho mas simple que usar java mucho mas claro y eficiente la unica "contra" es que no es tan bonito como java.
espero que te guste mi aporte y si no te sirve para esto talvez puedas usarlo para otra cosa en el futuro.
saludos!