- Hoverintent JQuery プラグインを使用して DIV を展開しています。
- 「ホバー時」ではなく「クリック時」に動作するようにしたい
どうすればいいですか?これが単純な単純な JQuery であることは知っていますが、私の知識が不足しています。どんな助けでも大歓迎です。コードは次のとおりです。
$(document).ready(function(){
//Expand Div
$("#expandbutton").click({
over: ExpandDiv,
timeout: 100,
out: DoNothing
});
});
function ExpandDiv(){
$("#expander").animate({"height":200},400, "easeOutSine");
$("#expandbutton").css({opacity: 0.0, visibility: "hidden"}).animate({opacity: 0.0});
}