开发者

Regarding jQuery & BlockUI plugin

开发者 https://www.devze.com 2023-03-24 21:19 出处:网络
we know that we can block any element using jQuery BlockUI. like the below code <script type=\"text/javascript\">

we know that we can block any element using jQuery BlockUI. like the below code

<script type="text/javascript"> 
$(document).ready(function() { 
    $('#blockButton2').click(function() { 
        $('div.test').block({ 
            message: '<h1>Processing</h1>', 
            css: { border: '3px solid #a00' } 
        }); 
    }); 
}); 

using the ab开发者_运维问答ove code it block my div and a another little message comes with text processing... but i want bit different. i want that when i will block any element then a div layer will come on the element with the same height and width of that element and a busy image and text processing will come in the center on the blocking layer. so please guide me how to get the effect using block UI. what i need to add. please guide. thanks


Do you mean "element blocking"? http://jquery.malsup.com/block/#element

Okay, it looks like you do. To get an image in there just add the HTML to the "message" propoerty. The example on the link above shows the message in the center?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号