Son of suckerfish in Drupal

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).

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>