Discussion:
Block link with lightbox
raw-m
2010-03-03 15:49:52 UTC
Permalink
I'm having a massive headache with this, please help!!

I have a number of divs, each containing an image that launches a lightbox
gallery. A text description is also within the div and underneath each image
describing what's going on (I don't want it as part of the gallery), but it
doesn't contain a link to the lightbox.

Each div (and everything in it) is needed to be the button that launches the
lightbox (ie, clicking the image or the text launches the gallery). How do I
do this? Getting each unique href and rel values (using
.find("a").attr("href").attr("rel")) for each link seems pretty straight
forward but I don't know what to do with them when I've got them!

Any help is much appreciated.
--
View this message in context: http://old.nabble.com/Block-link-with-lightbox-tp27758652s27240p27758652.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.
Nilesh Macwan
2010-03-03 16:01:28 UTC
Permalink
Hi

*My Understanding as per your email : *you what to pop-up light box on click
on anchor tag or on text. please correct me

*My Explanation : *give specific identification to each element like "div"
in terms of class, example if div is having image then give "myimgclass", if
div is containing text then give "mytextclass", this is an examples, so by
this you can perform each() function from jquery, please visit this link for
more help http://api.jquery.com/each/, and do rest of coding on that
function, more on this if you can upload ur problem on live, and let me have
a look on that, it will great to check on that.

Thanks
Nilesh J. Macwan
Post by raw-m
I'm having a massive headache with this, please help!!
I have a number of divs, each containing an image that launches a lightbox
gallery. A text description is also within the div and underneath each image
describing what's going on (I don't want it as part of the gallery), but it
doesn't contain a link to the lightbox.
Each div (and everything in it) is needed to be the button that launches the
lightbox (ie, clicking the image or the text launches the gallery). How do I
do this? Getting each unique href and rel values (using
.find("a").attr("href").attr("rel")) for each link seems pretty straight
forward but I don't know what to do with them when I've got them!
Any help is much appreciated.
--
http://old.nabble.com/Block-link-with-lightbox-tp27758652s27240p27758652.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.
--
Hi,



Thanks

Nilesh J. Macwan
Loading...