Hi there,
I’m working on a project where I have a gallery of images. When the user clicks on one I want it to be displayed ontop of the current screen similar to lightbox.
So what I have done is put a div the size of the screen with an opacity of 60% and a z-index of 1001, display:none. When you click on an image this fades in.
Fine. Now I need to load the image into another div which is centered in the middle of the screen. The problem is that I’m not sure how to get the url for the selected image.
$(this).get(url)…?
Then I need to put that somehow into the div content…
function(){
(‘#frame’).load(img with got url, function(){
(‘#frame’).fadeIn(1000);
});
});
Err… is that even possible, or is .get(url) purely for the page url? And either way, where is the url stored once it’s got? How do I use that information in a further function.
Thanks very much for your help,
Mike