I'm relatively new at coding, but I'm building a website and want to add some simple event handlers to make a button show when the mouse hovers over an image. I've copied the code from the event handler tutorial $w("#button4").show() and it won't work in my preview. I don't really have enough experience to debug what's going on and I'm wondering if y'all can help! Thanks!!!
top of page
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
bottom of page
Thank you!!
You need a mouseIn event handler for the image, not for the button. In that event handler, you then show() the button. You want something like this:
export function image1_mouseIn(event, $w) { $w("#button4").show(); }
export function button4_mouseIn(event, $w) { $w("#button4").show() //Add your code for this event here: }
Post your code so that we can see what you're trying to do.