So I’ve created a simple menu. You hover your mouse over a button and it reveals a big menu under it, when you hover on the button or the “box” object that I’ve put there the menu stays open. When you get out of any of these objects the menu disappears.
It’s a simple code that worked perfectly for two menus, side by side. I added a third menu next to those 2 buttons. When I place the box at some random place at the first iteration, the show/hide commands work fine. But as soon as I place it next to the existing menus, the box won’t show up at all, even when I place it somewhere else too.
Code;
export function kidsButton_mouseIn(event) {
$w( “#kidsMenu” ).show();
}
export function kidsButton_mouseOut(event) {
$w( “#kidsMenu” ).hide();
}
Names, and events are all connected, so there’s no syntax, or errors. I think it is an issue on Wix’s engine. Maybe it happens when 3 boxes collide, but I couldn’t seem to find a way around it. I could use any help. It is a really simple thing yet I cannot get rid of it, and it’s frustrating.
Hello Okan,
you have to be carefull, where you put your button into or onto.
If your button is positioned directly on the site-page, or if you positioning your button into a STRIPE or a BOX.
If that STRIPE or BOX is setted to invisible or collapsed status, then your button also will not be visible, because the parent-element is invisible.
But this is just a supposition, because can not see your project.
Thank you for the quick reply!
The boxes are attached to buttons. One box for one button. The box should be set to “invisible on load” so that when I hover on the button it can be shown with show() command.
But while testing I’ve noticed, even if the box is not set to be invisible nor the button, when I attach the box to the button the box goes invisible and is never seen again, not with any command too.
Okay I now get it. Since that menu area is crowded with multiple boxes, as I attached the box to its desired button, I kept attaching it to one of the boxes there, so it was left invisible as its parent stayed invisible. I just placed the box under the button somewhere else then moved it with coordinates, and problem solved!
Thank you for your attention!
No problem, i had the same problems when i was starting with Wix-Corvid 