jQuery in Action
[Logo] JavaRanch » JavaRanch Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Reply Bookmark it! Watch this topic JavaRanch » Forums » Engineering » HTML and JavaScript
 
RSS feed
 
New topic
Author

Html glass pane

salvin francis
Ranch Hand

Joined: Jan 12, 2009
Messages: 724

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
Messages: 724

Well, got it to work finally,



Hope this benefits someone ....

I came, I saw, I set a new standard.
[Salvin.in]- The way websites should now be.
Gregg Bolinger
Sheriff

Joined: Jul 11, 2001
Messages: 13686

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

"Fookin Prawns"
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Messages: 724

Tested to work fine in
IE7, FF3.0,chrome5.0,safari4

I would really like to know if it renders fine on opera.

I came, I saw, I set a new standard.
[Salvin.in]- The way websites should now be.
Eric Pascarello
author
Sheriff

Joined: Nov 08, 2001
Messages: 13583

The tab key is fun! Try it!

Eric

Race Schedule for 2010 for this running geek:
* National Half Marathon - 03/20 [1:44:51] * Frederick Marathon - 05/02 * Baltimore Marathon - 10/16 *
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Messages: 724


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

I came, I saw, I set a new standard.
[Salvin.in]- The way websites should now be.
Eric Pascarello
author
Sheriff

Joined: Nov 08, 2001
Messages: 13583

No need to test, just common sense.

Eric

Race Schedule for 2010 for this running geek:
* National Half Marathon - 03/20 [1:44:51] * Frederick Marathon - 05/02 * Baltimore Marathon - 10/16 *
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Messages: 724

So, is it a bug ?
"works for me"

I came, I saw, I set a new standard.
[Salvin.in]- The way websites should now be.
 
jQuery in Action
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Engineering » HTML and JavaScript
 
RSS feed
 
New topic
The most intelligent Java IDE