spip_nursit/plugins/dist/themes/zpip-1/Arclite/arclite-red/theme.js

27 lines
682 B
JavaScript
Raw Permalink Normal View History

2023-06-01 15:30:12 +00:00
$(document).ready(function() {
$("#nav ul ul ").css({display: "none"});
$("#nav li").hover(function(){
/*$(this).css({'background': 'transparent'});*/
$(this).find('ul:first').css({visibility: "visible",display: "none"}).fadeIn(333);
},function(){
/*$(this).css({'background': ''});*/
$(this).find('ul:first').css({visibility: "hidden"});
});
// fade span
jQuery('#nav li.menu-entree').append('<span class="hover"></span>').each(function () {
var jQueryspan = jQuery('> span.hover', this).css('opacity', 0);
jQuery(this).hover(function () {
jQueryspan.stop().fadeTo(333, 1);
}, function () {
jQueryspan.stop().fadeTo(333, 0);
});
});
});