Javascript 无法在Firefox中显示引导模式弹出窗口

Javascript 无法在Firefox中显示引导模式弹出窗口,javascript,jquery,asp.net,vb.net,twitter-bootstrap,Javascript,Jquery,Asp.net,Vb.net,Twitter Bootstrap,我有一个包含以下代码的内容页,它在InternetExplorer中显示引导模式弹出窗口,但在Firefox中没有显示。我的引导参考文件位于母版页中 <script type="text/javascript"> function openModal() { $('#adverts').modal('show'); } </script> <!-- Modal Popup Ad

我有一个包含以下代码的内容页,它在InternetExplorer中显示引导模式弹出窗口,但在Firefox中没有显示。我的引导参考文件位于母版页中

<script type="text/javascript">
             function openModal() {
                 $('#adverts').modal('show');
             }
</script>

 <!-- Modal Popup Ads-->
<div runat="server" class="modal fade" id="adverts" tabindex="-1" role="dialog" aria-labelledby="memberModalLabel" aria-hidden="true" clientidmode="Static" >
    <div class="modal-dialog" style="padding:1px; top:15%">
        <div class="modal-content" style="width:580px;">
         <div style="height:10px; margin-right:10px; margin-top:3px;">
        <button type="button" class="close" data-dismiss="modal" title="Close">&times;</button>
              </div>
            <div class="modal-body" >

                <asp:Literal ID="Literal1" runat="server"></asp:Literal>
                <asp:SqlDataSource ID="SqlDataSource6" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:ApplicationServices %>"  
                    ProviderName="System.Data.SqlClient" 
                    SelectCommand="SELECT id, message FROM users_html_notify WHERE (id = 1)"></asp:SqlDataSource>
            </div>

        </div>
    </div>
</div>

<!-- Modal Popup Ads -->

注意:上面的代码在Internet explorer的页面加载中工作正常,但在Firefox中不工作

你好,Sam,代码在Internet explorer中工作正常,但在Firefox中不工作,还要注意,我在Asp.net网页内容页中使用了引导模式。您在Firefox web控制台(Ctrl+Shift+K)中看到任何脚本错误吗?
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
ScriptManager.RegisterStartupScript(Me, Me.[GetType](), "Pop", "openModal();", True)
End Sub