Forum Moderators: open
The problem is, the code that calls the function that starts the annimation "startAnnimation()" is on the home page linked to the onload event (onload="startAnnimation()") and the annimation is started after the home page loads but before the sound page loads.
Is there a way to tell the parent page, after both (all) pages are loaded (home page first), to call the function (located on the home page) that starts the annimation.
<html>
<head>
<title>Frames Parent</title>
<script language=javascript>
function loadSound()
{fr_sound.location.replace('Universal_sound.htm');}
</script>
</head>
<frameset cols="100%,*" onload="loadSound(); return true;">
<frame src="Universal_Home_page.htm" name="fr_home"/>
<frame src="Universal_sound.html" name="fr_sound"/>
</frameset>
</html>
Help!
When I added to the sound page, the code that called the function for the annimation, to get it to work I had to remove the javascript function that specified the loading sequence. But for some reason the loading sequence is still in order. The home page loads first and the sound page loads second. Which is what I want but I don't understand why it still works. I removed the function that put the loading sequence in order in the first place. My guess is, by default, the child page that's listed first is loaded first.
And my question is, is there a definite way to specify the loading sequence rather than rely on the default (child page that's listed first is loaded first. If that's what's going on)?