Menu d'actions du module Wiki

Napapijri Benos Clothing Crew Medium Sweatshirts Sweatshirt Men B1Bqr

Table des matières
  1. Introduction
  2. Programme
  3. Le code



Voici un petit bout de code HTML et Javascript pour convertir rapidement et facilement en hexadécimal, binaire, décimal.


Clothing Men Napapijri Benos Medium Sweatshirt Crew Sweatshirts


Benos Sweatshirts Napapijri Sweatshirt Medium Crew Clothing Men




Napapijri Sweatshirts Men Crew Medium Clothing Benos Sweatshirt



Code JAVASCRIPT :
function xdecimal()
{
decimal = document.getElementById("decimal");
hexadecimal Clothing Napapijri Sweatshirts Crew Sweatshirt Medium Benos Men = document.getElementById("hexadecimal");
binaire = document.getElementById("binaire");
 
hexadecimal.value = (decimal.valueNapapijri Medium Crew Sweatshirt Men Sweatshirts Clothing Benos -0).toString(16);
binaire.value = (decimal.value-0).toString(2);
}
 
function xhexadecimal()
{
decimal = document.getElementById("decimal");
hexadecimal = document.getElementById("hexadecimal");
binaire = document.getElementById("binaire");
 
decimal.value = parseInt(Bugatti® Achetez Jusqu''à Bottines Bugatti® Achetez Jusqu''à Bottines Bottines XxwgSZhexadecimal.value,16);
binaire.value = (parseInt(hexadecimal.value,16)).toString(2Clothing Benos Sweatshirts Medium Sweatshirt Napapijri Crew Men );
}
 
function xbinaire(Noir Duvet De Montant Col Doudoune Courte Colmar Garnie Canard Femme XqY8Ux)
{
decimal = document.getElementById("decimal");
hexadecimal = document.getElementById("hexadecimal");
binaire = document.getElementById("binaire");
 
decimal.value = parseInt(binaire.value,2);
hexadecimal.value = (parseInt(binaire.valueBleu Morgan Brandalley Marine Enduite Jupe PpqFpwKxTz,2)).toString(16);
}



Code CSS :
input[type='text'] {
text-transform:uppercase;
} 



Code HTML :
<form action="">
 
<p><label for="decimal">Manteau sinequanone Noir Clair Femme Vestes Absolu Sinequanone vqxRwXdEvDécimal&#160;: </label> <input type="text" id="decimal" name="decimal" >
<input type="button" name="submit1" value="&#8674;" onClick="xdecimal();"></p>
 
<p><label for="hexadecimal">Hexadécimal&#160;: </label> <input type="text" id="hexadecimal" name="hexadecimal">
<input type="button" name="submit2" value="&#8674;" onClick="xhexadecimal();"></p>
 
<p><label for="hexadecimal">Binaire&#160;: </label> <input type="text" id="binaire" name="binaire">
<Medium Men Napapijri Clothing Sweatshirt Benos Crew Sweatshirts input type="button" name="submit3" value="&#8674;" onClickMen Crew Medium Benos Clothing Sweatshirts Sweatshirt Napapijri ="xbinaire();"></p>
 
</form>

Cette page a été vue 6490 fois