jquery or javascript active element on foreground, lock background? -



jquery or javascript active element on foreground, lock background? -

i have layer presented logic var.

that layer hidden div - how create layer element can interacted on page when visible?

thanks!

update:

used total size div in background transparent gif - works in firefox, not ie - thoughts?

#overlay { background-image: url('../images/transparent.gif'); width:100%; height:100%; z-index:8999; display:none; margin-top: 0; margin-left:0; position:fixed; }

the basic approach set semi-transparent element on whole page, under modal window contains focus element. jquery doesn't have built in, can either create own using approach or utilize jquery plugin.

update:

here's fiddle based on comment discussion. i've tested , works in ie8, firefox 3.5.15, , chrome 12.0.742.112.

html:

<div class="overlay"></div> <div>test</div> <input/> <div class="modalwindow "> foo: <input/> </div>

css:

.overlay { opacity:.1; filter:alpha(opacity=10); background-color: black; width:100%; height:100%; z-index:8999; margin-top: 0; margin-left:0; position:fixed; } .modalwindow { z-index:9000; position: fixed; background-color: white; top: 20px; left: 20px; width: 200px; height: 100px; }

javascript jquery

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -