Foros del Web » Programando para Internet » Jquery »

Problema Galeria Bootstrap

Estas en el tema de Problema Galeria Bootstrap en el foro de Jquery en Foros del Web. Buenas no logro hacer que la galería funcione como se deberia, alguien que me indique porque....
  #1 (permalink)  
Antiguo 12/02/2016, 12:53
 
Fecha de Ingreso: enero-2016
Mensajes: 22
Antigüedad: 8 años, 2 meses
Puntos: 0
Problema Galeria Bootstrap

Buenas no logro hacer que la galería funcione como se deberia, alguien que me indique porque.
  #2 (permalink)  
Antiguo 12/02/2016, 12:55
 
Fecha de Ingreso: enero-2016
Mensajes: 22
Antigüedad: 8 años, 2 meses
Puntos: 0
Respuesta: Problema Galeria Bootstrap

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
<style>
.modal-dialog {width:600px;}
.thumbnail {margin-bottom:6px;}
</style>
<script type="text/javascript">
$('.thumbnail').click(function(){
$('.modal-body').empty();
var title = $(this).parent('a').attr("title");
$('.modal-title').html(title);
$($(this).parents('div').html()).appendTo('.modal-body');
$('#myModal').modal({show:true});
});
</script>
</head>

<body>
<div class="container">
<div class="row">
<h1>Bootstrap 3 Lightbox using Modal</h1>
<div class="row">
<div class="col-lg-3 col-sm-4 col-6"><a href="#" title="Image 1"><img src="img/r1.jpg" alt="Parkour" class="thumbnail img-responsive"></a></div>
<div class="col-lg-3 col-sm-4 col-6"><a href="#" title="Image 2"><img src="img/r2.jpg" alt="Parkour" class="thumbnail img-responsive"></a></div>
<div class="col-lg-3 col-sm-4 col-6"><a href="#" title="Image 3"><img src="img/r3.jpg" alt="Parkour" class="thumbnail img-responsive"></a></div>
<div class="col-lg-3 col-sm-4 col-6"><a href="#" title="Image 4"><img src="img/r4.jpg" alt="Parkour" class="thumbnail img-responsive"></a></div>
<div class="col-lg-3 col-sm-4 col-6"><a href="#" title="Image 5"><img src="img/r5.jpg" alt="Parkour" class="thumbnail img-responsive"></div>
<div class="col-lg-3 col-sm-4 col-6"><a href="#" title="Image 6"><img src="img/r6.jpg" alt="Parkour" class="thumbnail img-responsive"></a></a></div>
<div class="col-lg-3 col-sm-4 col-6"><a href="#" title="Image 8"><img src="img/r8.jpg" alt="Parkour" class="thumbnail img-responsive"></a></div>
<div class="col-lg-3 col-sm-4 col-6"><a href="#" title="Image 9"><img src="img/r9.jpg" alt="Parkour" class="thumbnail img-responsive"></a></div>
<div class="col-lg-3 col-sm-4 col-6"><a href="#" title="Image 10"><img src="img/r10.jpg" alt="Parkour" class="thumbnail img-responsive"></a></div>
<div class="col-lg-3 col-sm-4 col-6"><a href="#" title="Image 11"><img src="img/r11.jpg" alt="Parkour" class="thumbnail img-responsive"></a></div>
<div class="col-lg-3 col-sm-4 col-6"><a href="#" title="Image 12"><img src="img/r12.jpg" alt="Parkour" class="thumbnail img-responsive"></a></div>
<div class="col-lg-3 col-sm-4 col-6"><a href="#" title="Image 13"><img src="img/r13.jpg" alt="Parkour" class="thumbnail img-responsive"></a></div>
</div>
</div>
</div>
<div id="myModal" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h3 class="modal-title">Heading</h3>
</div>
<div class="modal-body">

</div>
<div class="modal-footer">
<button class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>


</body>
</html>

Etiquetas: bootstrap, galeria
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 01:12.