Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamically adjusting the background color of a table
Message
De
06/04/2002 13:23:55
 
 
À
06/04/2002 11:44:48
Information générale
Forum:
Internet
Catégorie:
Javascript
Divers
Thread ID:
00639342
Message ID:
00641835
Vues:
20
>>Check whether this is what you need:
>>
>>document.getElementById('MyTable').style.display='none';
>>document.getElementById('MyTable').style.backgroundColor='#CCCCCC';
>>document.getElementById('MyTable').style.display='block';
>>
>
>I tried:
>
>
>document.getElementById('MyTable').style.display='none';
>document.getElementById('MyTable').style.backgroundColor='FFFFFF';
>document.getElementById('MyTable').style.display='';
>
>
>but, that is still the same. It works on the first try. Then, on another other try to go with another color, it is locked.

What version of NS have you tested?
It works on:

Netscape 6.2.2
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4.1) Gecko/20020314 Netscape6/6.2.2

btw. the second command is
document.getElementById('MyTable').style.display='block';
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform