# Adding the JS2.0 lightbox

**URL:** <https://forum.kirupa.com/t/adding-the-js2-0-lightbox/216960>\
**Category:** Uncategorized\
**Created:** [February 21, 2007, 11:31pm UTC](https://forum.kirupa.com/t/adding-the-js2-0-lightbox/216960 "2007-02-21T23:31:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![atocp](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@atocp](https://forum.kirupa.com/u/atocp)\
**Post date:** [February 21, 2007, 11:31pm UTC](https://forum.kirupa.com/t/adding-the-js2-0-lightbox/216960/1 "2007-02-21T23:31:07Z")

</div>

Hey there,

I’ve been creating a site for my photography in flash and decided to use the [Lightbox JS2.0 script](http://www.huddletogether.com/projects/lightbox2/)to show off some of my images, but I have hit a brick wall will regards to how to call a CSS style for an image from a CSS style sheet thats loaded into the HTML page.

If im viewing the image normally from a webpage i would write:  
\<a href=“images/image-1.jpg” [COLOR=“Red”]rel=“lightbox”[/COLOR] title=“my caption”\>image #1\</a\>

Does anyone know what AS i need to try to get the image to load using a specific style from the sheet. OR do I have to load the CSS into flash and call it directly from that? Bearing in mind that the Lightbox works through 3 Javascript files and 1 CSS file.  
Any help on getting past this hurdle would be greatly appreciated.

Thanks In Advance  
Atocp
