[SWFObject] Can't get swfObject working

MJJAIXEN at up.com MJJAIXEN at up.com
Wed Nov 29 06:12:40 PST 2006


Looks like you aren't closing your <script> tag; the <script /> doesn't 
actually close the script tag but rather creates a second blank script 
tag.

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


"Granny Maude Admin" <admin at grannymaude.biz> wrote:
> Hello all,
> I have a problem understanding why I can't get the following code to 
work
> with swfObject.  When I use this code all I get is a blank page in all
> versions of Firefox and IE.  If I point a hyperlink at the swf itself 
the
> movie shows up just fine in all browsers.
> 
> Here's the code I'm using.
> 
> <script type="text/javascript" src="swfObject.js"><script />
> </head>
> 
> <body>
> 
> <div id="invisible">
> <script type="text/javascript">
>                  // <![CDATA[
>  
>                  var fo = new SWFObject("invisiblecage.swf", 
"invisiblecage", "800",
> "600", "8", "#663333");
>                  fo.addVariable("XMLConfig", "config.xml");
>                  fo.write("invisiblecage");
>  
>                  // ]]>
> </script>
> 
> </div>


.                                                                                                                                                    This message and any attachments contain information from Union Pacific which may be confidential and/or privileged.
If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited by law. If you receive this message in error, please contact the sender immediately and delete the message and any attachments.



More information about the Swfobject mailing list