(function($){
$.navs=function( ){
return $('#top_menu_bar > li').each(function(){
$(this).hover(
function(){
$( this).find( 'ul:eq(0)').show();
}
);
}); The following is a common method:
Copy code
The code is as follows:
$(this).find('ul:eq(0)').show();
},
$(this). ').hide();
; navs();
The ambition I had two years ago has finally come true today (oh, this is navigation, not tabs), and I feel a small sense of accomplishment!