# Flash link to Lightbox 2 in a Wordpress site

**URL:** <https://forum.kirupa.com/t/flash-link-to-lightbox-2-in-a-wordpress-site/322470>\
**Category:** flash\
**Created:** [May 22, 2011, 3:47pm UTC](https://forum.kirupa.com/t/flash-link-to-lightbox-2-in-a-wordpress-site/322470 "2011-05-22T15:47:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yabai](https://avatars.discourse-cdn.com/v4/letter/y/958977/32.png) [@yabai](https://forum.kirupa.com/u/yabai)\
**Post date:** [May 22, 2011, 3:47pm UTC](https://forum.kirupa.com/t/flash-link-to-lightbox-2-in-a-wordpress-site/322470/1 "2011-05-22T15:47:34Z")

</div>

Hi,

I have a Wordpress site that uses Lightbox 2. I need to add a Flash banner that has two buttons in it that will call a Lightbox image.

I’ve tried adding the following script to the head of the html file;

\<script type=“text/javascript”\>  
function LightboxDelegate(url,caption) {  
var objLink = document.createElement(‘a’);  
objLink.setAttribute(‘href’,url);  
objLink.setAttribute(‘rel’,‘lightbox’);  
objLink.setAttribute(‘title’,caption);  
Lightbox.prototype.start(objLink);  
}  
\</script\>

and in the Flash file I am trying to call the image in Lightbox;

on(release) {  
getURL(“javascript:LightboxDelegate(‘[http://just-energy.org/wp-content/themes/justenergy/images/boa\_sponsor\_text.gif’,'lightbox21](http://just-energy.org/wp-content/themes/justenergy/images/boa_sponsor_text.gif','lightbox21)’)”)  
}

The image is at that path but when viewed in a browser I get the black Lightbox window appear but no image. It looks like it is working but just can’t find the image. I can’t see why this is.

Could anyone help find out what the issue is please? The url is [http://just-energy.org/](http://just-energy.org/)

Many thanks,  
Mark
