Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图弄清楚如何在单击链接时从页面顶部淡入 jPlayer,然后在歌曲停止播放时让它淡出。
我还刚刚开始,我可以让 jPlayer 正常工作,但是我在尝试实现显示/隐藏功能时遇到了麻烦。
有人可以帮我指出正确的方向吗?
尝试这个:
$(document).ready(function() { $("#jp_container").hide(); $.jPlayer.event.play, function() { $("#jp_container").slideDown(); }); $.jPlayer.event.ended, function() { $("#jp_container").slideUp(); }); });