开发者

Trying to change from onclick to onhover

So I have a menu at the top of a site that has some drop down menus. The drop down menus are script to show onclick, and I would 开发者_开发问答like to change them to fire the event when you hover the mouse over it.

I believe this is the script for it: http://babblespot.com/application/widgets/menuadvanced/externals/scripts/jquery-1.3.2.min.js

It has a lot of code on it, the top being mostly jquery I believe.

This is a plug-in, so I am having a little difficulty.

This is the site: http://babblespot.com/members/home

Thanks for any help.


Simply switch the click with the hover. I am not going to list all the changes, but an example, change

$jq('.custom_249').click(function(){

To

$jq('.custom_249').hover(function(){


Your page contains this code:

    $jq(document).ready(function(){
                $jq('.custom_249').click(function(){
                    $jq('.custom_249_dropped').toggle('fast');
                });
            });

If I understand your question, you need to replace the call to click(), with a call to hover(), as documented at http://api.jquery.com/hover.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜