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