Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hidden div issue

Status
Not open for further replies.

btween

Programmer
Aug 7, 2003
338
US
I have a flash movie that's about 9 megs. The movie is nested in a div that has display set to none.

The problem is that when I try to load the page in the browser, it hangs for about 30 seconds when it gets to the html part that contains the hidden div.

If I make the div visible and try to load the page in the browser, the page loads right away and the flash starts playing.

I don't know why this is happening but I think that the page is trying to load the flash into memory completely before it continues loading the rest of the page. Is there a way to make the page load faster, ignoring loading the whole flash. The flash does not need to start loading until the div is made visible by pressing a button on the html page.

 
Then why have the Flash in the page at all? Why not simply write it to the page after the page has loaded (using either innerHTML or the Macromedia Flash/JS integration kit)?

Hope this helps,
Dan

Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Position the div absolutely and set it's X and Y to be off the screen. If you could code the flash to send a script call to one of your functions, then you could set the position of the div to be display:none and position:relative. Just a thought.

Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top