Show/Hide not working. Help!

Hi there,

I have tried to add some code to show and hide tool tips to my images so that when hovering over the icons, a tool tip displays giving a brief explanation.

I have followed the instructions provided by WIX with no avail.

Please can you help! I will list the code below along with the URL to the live site.

Cheers,
Luca

Site:
https://lucapope94.wixsite.com/mysite-1

Code:
export function peopleToolTip_mouseIn(event) {
//Add your code for this event here:
}
$w(‘#peopleGroup’).show();

export function peopleToolTip_mouseOut(event) {
//Add your code for this event here:
}$w(‘#peopleGroup’).hide();

You have to put the show() and hide() lines inside the function block:

export function peopleToolTip_mouseIn(event) {
$w('#peopleGroup').show();
} 
export function peopleToolTip_mouseOut(event) {
$w('#peopleGroup').hide();
}

Okay, is there a reason peopleGroup is repeated twice? I entered that code and received the error below:

public/pages/hp44z.js: Unexpected character ‘#’ (2:17)
1 | export function peopleToolTip_mouseIn(event) { >
2 | $w(‘#peopleGroup#peopleGroup’).show(); | ^
3 | }
4 | export function peopleToolTip_mouseOut(event) {
5 | $w(‘#peopleGroup#peopleGroup’).hide();

@lucapope No. it should be 1 time only. It’s a bug in this forum (it duplicates the hashed strings)

@jonatandor35 Thanks for clarifying. I am about to pull my hair out :open_mouth: Still not working?!