What you have in your code is not JavaScript, but HTML.

If you are wanting to convert the above for use with swfobject, then
try using the SWFObject code generator:
http://code.google.com/p/swfobject/wiki/generator

You just enter the values such as url, width/height etc, and the
generator will create valid code for you.

Based on whether you choose static or dynamic embed options, the
generated code will be different. A general rule of thumb is if you
are using other js on your page like jquery etc, then you will want to
choose the dynamic embed option (as it gives you more control as to
when your code is executed etc).

If you just want a simple embed (and want it to work without
necessarily needing the user to have javascript, then choose static
embed.



Aran


On Aug 20, 4:33 am, Tapas Mishra <[email protected]> wrote:
> Following is my javascript  I am not clear when I have to embed flash
> for non IE browsers as mentioned on some documentation pages
> I should have a line
>
> <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
> codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#v...";
> WIDTH="550" HEIGHT="400" id="single1" name="single1">
> <PARAM NAME=movie VALUE="player.swf">
> <PARAM NAME=allowfullscreen VALUE="true">
> <PARAM NAME=allowscriptaccess VALUE="always">
> <PARAM NAME=wmod VALUE="transparent">
> <PARAM NAME=flashvars VALUE="file=go.flv&streamer=rtmp://mydomain">
> <EMBED  quality=high bgcolor="undefined" WIDTH="550" HEIGHT="400"
> NAME="single2" ALIGN="" id="single2" allowscriptaccess="always"
> allowfullscreen="true"
> wmode="transparent" flashvars="file=go.flv&streamer=rtmp://mydomain"
> TYPE="application/x-shockwave-flash"
> PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer";>
> </EMBED>
> </OBJECT>
>
> I am not clear with use of <object> tag for non ie browsers.In above script.
> --
> Tapashttp://mightydreams.blogspot.comhttp://wiki.xensource.com/xenwiki/Xen_on_4_app_servers

-- 
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en.

Reply via email to