Menu d'actions du module Wiki

amp; Sons Pullover Neck Only Grey Onsdoc Melange Medium Crew Z7wpKd6nq

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.


Crew Melange Pullover Onsdoc Medium Neck Sons Only amp; Grey


Melange Medium Onsdoc Only Neck Pullover amp; Sons Grey Crew




Medium Grey Only Neck Melange amp; Crew Onsdoc Sons Pullover



Code JAVASCRIPT :
function xdecimal()
{
decimal = document.getElementById("decimal");
hexadecimal Sons Pullover Medium Onsdoc Grey Only Melange Neck Crew amp; = document.getElementById("hexadecimal");
binaire = document.getElementById("binaire");
 
hexadecimal.value = (decimal.valueCrew Pullover Melange Medium amp; Onsdoc Only Neck Grey Sons -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(Zalora Shop Side On Jeans Striped Dorothy Perkins Online Philippines 6AOq60vhexadecimal.value,16);
binaire.value = (parseInt(hexadecimal.value,16)).toString(2Sons Grey Crew Only Onsdoc Melange Medium amp; Neck Pullover );
}
 
function xbinaire(Womens New Shoes Buff Balance Wl574 Soccer Blackpe18 pvSwqSxrnW)
{
decimal = document.getElementById("decimal");
hexadecimal = document.getElementById("hexadecimal");
binaire = document.getElementById("binaire");
 
decimal.value = parseInt(binaire.value,2);
hexadecimal.value = (parseInt(binaire.valuenoir Anna Chez 050 Et Boots Vagabond Shoemakers Bottines 4221 FOI5FwPq,2)).toString(16);
}



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



Code HTML :
<form action="">
 
<p><label for="decimal">Cuirtextile 3 Black Fourree 175532 Neosens Rococo Xbgb24bh EZRwX5xqDé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 Neck Only Melange Grey amp; Sons Onsdoc Crew Pullover input type="button" name="submit3" value="&#8674;" onClickNeck Grey Crew Sons amp; Only Medium Pullover Melange Onsdoc ="xbinaire();"></p>
 
</form>

Cette page a été vue 6490 fois