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 8337297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:15:55+00:00 2026-06-09T04:15:55+00:00

I’m using CSS style display:block and none for hiding a div based on a

  • 0

I’m using CSS style display:block and none for hiding a div based on a condition:
If facebook has been blocked display fb_Blockedwizard else display fb_wizard.

When I am loading or refreshing the page the div fb_Blockedwizard is displayed for a few second then the div gets hidden.

I need to hide the div during the load or refresh of the page

Below is the code which I’m using:

<script>
  $(document).ready(function() {
    hideFbBlockedwizard();
    hidefbwizard();
    var callbackOnSuccess = function(src) {
      hideFbBlockedwizard();
      showwizard();
      return false;
    };
    var callbackOnFailure = function(src) {
      hidefbwizard();
      showFbBlockedwizard();
    };
    checkAvailability("http://www.facebook.com/favicon.ico", 
      callbackOnSuccess,callbackOnFailure);
  });

  function  showFbBlockedwizard() {
    document.getElementById('fb_Blockedwizard').style.display='block';
    document.getElementById('fade').style.display='block';
  }   

  function hideFbBlockedwizard() {  
    document.getElementById('fb_Blockedwizard').style.display='none';
    document.getElementById('fade').style.display='none';
  }

  function checkAvailability(src, callbackSuccess, callbackFailure) {
    $("<img/>").attr("src", src).load(function() {
      callbackSuccess(src);     
  }).error(function() {
    callbackFailure(src);
  });
}

function showwizard() {
  document.getElementById('fb_Blockedwizard').style.display='none';
  document.getElementById('fb_wizard').style.display='block';
  document.getElementById('fade').style.display='block';    
}

Here my CSS:

.white_content {
        /*display: none;*/
        display:none;
        position: absolute;
        top: 25%;
        left: 25%;
        width: 46%;
        height: 37%;
        padding: 16px;
        border: 16px solid #999;
        background-color: white;
        z-index:1002;
        overflow: auto;
}
.white_content1 {
        display:none;
        position: absolute;
        top: 13%;
        left: 18%;
        width: 60%;
        height: 63%;
        padding: 16px;
        border: 16px solid #999;
        background-color: white;
        z-index:1002;
        overflow: auto;
}

Here my PHP:

  <div id="fb_wizard" class="white_content">
  <?php include  'fb_blocked.php'; ?>
  </div>
  <div id="fb_Blockedwizard" class="white_content1">
         <?php include  'fb_blocked_email.php'; ?> </div>
  • 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-06-09T04:15:57+00:00Added an answer on June 9, 2026 at 4:15 am

    Is fb_Blockedwizard part of your layout? If so then give it directly the style display:none within HTML/CSS. Set it to display:block per javascript.

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

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
In my XML file chapters tag has more chapter tag.i need to display chapters
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I am trying to understand how to use SyndicationItem to display feed which is
I have a jquery bug and I've been looking for hours now, I can't
I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function

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.