Sergilemek

document.querySelectorAll('.head_nav li').forEach(function (item) { item.addEventListener('mouseover', function (event) { if (item.textContent.includes('PRODUCTS') || item.textContent.includes('SERVICES') || item.textContent.includes('SOLUTIONS') || item.textContent.includes('ABOUT US')) { event.preventDefault(); document.querySelectorAll('.dropdown-menu-item').forEach(function (menuItem) { menuItem.style.display = 'none'; }); if (item.textContent.includes('PRODUCTS')) { document.getElementById('products-menu').style.display = 'block'; } else if (item.textContent.includes('SERVICES')) { document.getElementById('services-menu').style.display = 'block'; } else if (item.textContent.includes('SOLUTIONS')) { document.getElementById('solutions-menu').style.display = 'block'; } else if (item.textContent.includes('ABOUT US')) { document.getElementById('about-us-menu').style.display = 'block'; } } }); }); window.addEventListener('scroll', function () { document.querySelectorAll('.dropdown-menu-item').forEach(function (menuItem) { menuItem.style.display = 'none'; }); });