Find Questions…

Close ×
First time here? Check out the FAQ!

Is there any option in Confluence to have the drop down menus working on a mouse click instead of a mouse over?

Oliver [deleted] asked this question · 5 karma ·

In confluence 4.0 all menus are open on an cleck event.

is there a way (js or option in backend) to open the menus in the old mouse over way ?

1940 views

One Answer:

David Simpson · 16,745 karma ·

Browse to Confluence Admin | Look & Feel | Custom HTML

Paste this into At end of the HEAD:

<script>
AJS.toInit(function(){
  AJS.$('.ajs-menu-bar > li.ajs-menu-item').hover(
    function(){ 
      AJS.$(this).children('a')[0].click();
    },
    function(){ 
      AJS.$(this).children('a')[0].click();
      AJS.$(this).removeClass('hover');
    } 
  );
});
</script>

This should help a little -- it performs a click event on mouse over and another one on mouse out

Oliver [deleted] · 5 karma ·

perfect!

I've tried a similar solution, but it flickered.

your solution works very good.

·1 user liked this

Jennifer Cheung · 41 karma ·

This is gold, thanks so much!

·1 user liked this

Leroy Elendt · 336 karma ·

David the quick-jQuery-solution man :)

·1 user liked this

Looking for something else?

Find Questions…

or Browse other questions tagged:

or Ask a Question