?
Solved

Two flash movies, one vanishes

Posted on 2006-06-01
4
Medium Priority
?
410 Views
Last Modified: 2010-04-06
Hi All,

I'm working on an html page that has two flash movies embedded. Both flash movies display as the page loads, it's only when the page has loaded completely that one of the just vanishes. I've watched the page load so many times and it vanishes at the exact point that the page is done.

This happening only in IE not in firefox. Anyone know why this might be happening, its drving me nuts.

D.
0
Comment
Question by:daveboyle99
3 Comments
 
LVL 10

Expert Comment

by:ClickCentric
ID: 16811246
Without the html of the page or a link to it, it's kind of like asking why a glass in a bar full of people is suddenly empty.
0
 

Author Comment

by:daveboyle99
ID: 16814818
Hi CC,

I managed to find the root of the problem, it was the following javascritpt :

//When the page loads:

window.onload = function()
{
if (document.getElementsByTagName) {
var objs = document.getElementsByTagName("object"); //Get all the tags of type object in the page.
for (i=0; i<objs.length; i++)
{
objs[i].outerHTML = objs[i].outerHTML; //Get the HTML content of each object tag and replace it with itself.
}
}
}

No idea why it's causing that behaviour so if anyone can suggest reasons why / comment please do ..
0
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
ID: 16991503
PAQed with points refunded (40)

DarthMod
Community Support Moderator
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question