$(document).ready(function() {
//If Javascript is running, change css on product-description to display:block
//then hide the div, ready to animate
$("div.pop-up").css({'display':'block','opacity':'0'})
$("a.trigger").hover(
function () {
$(this).prev().stop().animate({
opacity: 1
}, 500);
},
function () {
$(this).prev().stop().animate({
opacity: 0
}, 200);
}
)
});
10 個の div(トリガー) を水平に配置しています。トリガー要素のポップアップにカーソルを合わせると、ポップアップ コンテンツにとどまりたいのですが、どうすればよいですか?