I want to make a screen effect like when you push a button, a dialog will appear into the center and the rest of the space will become darker with opacity.
A example will be like the Modal of Boostrap when you click its butoon.
http://twitter.github.com/bootstrap/javascript.html
My understand is to show an element we can simply use .dialog() or etc, the screen effect should be another function used inside of .dialog() or etc.
I want to know, how or what function they are using for this specific screen effect???? I will appreciate that I will have a script example. Thank you very much.
Basically, this is done by overlaying a
divon top of all of the current screen elements, and setting its background to black and its opacity to 50%-75%. Then on top of that, centering anotherdivthat has your “modal” content in it.I would recommend using a library like KendoUI, ExtJS, JQueryUI, etc., but they will all do something similar to the following quick and dirty demo: