Version compl�te: jsB@nk » Calcul » Équivalent » Byte Converter
URL: https://www.javascriptbank.com/byte-converter.html
Utilisez cette JavaScript pour convertir octets, kilo-octets, méga-octets et giga-octets. Rapide et facile à utiliser.
Version compl�te: jsB@nk » Calcul » Équivalent » Byte Converter
URL: https://www.javascriptbank.com/byte-converter.html
<style type="text/css">#example { border: 2px solid #FFCF31; color: #fff; background-color: #00009C;}#example td { border: none;}</style><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<script language="javascript">// Created by: Uncle Jim :: http://jdstiles.com/javamain.htmlfunction convert(f) { f.kb.value=Math.round(f.byte.value/1024*100000)/100000 f.mb.value=Math.round(f.byte.value/1048576*100000)/100000 f.gb.value=Math.round(f.byte.value/1073741824*100000)/100000}function convertkb(f) { f.byte.value=Math.round(f.kb.value*1024*100000)/100000 f.mb.value=Math.round(f.kb.value/1024*100000)/100000 f.gb.value=Math.round(f.kb.value/1048576*100000)/100000}function convertmb(f) { f.byte.value=Math.round(f.mb.value*1048576*100000)/100000 f.kb.value=Math.round(f.mb.value*1024*100000)/100000 f.gb.value=Math.round(f.mb.value/1024*100000)/100000}function convertgb(f) { f.byte.value=Math.round(f.gb.value*1073741824*100000)/100000 f.kb.value=Math.round(f.gb.value*1048576*100000)/100000 f.mb.value=Math.round(f.gb.value*1024*100000)/100000}</script><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<form><table id="example" cellpadding="3" cellspacing="3"><tr> <td align="center">Byte</td><td align="center">Kilobyte</td><td align="center">Megabyte</td><td align="center">Gigabyte</td></tr><tr> <td align="center"> <input type="text" size="10" name="byte" value="0"></td><td align="center"><input type="text" size="10" name="kb" value="0"></td><td align="center"><input type="text" size="10" name="mb" value="0"></td><td align="center"><input type="text" size="10" name="gb" value="0"></td></tr><tr> <td align="center"><input type="button" name="B2" value=" > " onClick="convert(this.form)"></td><td align="center"><input type="button" name="B22" value=" < > " onClick="convertkb(this.form)"></td><td align="center"><input type="button" name="B23" value=" < > " onClick="convertmb(this.form)"></td><td align="center"><input type="button" name="B24" value=" < " onClick="convertgb(this.form)"></td></tr></table></form><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->