I am trying to hide all the content of my html by masking using CSS and java script. But any how I'm not able to send back the flash banner behind the mask. Here is the code -
$(document).ready(function() {
$('a[name=modal]').click(function(e)
{
e.preventDefault();
var id = $(this).attr('href');
var maskHeight = $(document).height();
var maskWidth = $(window).width();
$('#mask').css({'width':maskWidth,'height':maskHeight});
$('#mask').fadeIn(1000);
$('#mask').fadeTo("slow",0.8);
var winH = $(window).height();
var winW = $(window).width();
$(id).css('top', winH/2-$(id).height()/2);
$(id).css('left', winW/2-$(id).width()/2);
$(id).fadeIn(2000); });
$('.window .close').click(function (e)
{
e.preventDefault();
$('#mask').hide();
$('.window').hide(); });
$('#mask').click(function ()
{
$(this).hide();
$('.window').hide();
});
$(window).resize(function ()
{
var box = $('#boxes .window');
var maskHeight = $(document).height();
var maskWidth = $(window).width();
$('#mask').css({'width':maskWidth,'height':maskHeight});
var winH = $(window).height();
var winW = $(window).width();
box.css('top', winH/2 - box.height()/2);
box.css('left', winW/2 - box.width()/2); }); });
Hello
I am trying to hide all the content of my html by masking using CSS and java script. But any how I'm not able to send back the flash banner behind the mask. Here is the code -
$(document).ready(function() { $('a[name=modal]').click(function(e) { e.preventDefault(); var id = $(this).attr('href'); var maskHeight = $(document).height(); var maskWidth = $(window).width(); $('#mask').css({'width':maskWidth,'height':maskHeight}); $('#mask').fadeIn(1000); $('#mask').fadeTo("slow",0.8); var winH = $(window).height(); var winW = $(window).width(); $(id).css('top', winH/2-$(id).height()/2); $(id).css('left', winW/2-$(id).width()/2); $(id).fadeIn(2000); }); $('.window .close').click(function (e) { e.preventDefault(); $('#mask').hide(); $('.window').hide(); }); $('#mask').click(function () { $(this).hide(); $('.window').hide(); }); $(window).resize(function () { var box = $('#boxes .window'); var maskHeight = $(document).height(); var maskWidth = $(window).width(); $('#mask').css({'width':maskWidth,'height':maskHeight}); var winH = $(window).height(); var winW = $(window).width(); box.css('top', winH/2 - box.height()/2); box.css('left', winW/2 - box.width()/2); }); });JEE Schedule | NEET Schedule
Finally this is the line where when I click masking happen CloseGoggle Chrome and Fire Fox doesn't have any problem but IE 9 take the flash banner on top of Mask. can see this live problem here Thank you in advance