I am trying to get a container box to disappear when a mouse rolls over it and a different box to appear instead. (I know you can do this with hover boxes but with the hover box it won’t let me change the opacity of the image on hover and put text over it. The opacity only shows when the mouse is around the text on the image not on the whole).
This is what I have tried but can’t get it to work, there is also a parsing error saying Export may only show at the top level, there is nothing above the code on this page:
$w.onReady( function () {
export function currentDefault_mouseIn(event) {
//Add your code for this event here:
$w( ‘#currentDefault’ ).hide();
$w( ‘#currentMouse’ ).show()();
}
export function currentMouse_mouseOut(event) {
//Add your code for this event here:
$w( ‘#currentDefault’ ).show();
$w( ‘#currentMouse’ ).hide()();
}
});
Would really appreciate any help! Thank you.