Facebox 1.2 Released

479 views
Skip to first unread message

Chris Wanstrath

unread,
May 5, 2008, 2:48:44 PM5/5/08
to fac...@googlegroups.com
Facebox 1.2 has been released over at http://famspam.com/facebox/

= Overlay

An overlay is now automatically inserted when the Facebox is opened.
It is, by default, invisible. To increase the opacity of the overlay
(in order to produce a grayed out background effect), use the
'opacity' setting:

$.facebox.opacity = 0.5


You can disable the overlay with the 'overlay' setting:

$.facebox.overlay = false

Clicking on the overlay (or anywhere outside the Facebox) will now
close it. This brings the total ways to close the Facebox to three:
clicking outside the Facebox, clicking on the 'close' button, and
hitting 'escape.'

= Width

The position of the Facebox is now determined dynamically, based on
the width of the content.

= Events

You can now better hook into Facebox's lifecycle by using the following events:

init.facebox
loading.facebox
beforeReveal.facebox
reveal.facebox (aliased as 'afterReveal.facebox')
close.facebox

Simply bind a function to any of these hooks:

$(document).bind('reveal.facebox', function() {
...stuff to do after the facebox and contents are revealed...
})


= Settings

All two word settings now use the more Javascriptish camelCase
convention over the under_bars. The loading_image, close_image, and
image_types settings are now renamed as loadingImage, closeImage, and
imageTypes. The old ones still work but are deprecated.


= CSS Fixes

There have been a number of CSS fixes for stuff like Blueprint and YUI
CSS. Check the changelog for more into.

= Source Control

If you would like to contribute or follow development, the official
repository is located on GitHub: http://github.com/defunkt/facebox

= Full Changelog

http://github.com/defunkt/facebox/commits/v1.2

--
Chris Wanstrath
http://github.com/defunkt

Simon Tokumine

unread,
May 7, 2008, 11:43:35 AM5/7/08
to facebox
Hey Chris, top plugin.

Either I've just had a stroke or the tips for the overlay should be:

$.facebox.settings.opacity = 0.5
$.facebox.settings.overlay = false

(also, thanks so much for github)

Si


On May 5, 7:48 pm, "Chris Wanstrath" <ch...@ozmm.org> wrote:
> Facebox 1.2 has been released over athttp://famspam.com/facebox/

Chris Wanstrath

unread,
May 7, 2008, 2:58:37 PM5/7/08
to fac...@googlegroups.com
Thanks Simon, mistake on my part. All settings do indeed live under
$.facebox.settings

- Chris

raknin

unread,
May 27, 2008, 6:23:47 AM5/27/08
to facebox
Hi

can we make the facebox to block the entire screen is such a way that
only the close button will close it? and what is behind is truly
blocked i.e. clciking on it will not do anything?
Reply all
Reply to author
Forward
0 new messages