Falsh播放代码

来源:互联网 发布:网络科技股龙头股票 编辑:程序博客网 时间:2024/06/11 19:21

                <asp:Repeater ID="NewsFlashRepeater" runat="server">
                    <ItemTemplate>
                         <script type="text/javascript">
                            var swf_width=380
                            var swf_height=240
                            var files='<%# Eval("files")%>';
                            var links='<%# Eval("links")%>';
                            var texts='<%# Eval("texts")%>';
                            document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ swf_width +'" height="'+ swf_height +'">');
                            document.write('<param name="movie" value="flash/bcastr.swf"><param name="quality" value="high">');
                            document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
                            document.write('<param name="FlashVars" value="bcastr_flie='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'">');
                            document.write('<embed src="flash/bcastr.swf" wmode="opaque" FlashVars="bcastr_flie='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'& menu="false" quality="high" width="'+ swf_width +'" height="'+ swf_height +'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
                            document.write('</object>');
                          </script>
                    </ItemTemplate>
                </asp:Repeater>