Comment clignoter une ligne d'un tableau html
Résolu
Bonjour,
comment on fait pour rendre une ligne d'un tableu clignotante. seulement son background.
merci
comment on fait pour rendre une ligne d'un tableu clignotante. seulement son background.
merci
Configuration: Windows Vista Internet Explorer 7.0
2 réponses
-
je vien de retrouver un source que j'ai modifier
<html>
<body>
<DIV ID="coucou" STYLE="background:#C3C;"><font size="5" color="black">Texte qui doit clignoter</font></DIV>
<SCRIPT>
function cacher_montrer() {
if(document.getElementById('coucou').style.background = '#C3C')
{
setTimeout("document.getElementById('coucou').style.background = '#FFFFFF';",100);
}
else
{
setTimeout("document.getElementById('coucou').style.background = '#FFFFFF';",100);
}
}
setInterval("cacher_montrer();",200)
</SCRIPT>
</body>
</html> -
Bonjour,
Voila les ingrédients :
avec du javascript, la fonction setinterval et document.getElementByID().style.backgroundColor
Sinon google et les fonctions de recherche te retrouveront des codes déjà codés en entier.