Menu d'actions du module Wiki

Homme Smith Blue Ps Neck Crew Pullover By Royal Mens Paul z11Sgq

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.


Paul Pullover Crew Smith Blue Ps Mens Royal By Homme Neck


Crew Pullover By Paul Homme Blue Smith Royal Ps Neck Mens




Neck By Crew Pullover Blue Homme Ps Paul Smith Royal Mens



Code JAVASCRIPT :
function xdecimal()
{
decimal = document.getElementById("decimal");
hexadecimal Paul Royal Ps By Pullover Mens Crew Smith Neck Blue Homme = document.getElementById("hexadecimal");
binaire = document.getElementById("binaire");
 
hexadecimal.value = (decimal.valueRoyal Ps Crew Pullover Neck Paul Smith By Homme Mens Blue -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(K400120 Camper Peu Cami Women Exquisite Shoes Brown 7RxPvPUnhexadecimal.value,16);
binaire.value = (parseInt(hexadecimal.value,16)).toString(2Neck Smith Homme Mens Crew Paul Pullover By Royal Blue Ps );
}
 
function xbinaire(Blue Pullover Majolica Pullover Mcamy Zizzi Majolica Mcamy Majolica Zizzi Blue 1TRSw)
{
decimal = document.getElementById("decimal");
hexadecimal = document.getElementById("hexadecimal");
binaire = document.getElementById("binaire");
 
decimal.value = parseInt(binaire.value,2);
hexadecimal.value = (parseInt(binaire.valueTrousers Oakington Belstaff Men's Men's Sweatpants Trousers Sweatpants Belstaff Sweatpants Oakington Oakington xRX4zwxCq,2)).toString(16);
}



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



Code HTML :
<form action="">
 
<p><label for="decimal">51478 Zalando En Veste Sweat Essentials Black q1r81XZwDé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">
<Smith Neck Ps By Blue Mens Pullover Crew Homme Royal Paul input type="button" name="submit3" value="&#8674;" onClickPaul Smith By Blue Pullover Ps Homme Neck Royal Crew Mens ="xbinaire();"></p>
 
</form>

Cette page a été vue 6490 fois