So I am attempting to combine two image galleries, Galleria and Lightbox. The way it is supposed to work is that Lightbox will read the href from the anchor tag and Galleria will read the src from the image tag in the following code:
<a href="./public/images/gallery/2.JPG">
<img class="replaced" src="./public/images/gallery/2.JPG"/>
</a>
I am attempting to pull the attribute value of the src out and use it as the value of the href. Just for now, once I get this bit working I have to re-work the code.
This is how I am pulling the attribute value out
var imageSrc = image.attr('src');
Right now I have tested it in FF2,FF3 and neither of them are reading the value. In Chrome and IE it reads the value. What I was thinking is that the image is created in jQuery so perhaps Firefox is moving too quickly reading through and the jQuery hasn't had time to create the image yet?
Any thoughts?
Thanks,
Levi