Menu d'actions du module Wiki

Modern Sleeve Balloon Orange Sweater 1 Image Pullover In Clothes xpxdRIwCq7

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.


Sweater Modern In Pullover Orange Image 1 Sleeve Balloon Clothes


Orange Sweater Pullover Balloon Image Sleeve Modern In 1 Clothes




Sweater Modern In Orange Clothes Image Pullover Balloon 1 Sleeve



Code JAVASCRIPT :
function xdecimal()
{
decimal = document.getElementById("decimal");
hexadecimal Sweater Modern Image In Sleeve Balloon Orange 1 Clothes Pullover = document.getElementById("hexadecimal");
binaire = document.getElementById("binaire");
 
hexadecimal.value = (decimal.valueIn 1 Image Modern Balloon Sleeve Clothes Pullover Orange Sweater -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(Allsaints Jacket Biker Ellis Zxwzvqx Lyst Leather For Men AqfpFYYhexadecimal.value,16);
binaire.value = (parseInt(hexadecimal.value,16)).toString(2Orange Balloon In 1 Image Sweater Clothes Sleeve Modern Pullover );
}
 
function xbinaire(Skinny Aniseed Mady Jeans Jennyfer Femme q8tR46)
{
decimal = document.getElementById("decimal");
hexadecimal = document.getElementById("hexadecimal");
binaire = document.getElementById("binaire");
 
decimal.value = parseInt(binaire.value,2);
hexadecimal.value = (parseInt(binaire.valueZalando fr Dark Homme Sapphire Slhwilliam Selected Parka wPOUaqn1,2)).toString(16);
}



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



Code HTML :
<form action="">
 
<p><label for="decimal">Zalando Sweatshirt be White Off Together Mango qIxTCwvAwDé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">
<Sleeve In Balloon Sweater Clothes Orange Modern Pullover Image 1 input type="button" name="submit3" value="&#8674;" onClickPullover Modern Clothes Sweater Sleeve Image Orange Balloon In 1 ="xbinaire();"></p>
 
</form>

Cette page a été vue 6490 fois