Return to Snippet

Revision: 38982
at January 11, 2011 17:52 by hungheroic


Initial Code
<script type="text/javascript">
$(document).ready(function() {    
    var hide = false;
        jQuery("img.shadow").hover(function(){
            if (hide) clearTimeout(hide);
            jQuery(".post_share").fadeIn();
        }, function() {
            hide = setTimeout(function() {jQuery(".post_share").fadeOut("slow");}, 250);
        });
        jQuery(".post_share").hover(function(){
            if (hide) clearTimeout(hide);
        }, function() {
            hide = setTimeout(function() {jQuery("post_share").fadeOut("slow");}, 250);
        });
});
</script>

Initial URL

                                

Initial Description

                                

Initial Title
Toggle show/hide a div by hovering another item

Initial Tags

                                

Initial Language
JavaScript