Wix menu code, trying to collapse strips


So this is currently a part of my website. Im developing a custom menu for all pages using strips to drop down and split into the below. This is an example of one of them. It is simple enough and i have made it so the strips expand when the user puts there mouse over the hover box in the menu, and again collapse when the mouse leaves the hover box. Only issue im facing and i cannot get my head around how to fix it (with no knowledge of coding at all) is how I can make it so that the user can go into the strip to select the page they want to go to, whilst also making the strip close if they just hover across it and never actually put there mouse into the strip itself? Hope I am explaining that well, but I just need the strip to collapse either when the user moves there mouse away from it, or if the user hovers over another tab to close this one and open the one they want. If anyone has any idea how to do this or some basic code that would help me, that would be appreciated