ershouche/WebRoot/script/3c-menu.js
(完整代码) 1KB$(document).ready(function(){
$( ".J_MenuItem" ).each( function( index ){
$( this ).mouseover( function(){
var catTop,
borderTop = $( this ).offset().top - 3,
viewHeight = $( window ).height(),
scrollTop = $( document ).scrollTop(),
relaxHeight = viewHeight - ( borderTop - scrollTop );
$( ".border" ).css( "top", borderTop ).show();
$( ".cat-subcategory" ).show();
$( ".shadow div" ).hide().eq( index ).show();
var catHeight = $( ".cat-subcategory" ).height();
if( catHeight <= relaxHeight ){
catTop = borderTop;
}else if( catHeight > relaxHeight && catHeight < viewHeight ){
catTop = scrollTop + viewHeight - catHeight - 10;
}else{
catTop = scrollTop + 5;
}
$( ".cat-subcategory" ).css( "top", catTop );
$( "span" ).show();
$( this ).find( "span" ).hide();
});
$( ".mallCategory" ).mouseleave( function(){
$( ".cat-subcategory" ).hide();
$( ".border" ).hide();
$( "span" ).show();
});
});
});
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。