Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #389408

    Hello,

    I was wondering how to change it so dropdown menus are activated on click instead of mouse hover.

    Thanks!

    #389752
    #390180

    Hello Josue,

    That worked for regular drop downs but it doesn’t work for megamenus

    Is there a way to get it work on megamenus too?

    Thanks,

    #390385

    Hi!

    Change this too:

    megaItems.each(function(i){
    
    	$(this).hover(
    
    		function()
    		{
    			delayCheck[i] = true;
    			setTimeout(function(){megaDivShow(i); },options.delay);
    		},
    
    		function()
    		{
    			delayCheck[i] = false;
    			setTimeout(function(){megaDivHide(i); },options.delay);
    		}
    	);
    });

    To:

    megaItems.each(function(i){
    
    	$(this).click(
    
    		function()
    		{
    			delayCheck[i] = true;
    			setTimeout(function(){megaDivShow(i); },options.delay);
    		},
    
    		function()
    		{
    			delayCheck[i] = false;
    			setTimeout(function(){megaDivHide(i); },options.delay);
    		}
    	);
    });

    Best regards,
    Josue

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.