PDA

View Full Version : how to put a link in a fancybox title


walkamongus
01-15-2010, 07:10 PM
Hi everybody, I seem to be stuck as to how to put a link inside a fancybox title, so that the caption beneath the image will display said link. Any help on this will be muy appreciated!

WotNow
01-16-2010, 08:14 AM
Can you show us what you mean? Otherwise I guess you are asking how to style the link?

Corrosive
01-16-2010, 08:53 AM
Hi WotNow Go to the fancybox website and look at the demos. You'll see what he means. I looked but have no idea how it should be done.

walkamongus
01-16-2010, 09:07 AM
i think it is the same as adding a link in any link title attribute (guess). I have no idea as to how to go about it either. i want to do it for my site, so that people can preview a template as an image through fancybox, than choose to demo the template via the link. im lost on it though, if no one here knows i may just rethink my plan for it :/

Corrosive
01-16-2010, 09:15 AM
I take it you have tried just putting a regular href link in the title? Not that I'm expecting that to work mind you...but to cover all bases.

gentleone
01-16-2010, 09:56 AM
As far as can see then it should be possible, because Fancybox parses the title attribute as plain HTML. I did have a look into fancybox.js, but I'm not sure yet where to customize the function that puts the title attribute as a caption. Did you ask already at Fancybox Google Groups?

walkamongus
01-16-2010, 04:38 PM
I've tried a regular href link, it seems to display it like regular text. I wasnt aware of the google group, thanks, Ill go post over there and update if i find anything. :grin:

walkamongus
01-20-2010, 11:19 PM
Ok, heres the solution if anyone is interested...

http://groups.google.com/group/fancybox/browse_thread/thread/85e76a5ddc4a7980/14721b51e6afac44?lnk=gst&q=link+in+image+title#14721b51e6afac44

Corrosive
01-21-2010, 07:00 AM
Nice one. Looks good. I'm not convinced that replacing the title with a link is technically 'good practice' but...oh well :)