I want the image downloader image on the page load I use it with opacity and at the same time background links are not clickable. Below code works fine in FF, Chrome, But it has some problems with IE browser -When the opacity loader image is displayed at the same time, background links can be clicked. I do not want these links to be visible when displaying the bootloader image.
<script> $(document).ready(function() { }); function displayLoader() { alert('hello'); $('#load').html('<img src="../images/icn/loader.gif"/>'); $("#load").css("width", "100%").css("height", "100%"); $("#load").addClass("load"); $("#divPage").addClass("loaderStyle"); } </script> <div id="divPage" style="background:#F2F2F2;height:500px;"> <a onclick="displayLoader();" href="#">click me</a> <div id="load"></div> </div> and **CSS** .loaderStyle { opacity: 0.80; filter: alpha(opacity=80); } #load { position: absolute; /*margin: -25px 0 0 -25px;*/ z-index: 1000; }
source share