Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

Has anyone gotten the Quicktabs module to work on mouseover/hover instead of click?
There was a patch for version 6.x-2 that does not work with the current version.

share|improve this question

1 Answer 1

I ended up making a couple of edits to quicktabs.js. At its most basic, in line 24 I changed 'click' to 'mouseenter' and changed the name of the quicktabsClick() function to quicktabsHover().

When the user clicked the link in the tab, though, the page refreshed; I added the following at line 25 (below the new call to quicktabsHover):

$(this).unbind('click').bind('click', quicktabsClick);

I also added a new function:

var quicktabsClick = function() {
    return false;
}
share|improve this answer
    
You are not making changes to the modules JS files are you? –  saadlulu Oct 31 '12 at 7:36
    
I did, yes. And I'm making sure not to update. –  jay-ess Oct 31 '12 at 21:12
    
@jay-ess Make a patch and submit to Drupal.org –  Nikhil M Dec 6 '12 at 6:48
    
@Nikhil - This really needs to be something that is configurable, which I did not do and is out of my league. I believe there has been some talk about making it so, but I have not revisited. –  jay-ess Dec 6 '12 at 16:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.