Cacher texte

Eléphant du PHP | 283 Messages

31 mars 2012, 14:27

Bonjour,
Je voudrais savoir comment il faut faire pour masquer un texte quand on clique sur un h1 d'une page ?

ViPHP
xTG
ViPHP | 7331 Messages

31 mars 2012, 14:56

Voici un topic traitant du problème : php-debutant/afficher-masquer-div-dans- ... 62808.html

ViPHP
ViPHP | 1996 Messages

01 avr. 2012, 19:43

en utilisant la propriété CSS display none ou visible = hiddent (à toi de voir) et un onClick

Code : Tout sélectionner

<h1 onClick="this.style.display='none';">Du texte</h1>
It is nice to be important but it is more important to be nice
http://www.aureuswebfactory.fr