0

是否可以使用同时隐藏 div 的 onClick 来停止 HTML5 音频播放器?我很难弄清楚。

   $(function() { 
    $('#box').hide();
    $('#loading').hide();
    $( "#box" ).draggable({handle:'h3'}); 

});
$(document).ready(function() {
    $('#body').load('body.php', function(){
$('.stars, .ship').click(function(){
                    var name = $(this).attr('name');
                    var type = $(this).attr('type');
                    var linkvar = 'content.php?eid=';
                    var link_full = linkvar + name;
                    $('#box').show('slow');
                    $('#box_content').addClass(type);

                    $('#box_content').load(link_full, 
                        function() 
                        {
                        $(function(){ $('#close_this_box').click(
                            function(){
                                    $('.player').pause();
                                    $('#box').hide('slow'); 
                            });
                                });
                        $('.event').click(function() 
                        {
                            var name = $(this).attr('name');
                            var linkvar = 'content.php?cid=';
                            var link_full = linkvar + name;
                            $('#loading').show();
                            $('#box_content').load(link_full, 
                            function()
                                { 

                                });
                        });
                        });
                });});

});
                $('.ship, .stars').hover(
                function()
                { 
                    $(this).children('div').removeClass('hidden');
                      if ($(this).children('div').offset().left + 200 > $(window).width()) {       
                     $(this).children('ul').css('right', 180);  } 
                }, 
                function(){ $(this).children('div:nth-child(2)').addClass('hidden');});

(这些是文字,因为我没有其他要补充的东西,而且这件事不会让我发布它。我为这里的愚蠢道歉。)

4

0 回答 0