Just call Overlay.create, passing it a “builder” function that
returns the element to put on top of the overlay.
Your builder function is passed a function that will cancel the
overlay. You can use it like so:
Clicking the “finish” link built above will fade the overlay and
allow the user to continue with the task at hand.
You also have access to the background overlay element. This snippet
will make the overlay opaque:
- effects.js (from script.aculo.us)
© Copyright 2008 Pat Nakajima. All Rights Reserved.