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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T11:10:42+00:00 2026-05-15T11:10:42+00:00

I am hidding a Flash component when my page is loading (I want it

  • 0

I am hidding a Flash component when my page is loading (I want it to load in the background), and then display it when it is fully loaded.

For that purpose, I have the following JavaScript code to hide it once the DOM has loaded:

$(document).ready(function()
{
    $("#test").hide();
});

At this point, the flash is hidden. Then later on, I call a method that calls:

$("#test").show();

But at this point, the flash does not reappear. I tried also in the console in Firebug, and it did not work. I tried to do the same thing with a div, and it does not work as well.

If I do not hide the div/flash when it loads, but later on hide and show it in Firebug’s console, then it works fine.

Does anyone please know why I do get this behavior?

EDIT:

Thank you very much,

Rudy

  • 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-15T11:10:42+00:00Added an answer on May 15, 2026 at 11:10 am

    To hide a flash element and still have it load, you can position it outside of the visible area, instead of hiding it. Use CSS to do this so that the element is already hidden before the onload event is fired. Then, when you are ready to show the flash element, just remove the loading class.

    CSS

    #flash-container { position: absolute; top: ... }
    #flash-container.loading { top: -1000px; }
    

    HTML

    <div id="flash-container" class="loading">
      <object ...></object>
    </div>
    

    JavaScript

    $("#flash-container").removeClass("loading");
    

    Also, as part of your #flash-container CSS definition, you’ll need to define positioning for when the element is visible.

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

Sidebar

Related Questions

I'm experiencing something really strange! I have a div that I'm hiding with JS
1) One reason to use encapsulation is that by hidding internal implementation details we
I have an image that is wrapped inside a couple of DIV elements <div
Does Information Hiding mean I should minimize the number of properties my classes have?
I'm trying to create a dialog window using the following CSS: #blackOverlay { display:
I have questions about inheriting(extending) methods from classes and hiding some classes and methods
Is there an FTP browser hiding away in NetBeans 6.1? The help manual doesn't
What is the best method of hiding php errors from being displayed on the
Any idea where the setting is hiding for turning gridlines off while using excel
Many examples of macros seem to be about hiding lambdas, e.g. with-open-file in CL.

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.