开发者

liteAccordion with mouseover event

I am trying to use 'l开发者_如何学PythoniteAccordion' jQuery plugin on my website.

This plugin works with click event,but i need it works with mouseover. Does it support mouseover event? and if yes,how can i define it?


you can edit the plugin and replace the two occurrences of .click with .mouseover in liteaccordion.jquery.js


You can just add this line to your javascript.

$('#accordion h2').mouseover(function() {
    $(this).click();
});

Or you can do what Sotiris advises and modify the plugin directly. It doesn't seem to have native mouseover support.


In v2 you can do

$("#myDiv").liteAccordion({
    activateOn: "mouseover"      // or click
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜