C# 点击按钮加载SWF内容Js

C# 点击按钮加载SWF内容Js,c#,asp.net,C#,Asp.net,我的页面中有一个JS函数,当页面加载时,我的sfw内容正常加载,我添加了ButtonClienClick来调用我的JS函数来显示包含我的SWF内容的div,但是当点击按钮时,我的SWF不会加载。是否有任何建议在单击按钮时加载此内容 function ShowDialogLoading() { $('#example').flash( { src: 'Img/banner_aguarde.swf',

我的页面中有一个JS函数,当页面加载时,我的sfw内容正常加载,我添加了ButtonClienClick来调用我的JS函数来显示包含我的SWF内容的div,但是当点击按钮时,我的SWF不会加载。是否有任何建议在单击按钮时加载此内容

    function ShowDialogLoading()
    {
        $('#example').flash(
            { 
                src: 'Img/banner_aguarde.swf',
                width: 902,
                height: 320
            }
        );   
        $("#example").dialog({
            create: function (event, ui) {
                $(".ui-widget-header").hide();
                $(".ui-dialog-content").css("padding","0px");
            },
            modal: true,
            title: 'Pagamento Pré-Pago',
            resizable: false,
            draggable: false, 
            width: 'auto',
            height: 'auto' 
        });                      
    } 


 <asp:Button ID="btnProximoPasso" CssClass="form-button" OnClientClick="ShowDialogLoading()" runat="server" Text="Próximo Passo"
                            OnClick="btnProximoPasso_Click" />
函数ShowDialogLoading()
{
$(“#示例”).flash(
{ 
src:“Img/banner_aguarde.swf”,
宽度:902,
身高:320
}
);   
$(“#示例”)。对话框({
创建:函数(事件、用户界面){
$(“.ui小部件头”).hide();
$(.ui对话框内容”).css(“填充”、“0px”);
},
莫代尔:是的,
标题:“帕加门托-帕戈”,
可调整大小:false,
可拖动:错误,
宽度:“自动”,
高度:“自动”
});                      
} 
试试这个

<html>
<head>
<script src="http://cdn.jquerytools.org/1.2.6/full/jquery.tools.min.js"></script>
</head>
<body>
<script>

// use the jQuery alternative for flashembed.domReady
$(function() {

    // bind an onClick event for this second Flash container
    $("#flash2").click(function() {

        // same as in previous example
        $(this).flashembed("/swf/flash10.swf");
    });
});
</script>
<asp:Button ID="flash2" runat="server" Text="Load"/>
</body>
<html>

//对flashmbed.domReady使用jQuery替代方法
$(函数(){
//为第二个闪存容器绑定onClick事件
$(“#flash2”)。单击(函数(){
//与前面的示例相同
$(this.flashmbed(“/swf/flash10.swf”);
});
});