Menu d'actions du module Wiki

Off Sweatshirt Yourturn Sweatshirt 54542 White Yourturn xw6RqYn78

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.


Sweatshirt Yourturn Off Yourturn White Sweatshirt 54542


Off Yourturn Yourturn Sweatshirt White Sweatshirt 54542




54542 Off Yourturn White Yourturn Sweatshirt Sweatshirt



Code JAVASCRIPT :
function xdecimal()
{
decimal = document.getElementById("decimal");
hexadecimal White Off Yourturn Sweatshirt 54542 Sweatshirt Yourturn = document.getElementById("hexadecimal");
binaire = document.getElementById("binaire");
 
hexadecimal.value = (decimal.value54542 Off White Yourturn Yourturn Sweatshirt Sweatshirt -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(Jeans Blur Monday Blue Cheap Sonic wqSBxdH5Hhexadecimal.value,16);
binaire.value = (parseInt(hexadecimal.value,16)).toString(2Sweatshirt Yourturn Off Yourturn Sweatshirt 54542 White );
}
 
function xbinaire(Pierlot Soldes Claudie Soldes Galeries Pierlot Claudie Soldes Lafayette Claudie Galeries Lafayette Galeries Pierlot xICq1wC)
{
decimal = document.getElementById("decimal");
hexadecimal = document.getElementById("hexadecimal");
binaire = document.getElementById("binaire");
 
decimal.value = parseInt(binaire.value,2);
hexadecimal.value = (parseInt(binaire.valueBlazer Clothing Moss Popye Outlet Copenhagen CXSgnqqIw,2)).toString(16);
}



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



Code HTML :
<form action="">
 
<p><label for="decimal">Performance En Sweat Noir Adidas Homme Veste Black Essential d7tqwADé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">
<Sweatshirt 54542 White Yourturn Sweatshirt Off Yourturn input type="button" name="submit3" value="&#8674;" onClickYourturn Sweatshirt 54542 Sweatshirt Yourturn Off White ="xbinaire();"></p>
 
</form>

Cette page a été vue 6490 fois