Add custom buttons to fancybox

1,988 views
Skip to first unread message

Ninad

unread,
Apr 29, 2010, 5:46:55 PM4/29/10
to fancybox
Hi,

I'm displaying an iframe inside of the fancybox. I want to add a
button to the left of the close button which will do an 'open in new
window' functionality, i.e. open the iframe in a new window.

I would like to keep it to the left of the close button. How would I
do that?

Thanks,
Ninad

--
You received this message because you are subscribed to the Google Groups "fancybox" group.
To post to this group, send email to fanc...@googlegroups.com.
To unsubscribe from this group, send email to fancybox+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/fancybox?hl=en.

Ninad

unread,
Apr 30, 2010, 5:03:14 PM4/30/10
to fancybox
There isn't a way to do this in fancybox, I looked. But it was easy
enough to change the code to do this. I'm almost finished with it,
will post it soon.

Janis

unread,
May 1, 2010, 3:43:00 AM5/1/10
to fancybox
Well, you can place anything you want inside title area.

Janis

Ninad

unread,
May 12, 2010, 4:46:56 PM5/12/10
to fancybox
Here is the code. Requires you to change the jquery.fancybox-1.3.1.css
and jquery-fancybox.1.3.1.js, which I don't like :(

http://nsdiv.blogspot.com/2010/05/adding-custom-buttons-to-jquerys.html
Reply all
Reply to author
Forward
0 new messages