Text before the alt content.
Text after the alt 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 'b' shows an alternate syntax for the behavior of demo 'a', with an object and a key called 'replaceId' with the string as the Id of the DOM object to replace with the SWF.
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.