[RESOLVED]menu when button hover

Hi

I have a share image button in my website and what i looking for is when user move the mouse on the image a small menu appear, can any one help me with it or refer me to a good online tutorial 

Many thanks 

Hi,

Take a look at this video:

https://www.youtube.com/watch?v=lx0IysyYLH0,

Have fun

Hi msimo.

For your issue,i wrote a demo for you:

When mouse on the image,it will show the menu,when mouse leave the image,it will hide the menu.

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#test").mouseenter(function () {
               $("#menu").show();
            
            })
            $("#test").mouseleave(function () {
                $("#menu").hide();

            })
           
        })
    </script>
</head>
<body>
    <ul>
        <li>   
            <img src="xx" id="test" />
            <ul id="menu" style="display:none">
                <li>A</li>
                <li>B</li>
                <li>C</li>
            </ul>
        </li>
    </ul>
    
</body>
</html>

Best Regards,

Kevin Shen.

Leave a Reply