doesnt work. how can I resolve the pb

$w.onReady(function () {
// Cache l’image de chargement au chargement de la page
$w(‘#mobileImage11’).hide();

// Lorsque le bouton est cliqué
$w('#button21').onClick(() => {
    // Affiche l'image de chargement
    $w('#mobileImage11').show();

    // Simuler un délai de chargement (3 secondes ici)
    setTimeout(() => {
        // Masque l'image de chargement après 3 secondes
        $w('#mobileImage11').hide();
    }, 3000);
});

});

Product:
[Which editor or feature is your question most relevant to? e.g. Wix Editor, Wix Studio Editor, Editor X.]

What are you trying to achieve:
[Explain the details of what you are trying to achieve. The more details you provide, the easier it is to understand what you need.]

What have you already tried:
[Share resources, forum topics, articles, or tutorials you’ve already used to try and answer your question.]

Additional information:
[Include any other pertinent details or information that might be helpful for people to know when trying to answer your question.]

Si vous écriviez votre POST en anglais et codiez votre code en anglais, vous obtiendrez certainement plus de réponses.

N’oubliez pas que 90 % de la programmation doit être réalisée en anglais.

1 Like