algorithm0
12-01-2006, 02:53 PM
for some reason my page is hanging for about 20 seconds in IE on load, and then i get ambiguous js error: swf_id is undefined. I can't figure out where the error msg is coming from. Has anyone observed this before?
in my js I am using the following:
// in the js script onload
document.getElementById('swf_id')
and in the body:
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("spike.swf", "spike_swf", "570", "180", "8.0.22", "#ffffff");
so.addParam("allowScriptAccess", "always");
so.write("flashcontent");
</script>
in my js I am using the following:
// in the js script onload
document.getElementById('swf_id')
and in the body:
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("spike.swf", "spike_swf", "570", "180", "8.0.22", "#ffffff");
so.addParam("allowScriptAccess", "always");
so.write("flashcontent");
</script>