Menu
I’m trying to find exactly how to load an image through lightbox with just the the javascript lightbox functions. I’m using lightbox 2 (from [url]http://www.huddletogether.com/projects/lightbox2/#download
the most I’ve got right now is an actionscript function sending the url and title to a javascript function called “dude” to try to load the image, but it’s not working.
function dude(url,title) {
var imgLink = document.createElement(‘a’);
imgLink.setAttribute(“href”,url);
imgLink.setAttribute(“rel”,”lightbox”);
imgLink.setAttribute(“title”,title);
Lightbox.prototype.start(imgLink);
}