jQuery idTabs plugin hover feature problem

夙愿已清 提交于 2019-12-22 01:31:39

问题


I am using jQuery idTabs pluging. I want to give hover feature and use divs with this feature. Default settings are working with click event. How can I change this feature.

Best Regards.


回答1:


I'm unsure how specifically you want to use divs, but to achieve the "hover" effect your talking about, use the following code:

$("...").idTabs("!mouseover");



回答2:


<div id="adv1" class="usual"> 
    <span>
            <div><a href="#t1">Tab 1</a></div> 
            <div><a href="#t2">Tab 2</a></div> 
            <div><a href="#t3">Tab 3</a></div> 
    </span>

    <div id="t1">This is tab 1.</div> 
        <div id="t2">More content in tab 2.</div> 
        <div id="t3">Tab 3 is always last!</div> 
</div> 

<script type="text/javascript"> 
      $("#adv1 span").idTabs({ start:1, change:false },true);
</script>

pretty junky script, why not consider the real tabs http://docs.jquery.com/UI/Tabs



来源:https://stackoverflow.com/questions/810980/jquery-idtabs-plugin-hover-feature-problem

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!