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(); }); });