Published Facebox with Caption – @github/spritle

Balaji D Loganathan

23 sec read

We wanted to add dynamic caption to the facebox popup, so we simply extended the original source to suite our requirements.
Now, if you supply title attribute with the a tag, it will show that as a caption
&lt a href=”somelink.html” title=”Facebox Title” rel=”facebox”>Show<a>
We published the implementation at http://github.com/spritle/facebox

Here is the sample screenshot of the same.
facebox with caption
All I did is
1. Modified the facebox.js as shown in below screen
2. Modified the facebox.css to use new background screen for the transparent top border.
facebox-caption
If you know some other smart-short way, please post it as a comment

Related posts:

Leave a Reply

Your email address will not be published. Required fields are marked *