Sometimes you want to open dialogs or info boxes for your users
directly from your JavaScript code. In this case, you don't need any
trigger element and the setup is slightly different. This page loads
the overlay upon page load but you can also do it from your
JavaScript anytime you like.
Facebox
This dialog is opened programmatically when the page
loads. There is no need for a trigger element.
To close, click the Close button or hit the ESC key.
This time our installation is different from the earlier
examples. We select the overlay element in the jQuery
selector and not the trigger element. And then we
simply enable the load configuration variable.
Note: if you are want to use the apple
effect upon page load you should look at
the apple effect
documentation for more information about this.
Facebook look and feel
If you are interested in the Facebook look and feel the trick is to
use a RGBA color on the border. Here is the CSS we are using:
The new jQuery Tools book by Alex Libby explores the library in a
precise and structured fashion. If you are getting started on jQuery Tools or
looking for better ways to use the library, this book will be your ally.