| Author |
Html glass pane
|
salvin francis
Ranch Hand
Joined: Jan 12, 2009
Posts: 900
|
|
Hi,
I want to make a glass-pane that disables the rest of my screen kind of like a lightbox.
There are plenty of scripts out there, but i didnt find any one sharing the source code or giving out the solutions, rather they insist on using thier own libraries...
here is what i attempted:
Code seems to work fine, however if you scroll down, you will discover that the rest of the page is still accessible in all browsers.
I guess that i could also take care of that by putting the entire page in a div and setting its overflow to auto with width and height as 100%,
but i dont think its a good solution,
Does any one have better ideas ?
|
I came, I saw, I set a new standard.
[Salvin.in]- The way websites should now be.
|
 |
salvin francis
Ranch Hand
Joined: Jan 12, 2009
Posts: 900
|
|
Well, got it to work finally,
Hope this benefits someone ....
|
 |
Gregg Bolinger
Sheriff
Joined: Jul 11, 2001
Posts: 15021
|
|
|
You're code looks like it might only work in IE. Is this the case?
|
My Blog | DZone Articles
|
 |
salvin francis
Ranch Hand
Joined: Jan 12, 2009
Posts: 900
|
|
Tested to work fine in
IE7, FF3.0,chrome5.0,safari4
I would really like to know if it renders fine on opera.
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 14853
|
|
The tab key is fun! Try it!
Eric
|
 |
salvin francis
Ranch Hand
Joined: Jan 12, 2009
Posts: 900
|
|
Damn you testers !!!
Hey but i tried pressing tab, it didnt focus the select box...
in IE and FF
good bug btw
guess i will have to run a loop to disable all elements when showning the glass plane
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 14853
|
|
No need to test, just common sense.
Eric
|
 |
salvin francis
Ranch Hand
Joined: Jan 12, 2009
Posts: 900
|
|
So, is it a bug ?
"works for me"
|
 |
 |
|
|
subject: Html glass pane
|
|
|