Log in

View Full Version : how to mask page content with ?



Tokbek
02-12-2008, 09:34 PM
Hi,

I have a web page with form elements.
in some condition i want to put mask on the page in away that users cannot interact with the page content.

i use Iframe in order to be able to put floating content above Select Boxes.
The problem is that i cant get the iframe to be transparent.

Any idea ??

here is my code. im testing it on IE 6.0.

<html>
<head><title>
Hide select
</title>
<style>
.myIframe{
position:absolute;
top:0;
left:0;
width:100px;
height:100px;
filter: progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0);}
</style>
</head>
<body>
<iframe class="myIframe" src="about:blank"></iframe>
<select >
<option>this is my Select box</option>
</select>
</body>
</html>

Thanks
Tok

Master_script_maker
02-12-2008, 10:06 PM
[*ICODE] tags are only for one line of code, please change to [*CODE] tags
use filter:alpha(opacity=0); and opacity:0
this will make it work in firefox and internet explorer