swfobject 2.2

Out of context: Reply #1

  • Started
  • Last post
  • 3 Responses
  • NONEIS0

    This is pretty cool...

    10. The option to switch off SWFObject's default show/hide behavior

    Developers now have the option to display alternative content (e.g. background image) while waiting for the swf file to load by switching off SWFObject's default hide/show behavior.

    Just call the swfobject.switchOffAutoHideShow... method after you have included SWFObject, but before any swfobject.registerObject() or swfobject.embedSWF() calls, like:

    An example:

    <script type="text/javascript" src="swfobject.js"></script>
    <script type="text/javascript">
    swfobject.switchOffAutoHideShow...
    swfobject.embedSWF("test6.swf", "myContent", "300", "120", "9.0.0", "expressInstall.swf");
    </script>

View thread