• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 Eliminate the delay for tab drop-downs

jauburn

Well-known member
#1
By default, one has to allow the mouse cursor to hover over a tab in order to activate the drop-down associated with it. Most users don't do that. If they don't see a submenu immediately, they don't bother waiting.

How can I eliminate the delay associated with a tab's drop-down?

Thanks.
 

jauburn

Well-known member
#4
I changed it to 0. The menus still don't seem instantaneous. It's odd. It's as if you have to situate the mouse cursor exactly over the down arrow to get a reaction.
 

jauburn

Well-known member
#5
Yeah, the arrow is what activates the drop-down. Would be better if you could just put the mouse anywhere on the menu to activate the drop-down.
 

Tracy Perry

Well-known member
#9
Trouble is...that didn't work.
It should.... I use it one one of my modified default styles (http://twowheeldemon.com and the "Default Style"

I enabled debug and created 3 template modifications

This one is for the members (made an entry specific for it)

Search for (in navigation template)

Code:
<a href="{$tabs.members.href}" class="navLink">{$tabs.members.title}</a>

                <a href="{$tabs.members.href}" class="SplitCtrl" rel="Menu"></a>
Replace with
Code:
<a href="{$tabs.members.href}" class="navLink NoPopupGadget" rel="Menu">{$tabs.members.title}</a>
This one is for the forum

Same template - new entry

Search for

Code:
<li class="navTab forums {xen:if $tabs.forums.selected, 'selected', 'Popup PopupControl PopupClosed'}">
         
                <a href="{$tabs.forums.href}" class="navLink">{$tabs.forums.title}</a>
                <a href="{$tabs.forums.href}" class="SplitCtrl" rel="Menu"></a>
Replace with

Code:
<li class="navTab forums {xen:if $tabs.forums.selected, 'selected', 'Popup PopupControl PopupClosed'}">
         
                <a href="{$tabs.forums.href}" class="navLink NoPopupGadget" rel="Menu">{$tabs.forums.title}</a>
And a third one

Search For

Code:
<a href="{$extraTab.href}" class="navLink">{$extraTab.title}<xen:if is="{$extraTab.counter}"><strong class="itemCount"><span class="Total">{$extraTab.counter}</span><span class="arrow"></span></strong></xen:if></a>
                <a href="{$extraTab.href}" class="SplitCtrl" rel="Menu"></a>
Replace with

Code:
<a href="{$extraTab.href}" class="navLink NoPopupGadget" rel="Menu">{$extraTab.title}<xen:if is="{$extraTab.counter}"><strong class="itemCount"><span class="Total">{$extraTab.counter}</span><span class="arrow"></span></strong></xen:if></a>
 

jauburn

Well-known member
#10
Thanks. I'll try it.

How do you get rid of the "java no-goodness" (i.e., delay) on the right-hand side, as well? User menu and all that?
 

jauburn

Well-known member
#11
It's like with Windows...the first thing I do on a new installation is get rid of all of the "animation" silliness, which is fun for about 30 seconds--and afterwards, just annoying.
 

Tracy Perry

Well-known member
#12
Thanks. I'll try it.

How do you get rid of the "java no-goodness" (i.e., delay) on the right-hand side, as well? User menu and all that?
I'm pretty sure it's controlled by the same javascript delay that @Brogan outlined in his post. The problem with editing the .js is each time you do an upgrade you have to perform the edits again. I just finally gave up and lived with the delay.
 

jauburn

Well-known member
#13
I just finally gave up and lived with the delay.
Yeah. I am sure i will, too. I do not understand why these delays are built in to the system, though. My user testing over the years has shown that people invariably want menus to respond instantly. After all, they access them in order to get something done, not because they like the visual effects.
 

Tracy Perry

Well-known member
#14
Yeah. I am sure i will, too. I do not understand why these delays are built in to the system, though. My user testing over the years has shown that people invariably want menus to respond instantly. After all, they access them in order to get something done, not because they like the visual effects.
One reason is when you mouse over them they won't immediately be popping up as you pass over them (say when moving from Members to Forum). The delay prevents that unless you hover over it. I kinda like it as you don't see the drop downs flashing by.