Forums
This topic is locked
LightBox Flash Help
07 Jun 2009 13:41:16 Dan SMith posted:
Ok i've added this between<head> and </head>
<script type="text/javascript">
function SWFDelegate(url,width,height,caption) {
var objLink = document.createElement('a');
objLink.setAttribute('href',url);
objLink.setAttribute('rel','lightbox');
objLink.setAttribute('title',caption);
if(typeof width != 'undefined') {
objLink.setAttribute('width',width);
}
if(typeof height != 'undefined') {
objLink.setAttribute('height',height);
}
Lightbox.prototype.start(objLink);
}
</script>
</head>and on my button image on Adobe Flash CS3 i have.
on( release )
{
getURL("javascript:SWFDelegate('images/nelson.png','480','640','Septik')");
}The picture shows the clickable hand but it doesn't show my picture any bigger, when i click it nothing happens, please help.