# Problems with flash lightbox

**URL:** <https://forum.kirupa.com/t/problems-with-flash-lightbox/313683>\
**Category:** Uncategorized\
**Created:** [September 7, 2010, 8:57am UTC](https://forum.kirupa.com/t/problems-with-flash-lightbox/313683 "2010-09-07T08:57:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hema77](https://avatars.discourse-cdn.com/v4/letter/h/49beb7/32.png) [@hema77](https://forum.kirupa.com/u/hema77)\
**Post date:** [September 7, 2010, 8:57am UTC](https://forum.kirupa.com/t/problems-with-flash-lightbox/313683/1 "2010-09-07T08:57:58Z")

</div>

Hi! Managed to insert a photo gallery using lightbox…however, would like to make some changes:

1. Fixed previous and next buttons, been playing around with the code, with no succesfull result.

2. I have a group of photos, and if I want to enlarge the one I click, I cannot. Whatever photo I click, always the first one of the group appears. Please, does anybody know how I can solve this?

This is the code I have in my html file:

```auto
 
 
<head>
 <link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
 
 <script src="js/prototype.js" type="text/javascript"></script>
 <script src="js/scriptaculous.js?load=effects" type="text/javascript"></script>
 <script src="js/lightbox.js" type="text/javascript"></script>
 
<script language="JavaScript">
  function openLightbox(url,group){
  var objLink = document.createElement('a');
  objLink.setAttribute('href',url);
  objLink.setAttribute('rel','lightbox['+group+']');
  objLink.setAttribute('title','caption');
  Lightbox.prototype.start(objLink);
  }
 </script>
 
</head>
 
<body>
<a href="images/image-1.jpg" rel="lightbox[roadtrip]" title="Tarta Nupcial" id="roadtripImage1"></a>
  <a href="images/image-2.jpg" rel="lightbox[roadtrip]" title="Tarta Nupcial" id="roadtripImage2"></a>
  <a href="images/image-3.jpg" rel="lightbox[roadtrip]" title="Tarta Nupcial" id="roadtripImage2"></a>
</body

```
