Son of suckerfish in Drupal

June 2nd, 2009

1. Drupal is using jquery.
2.

sfHover = function() {
$(".primary-links li").mouseover(function() {
$(this).toggleClass("sfhover");
});
$(".primary-links li").mouseout(function() {
$(this).toggleClass("sfhover");
});
}

$(document).ready(sfHover);

In the header of page.tpl.php is all you need. You have to change $(”.primary-links li”) to whatever your navigation links are though (in this case class primary-links li items).

Entry Filed under: Programming, The internet

Leave a Comment

hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Subscribe to the comments via RSS Feed


Calendar

September 2010
M T W T F S S
« Mar    
 12345
6789101112
13141516171819
20212223242526
27282930  

Most Recent Posts