SWFObject JS Embed Example

Put this in the HEAD tags

<script type="text/javascript" src="swfobject.js"></script>  

Put this in the BODY tags

<!-- Simple SWFObject Embed Code -->
        <div id="flashContent"></div>
   
        <script type="text/javascript">

                        var flashvars = {};
                        flashvars.name1 = "hello";
                        flashvars.name2 = "world";
                        flashvars.name3 = "foobar";
                       
                        var params = {};
                        params.menu = "false";
                       
                        var attributes = {};
                        attributes.id = "myDynamicContent";
                        attributes.name = "myDynamicContent";
                       
                        swfobject.embedSWF("${swf}.swf", "flashContent", "640", "480", "9.1.15","expressInstall.swf", flashvars, params, attributes);
                                               

                   
                </script>
   




Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. The supported tag styles are: <foo>, [foo].

More information about formatting options

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.
Bg