I tried to understand what you said:
"you need to put the "window.addEventListener ..." inside a script tag but not inside another function. put it next to loadApplet."
I put the code then above the "//<![CDATA[" but still inside the script tag, this should then be seen first in the code, is that right?
"inside the "window.addEventListener .." there is a string "element-id-of-the-element-to-load-in" that i pass to the loadApplet function. that string needs to be the id of the div that appletobject loads the applet into... i think you don't hav a div for that at the moment, put one in."
I changed that "element-id-of-the-element-to-load-in" to the closest thing I could find that was the "id of the div that appletobject loads the applet into." which I thought was "element_id" from "function loadApplet ( element_id )" ..but I'm not sure
"you placed the applet code (anything inside <div id="attempt8_container">) into your page, that will just show the applet there and will not use appletobject. you need to have an empty <div id="load_applet_here"></div>. (in this case "load_applet_here" goes into loadApplet() inside "window.addEvent...")."
I put a "<div id="attempt8_container"></div>" inside the code you gave me below, was that right?:
Code:window.addEventListener( "load", function () {
loadApplet("element_id");
<div id="attempt8_container"></div>
}, true );
..and that's now above the "//<![CDATA[" but still within the script tags. The page loads okay but not the percentage bar, I was looking back at the example and cross-referencing that with what you said but its not that easy, I find.
Thanks again!