aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Html glass pane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Html glass pane" Watch "Html glass pane" New topic
Author

Html glass pane

salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 928

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 ?


My Website: [Salvin.in] Cool your mind:[Salvin.in/painting] My Sally:[Salvin.in/sally]
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 928

Well, got it to work finally,



Hope this benefits someone ....
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

You're code looks like it might only work in IE. Is this the case?


GenRocket - Experts at Building Test Data
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 928

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: 15376
    
    6
The tab key is fun! Try it!

Eric
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 928


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: 15376
    
    6
No need to test, just common sense.

Eric
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 928

So, is it a bug ?
"works for me"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Html glass pane