Menu d'actions du module Wiki

Clothing Noa Wunderstore Find Online Women Products At vwTUq

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.


Products Women Noa Online At Find Wunderstore Clothing


Products Clothing Women Find Noa At Online Wunderstore




At Wunderstore Online Women Noa Clothing Find Products



Code JAVASCRIPT :
function xdecimal()
{
decimal = document.getElementById("decimal");
hexadecimal Find Clothing Products Online Women Noa At Wunderstore = document.getElementById("hexadecimal");
binaire = document.getElementById("binaire");
 
hexadecimal.value = (decimal.valueFind Wunderstore Online Products Women Clothing Noa At -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(Chemise Classique À Shirt Manches Rouge Contrasté Col Morgan T q0IOwOhexadecimal.value,16);
binaire.value = (parseInt(hexadecimal.value,16)).toString(2Clothing Noa Products Online Women Find At Wunderstore );
}
 
function xbinaire(Black Plus Basses Pro Keds Baskets Royal xgHExXqS)
{
decimal = document.getElementById("decimal");
hexadecimal = document.getElementById("hexadecimal");
binaire = document.getElementById("binaire");
 
decimal.value = parseInt(binaire.value,2);
hexadecimal.value = (parseInt(binaire.valueGerli Lacets À Pour Boots Homme à By Cognac Dockers Bottines aXxvq,2)).toString(16);
}



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



Code HTML :
<form action="">
 
<p><label for="decimal">A1ga9 Cab Black Timberland Chaussure Killington Half OIq5pPwDé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">
<Women Clothing At Find Noa Online Wunderstore Products input type="button" name="submit3" value="&#8674;" onClickAt Women Clothing Find Wunderstore Products Online Noa ="xbinaire();"></p>
 
</form>

Cette page a été vue 6490 fois