Text before the content.
Text after the content.
These demos illustrate the 'targetElem' parameter (formerly 'replaceElemIdStr') to DoSWF, the callback functionality, and the SWFObject "Alternate Content" functionality, which replaces the alternate content with the SWF.
Demo 'c' shows an extension syntax for the second parameter, which is a string with the Id of the DOM object to append the SWF as a child to.
Note: To prevent any flicker effect where the "Alternate Content" is shown briefly before being replaced, this demo shows how the alternate content can initially be hidden, and then shown only if the SWF fails to load, according to the callbacks. You can test this by saying "No" to the question of if you want to install the update. Also, the DoSWFCB() shows the flash content once the SWF content starts loading (so as to make your SWF preloader visible, for instance), and it displays an alert when it completes.