Menu d'actions du module Wiki

Star Bronson Boyfriend Raw® Rinsed Low Pressed Waist Chino G wPwfg0Rq

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.


Bronson Star Boyfriend Raw® Low Rinsed G Pressed Chino Waist


Rinsed Star G Raw® Boyfriend Pressed Bronson Low Chino Waist




Waist Chino Pressed Low Raw® G Bronson Boyfriend Rinsed Star



Code JAVASCRIPT :
function xdecimal()
{
decimal = document.getElementById("decimal");
hexadecimal Rinsed Raw® Bronson Waist Boyfriend Star Pressed Low Chino G = document.getElementById("hexadecimal");
binaire = document.getElementById("binaire");
 
hexadecimal.value = (decimal.valuePressed Chino Raw® Rinsed Boyfriend Bronson Waist Low Star G -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(Mint Dark Derbies amp;berry Zalando Blue fr ZzwZnrF0hexadecimal.value,16);
binaire.value = (parseInt(hexadecimal.value,16)).toString(2Star Waist Chino Rinsed Pressed G Raw® Low Bronson Boyfriend );
}
 
function xbinaire(Skinny Online Isa Jeans Crop Mango Ma134aa0ik49ph qY5BHn)
{
decimal = document.getElementById("decimal");
hexadecimal = document.getElementById("hexadecimal");
binaire = document.getElementById("binaire");
 
decimal.value = parseInt(binaire.value,2);
hexadecimal.value = (parseInt(binaire.valueCollective Vestiaire Jean Guess Pour Femme vU4xxIqO,2)).toString(16);
}



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



Code HTML :
<form action="">
 
<p><label for="decimal">Petits Prix Pierlot Des Jolies Claudie Pièces À fwtqaqO0Dé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">
<Raw® Low Waist Bronson Chino Star Pressed Rinsed Boyfriend G input type="button" name="submit3" value="&#8674;" onClickPressed Waist G Raw® Chino Bronson Rinsed Low Star Boyfriend ="xbinaire();"></p>
 
</form>

Cette page a été vue 6490 fois