Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6130435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:51:29+00:00 2026-05-23T16:51:29+00:00

Here is on the sample page http://jquery.malsup.com/block/ is an example of an overlay message

  • 0

Here is on the sample page http://jquery.malsup.com/block/ is an example of an overlay message with an image:

$.blockUI({ message: '<h1><img src="busy.gif" /> Just a moment...</h1>' });

But I want to display just an image, so I took out the h1 tag:

$.blockUI({ message: '<img src="busy.gif" />' });

But there is still a background color under my image. How can I remove it?

According with source code of jQuery BlockUI Plugin (v2) it is wrapping the message in an h2 tag

if (title) $m.append('<h1>'+title+'</h1>');
if (message) $m.append('<h2>'+message+'</h2>');

so it looks like there is no way without modification of the source code to pass just an image tag.

I might modify the library source code to introduce a new param like image with a condition:

if (image) $m.append(image);

and than I could declare my image like this:

$.blockUI({ image: '<img src="busy.gif" />' });

Any more ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T16:51:30+00:00Added an answer on May 23, 2026 at 4:51 pm

    By default you got that:

        // styles for the message when blocking; if you wish to disable
        // these and use an external stylesheet then do this in your code:
        // $.blockUI.defaults.css = {};
        css: {
            padding:    0,
            margin:     0,
            width:      '30%',
            top:        '40%',
            left:       '35%',
            textAlign:  'center',
            color:      '#000',
            border:     '3px solid #aaa',
            backgroundColor:'#fff',
            cursor:     'wait'
        },
    

    So if you don’t want any of these just do that in your code:

    $.blockUI.defaults.css = {};
    

    Or if you want to exclude background and border just go with that insteard:

    $.blockUI.defaults.css = { 
                padding: 0,
                margin: 0,
                width: '30%',
                top: '40%',
                left: '35%',
                textAlign: 'center',
                cursor: 'wait'
            };
    

    Basically using that external stylesheet you may specify any css style you want.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I found a JQuery Alert plugin here, http://www.abeautifulsite.net/blog/2008/12/jquery-alert-dialogs/ So I made a sample page
I have this extremely simple splash page here: http://iph0wnz.com It has the main graphic
EDIT: Here's a link to show you my sample code: http://www.singingeels.com/jqtest/ I have a
I've created a simple jQuery Mobile page - have put the relevant sample here:
I found this sliding panel script I like at http://www.webdesignerwall.com/demo/jquery/ , (#1 Sample Slide
~ On my articles page ( http://www.adrtimes.squarespace.com/articles ) I have each entry start with
I am encountering a problem using CFGRID with JQuery. Here are the sample codes
Here's a sample page with a couple datepickers. Here's the Drip result for that:
i have to learn JQuery. Here is the first sample from their tutorial: <html>
I'm trying to use the jQuery validation plugin (from here --> http://bassistance.de/jquery-plugins/jquery-plugin-validation/ ) to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.