Question about HTML/Javascript?

Paul

New member
<div id="main">
<embed
id="flashobject"
src="file1.swf"
width="440px"
height="400px">
</div>

That is the html code. The javascript code is as follows:
document.getElementbyid("flashobject")
.setAttribute("src","file2.swf");


The code seems to work fine. The only problem is that the file loads very slowly when you use this javascript coding. I tried several swf files and they still went very slowly.

Is there any way to fix this. like some sort of variation of the code.
 
Back
Top