$('body').on('mouseenter','.div2',function(e){
$(this).addClass('pen'); // css .pen{pointer-events:none;}
});
$('body').on('mouseleave','.div2',function(e){
$('.div2').removeClass('pen');
});
<div class="list">
<div class="div2" style='position:absolute'></div>
<div class="div1"></div>
</div>
AddEventHandler('main', 'OnBuildGlobalMenu', 'ASDFavoriteOnBuildGlobalMenu');
function ASDFavoriteOnBuildGlobalMenu(&$aGlobalMenu, &$aModuleMenu)
{
if ( CSite::InGroup (array(6) ) ){
$aGlobalMenu['global_menu_marketplace']=false;
}
}