javascript - how to disable whole body other than a div -



i have div creating through ajax, disable whole body once div popup , until, unless div closed.
is possible in jquery. please let me know suggestion

thanks,
praveen jayapal

you want remove, or hide body? technically shouldn't possible because need append div body in order see it. create 'mask' layer covers whole body, use z-index div display on top of body.

something like:

http://www.queness.com/post/77/simple-jquery-modal-window-tutorial

might help!

to hide page need change line 21:

$('#mask').fadeto("slow",0.8);

in javascript to:

$('#mask').fadeto("slow",1);

and color of mask on line 7 of css can changed whatever want too:

background-color: #000;


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -