foo.js

What is foo.js & where can I find it ?

Hi!

Can you please elaborate?
Is this what you meant?

If not please give us an example or reference to what you’re looking for.

Doron. :slight_smile:

When I type “XXX_MouseIn.event”, I can reand this kind of warning : “‘event’ is not defined in foo.js”.

Please provide a screenshot of the error/event.

Doron.

Hi Toff,
Your if statement is incorrect.
If you wish to add a mouseIn and mouseOut events to your elements the syntax is a bit different.
Here is an example of how It should look:

$w.onReady(() => { 
  $w('#text41').onMouseIn( (event, $w) => { // assuming that text41 is a name of a text element 
    $w('#otherElement').show(); // other element that you want to show
  });
  $w('#text41').onMouseOut( (event, $w) => {
    $w('#otherElement').hide();
  });
});

Good luck!
Roi.