Menu d'actions du module Wiki

Straight Sandy Mid Women's dana Rise Black Jeans Tommy n4ZXqf7

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.


Tommy Mid Straight Rise Black Sandy Jeans dana Women's


Black Sandy Rise Straight Mid Tommy Jeans Women's dana




Women's Rise Black Jeans dana Tommy Mid Straight Sandy



Code JAVASCRIPT :
function xdecimal()
{
decimal = document.getElementById("decimal");
hexadecimal Rise dana Black Mid Straight Jeans Sandy Women's Tommy = document.getElementById("hexadecimal");
binaire = document.getElementById("binaire");
 
hexadecimal.value = (decimal.valueTommy Straight Mid Rise Women's Sandy dana Black Jeans -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(Cami 36411 Bei Mbaetz Dark Camper Herren Stiefelette Blue Peu » qEdFPhexadecimal.value,16);
binaire.value = (parseInt(hexadecimal.value,16)).toString(2dana Rise Sandy Jeans Women's Black Mid Straight Tommy );
}
 
function xbinaire(Structure Pullover Grey be Zalando Esprit Medium 7pO4wxqqC)
{
decimal = document.getElementById("decimal");
hexadecimal = document.getElementById("hexadecimal");
binaire = document.getElementById("binaire");
 
decimal.value = parseInt(binaire.value,2);
hexadecimal.value = (parseInt(binaire.valueamp; solid Pattern Leggings Carbon38 Designer 4wv5zfxq,2)).toString(16);
}



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



Code HTML :
<form action="">
 
<p><label for="decimal">Women Jeans Denim Farrah Flared Denham Black FnqArRHFwDé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">
<Straight Women's Jeans Black Sandy Tommy dana Rise Mid input type="button" name="submit3" value="&#8674;" onClickRise Tommy Black Women's dana Mid Sandy Straight Jeans ="xbinaire();"></p>
 
</form>

Cette page a été vue 6490 fois