Sha256: 1a94eb51bfb6b5c051cdb83ed9b92bff7d17ce66a3c56865ad7d144633f80f44
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
var $j = jQuery.noConflict(); $j(document).ready(function() { var prefixLen = "toggle_".length; function linkHover() { $(this.id.slice(prefixLen)).addClassName("link_hover"); } function linkUnhover() { if (!$(this.id.slice(prefixLen)).hasClassName("pop_up_hover")) $(this.id.slice(prefixLen)).removeClassName("link_hover"); } function popUpHover() { $(this).removeClassName("link_hover"); $(this).addClassName("pop_up_hover"); } function popUpUnhover() { $(this).removeClassName("pop_up_hover"); } var linkConfig = { interval: 200, sensitivity: 4, over: linkHover, timeout: 250, out: linkUnhover }; var popUpConfig = { interval: 0, sensitivity: 4, over: popUpHover, timeout: 250, out: popUpUnhover }; $j("span.mega").hoverIntent(linkConfig); $j("div.links").hoverIntent(popUpConfig); window.onbeforeunload = function() { $$('div.links').each(Element.hide); } });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sortable_nested_set-0.1.23 | lib/public/javascripts/mega_menu.js |