• Hi, i need to execute a js script when the user click on anchor link,

    template is this http://www.templatemonster.com/demo/53145.html

    i need to automatically close the left menu (like when the user click on the button for close) when hi click on anchor link

    js for close is this (i think)

    `function closeMenu(){ menuCloseBtn.stop().animate({top:’-75px’}, 1500, ‘easeOutQuart’);
    menuBtn.stop().delay(350).animate({opacity:’1′}, 1000, ‘easeOutQuart’);
    menuOverlay.stop().animate({width:’0px’}, 1000, ‘easeOutQuart’, function(){
    menuHolder.addClass(‘menu-hidden’);
    });

    menuItems.each(function(){
    _this = jQuery(this);
    _this.stop().animate({left:’290px’}, 1000, ‘easeOutQuart’);
    })
    }

The topic ‘add javascript to anchor onclick’ is closed to new replies.