Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to darken a DIV surrounding using JQuery (lightbox-like, but no pop-up)?

I want the user to focus on a part of the screen at a given time. The idea is to fade everything on the Web page but the required DIV, so the user will be invited to work in this area.

The effect I am looking for looks like a lot a lightbox, except there is no pop up, and no content is loaded, the only changing thing is the look and feels (and the reponse to a clic, of course).

I thought inline lightbox would be the anwser, but it's not.

I'm working with JQuery, although any solution is appreciated, plugins, hand crafted snippets, hugs, goat sacrifices, whatever...

like image 847
e-satis Avatar asked Oct 03 '09 19:10

e-satis


4 Answers

As luck would have it, I stumbled across this the other day:

http://flowplayer.org/tools/demos/toolbox/expose/index.html

Looks like it might be the effect you are after.

like image 96
Mark Bell Avatar answered Nov 19 '22 11:11

Mark Bell


Take a look at jQuery Tools' expose

like image 44
code_burgar Avatar answered Nov 19 '22 13:11

code_burgar


The above links are broken now, here's the new one if anyone finds this: http://jquerytools.org/documentation/toolbox/expose.html

like image 27
GMA Avatar answered Nov 19 '22 12:11

GMA


If you want interaction with the rest of the page blocked, check out the blockUI plugin.

like image 1
ceejayoz Avatar answered Nov 19 '22 13:11

ceejayoz