2

我将 SoundManager 2 实例设置为内联 HTML,在 Colorbox 窗口中显示歌曲列表。一切都很好,直到我关闭 Colorbox 窗口。除非我重新打开窗口并手动停止,否则声音会继续。我的想法是使用该方法的onCleanup回调,soundManager.stopAll();以便在窗口开始关闭时声音停止。但是因为我的 Jquery 技能是初学者的技能,所以我不确定正确的位置或语法。我目前正在使用以下基本语法调用我的颜色框窗口:

    $(document).ready(function(){
        $(".inlinePlayer1").colorbox({inline:true, width:"300px",height:"530px"});
        $(".inlinePlayer2").colorbox({inline:true, width:"300px",height:"550px"});
    });
4

0 回答 0