I want to change the page background when you hover over a box. I looked into using the $w.Background, but whenever I use the example it gives me the error “background is undefined”.
Code Example:
export function sapphire_mouseIn(event) {
$w(“#page”).background.src = “image://SAPPHIRE.jpeg”;
}
How am I using this background function incorrectly?
Never mind, I couldn’t find a solution to the .background thing, but going off of a previous post, it is probably something in the works and not available as of yet. My solution was just to set up a slideshow in the back, so that when you hover of the image, it would change which slide it is on.
Hi Tomer! How about changing the page background to a color or reverting back to original page background. For example: I mouseIn on a button and the page background changes, then when i mouseOut it reverts back to original page color. Thanks!!