I'm trying to open a lightbox window (see here:
http://www.huddletogether.com/projects/lightbox/ for an example)
from one of the list items in the carousel. I've modified the
javascript that constructs the url:
var fmtItem = function(imgUrl, url, title) {
var innerHTML =
'<a rel="lightbox" title="' + title +
'" href="' +
url +
'"><img src="' +
imgUrl +
'" width="' +
302 +
'" height="' +
308 +
'"/><\/a>';
return innerHTML;
};
I've inserted the necessary css/scripts for lightbox. When I click
the link, the lightbox script does not execute, instead I get a
static image.
Is it possible to relate the href to a script after the page has
loaded (and the URL is constructed on the fly)?
Can you suggest alternatives for displaying the image in a lightbox
(or similar window)?
thanks -- carousel has been great for my portfolio!