[jQuery] show method and opacity
In my script i'm using show() method without parameters.
This is my code and the css :
function mybox( sHtml ) {
$(document.body).append("<div id='overlay'> </div><div id='lightbox'
class='lightbox'> </div>")
var close_mybox =
function(){$("#lightbox").remove();$("#overlay").remove(); return false;}
$("#lightbox").html(sHtml).show();
$("#overlay").show();
$("#overlay").click( close_mybox );
$("#lightbox a").click( close_mybox );
}
.lightbox {
color: #333;
display: none;
position: absolute;
top: 400px;
left: 25%;
width: 50%;
height: 190px;
padding-top: 3px;
padding-left: 15px;
border: 16px solid #A1B3C8;
background-color: white;
text-align: left;
z-index:1001;
overflow: auto;
}
#overlay{
display: none;
position:absolute;
top:0;
left:0;
width:100%;
height:2000px;
z-index:1000;
background-color:#333;
-moz-opacity: 0.4;
opacity:.40;
filter: alpha(opacity=40);
}
It has worked fine since i've upgraded jquery.
The show method doesn't show anything.
If i use show("normal") ( with parameters ) the object misses the opacity.
The way to use this function has been changed or is this a bug ?
Thanks in advance
--
Maurizio Pelizzone
maurizio@mavida.com
--
HTML email can be dangerous, is not always readable, wastes bandwidth and
is simply not necessary please don't send them to me!
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/