该网站是一个名为《药学研究》的编辑部网站,当页面加载完成时,将执行一个函数。这个函数会在鼠标进入.navigation li元素时触发,用于展示导航子菜单。当鼠标离开.navigation li元素时,会触发另一个函数,用于隐藏导航子菜单。

代码示例:

$(document).ready(function () { // hover property will help us set the events for mouse enter and mouse leave $('.navigation li').hover( // When mouse enters the .navigation element function () { //Fade in the navigation submenu $('dl', this).fadeIn(); // fadeIn will show the sub cat menu }, // When mouse leaves the .navigation element function () { //Fade out the navigation submenu $('dl', this).fadeOut(); // fadeOut will hide the content of the sub menu