Oldalon, általam elhelyezett adathalászat vagy cookie nincs.
Google EU cookie szabályzata.
Megtekinti?
vagy
1.Inch(in)= Hüvelyk = 2,54cm
1.zoll= 2,633cm (bécsi hüvelyk)
1.Foot(ft)= Láb = 30,48cm
1.Yard(yd)= (rőf) = 3ft = 91,44cm
1.ÖL = 189,6cm
1.Verszt = 1.067km
1.Mile(mile)=Mérföld = 1760 yds = 1609,35 m
<div align="center"> <script language="JavaScript" type="text/javascript" src="hosszusagvalto.js"> </script> <form name="atalakito"> <table border="8" class="atvalto_tabla"> <tr><th>Típus</th><th>Érték</th></tr> <tr><td> <select name="egyseg"> <option value="MM">Miliméter <option value="CM">Centiméter <option value="DM">Deciméter <option value="M">Méter <option value="KM">Kilométer <option value="IN">Inch <option value="ZN">Zoll <option value="FT">Foot <option value="YD">Yard <option value="OL">ÖL <option value="VT">Verszt <option value="MI">Mérföld </select></td> <td><input type="text" name="Egysegbe" class="InpErtek" size="20" maxlength="20" value="0"></td></tr> <tr><td>Miliméter:</td> <td> <input type="text" name="mm" class="InpErtek" size="20" maxlength="20" value="0" onFocus="Nfokusz()"> </td></tr> <tr><td>Centiméter:</td> <td> <input type="text" name="cm" class="InpErtek" size="20" maxlength="20" value="0" onFocus="Nfokusz()"> </td></tr> <tr><td>Deciméter:</td> <td> <input type="text" name="dm" class="InpErtek" size="20" maxlength="20" value="0" onFocus="Nfokusz()"> </td></tr> <tr><td>Méter:</td> <td> <input type="text" name="m" class="InpErtek" size="20" maxlength="20" value="0" onFocus="Nfokusz()"> </td></tr> <tr><td>Kilométer:</td> <td> <input type="text" name="km" class="InpErtek" size="20" maxlength="20" value="0" onFocus="Nfokusz()"> </td></tr> <tr><td>Inch:</td> <td> <input type="text" name="inch" class="InpErtek" size="20" maxlength="20" value="0" onFocus="Nfokusz()"> </td></tr> <tr><td>Zoll:</td> <td> <input type="text" name="zoll" class="InpErtek" size="20" maxlength="20" value="0" onFocus="Nfokusz()"> </td></tr> <tr><td>Foot:</td> <td> <input type="text" name="ft" class="InpErtek" size="20" maxlength="20" value="0" onFocus="Nfokusz()"> </td></tr> <tr><td>Yard:</td> <td> <input type="text" name="yd" class="InpErtek" size="20" maxlength="20" value="0" onFocus="Nfokusz()"> </td></tr> <tr><td>ÖL:</td> <td> <input type="text" name="ol" class="InpErtek" size="20" maxlength="20" value="0" onFocus="Nfokusz()"> </td></tr> <tr><td>Verszt:</td> <td> <input type="text" name="vt" class="InpErtek" size="20" maxlength="20" value="0" onFocus="Nfokusz()"> </td></tr> <tr><td>Mérföld:</td> <td> <input type="text" name="mi" class="InpErtek" size="20" maxlength="20" value="0" onFocus="Nfokusz()"> </td></tr> <tr><td align="center"><br /> <input type="Reset" class="InpErtek" value="Start Újra"><br /><br /></td> <td align="center"><br /> <input type="button" class="InpErtek" value="Átváltás" onClick="Atvaltas()"><br /><br /> </td></tr> </table> </form> </div>
Nincs, stílusmeghatározás
function Nfokusz() { document.atalakito.Egysegbe.focus() } var mmValue = 0.1 var cmValue = 1 var dmValue = 10 var mValue = 100 var kmValue = 100000 var inValue = 2.54000843476 var znValue = 2.633 var ftValue = 30.4801012183 var ydValue = 91.440275784 var olValue = 189.6 var vtValue = 106700 var miValue = 160934.708789 function Atvaltas() { var i = document.atalakito.egyseg.selectedIndex var azEgyseg = document.atalakito.egyseg.options[i].value if (azEgyseg == "CM") { document.atalakito.cm.value = document.atalakito.Egysegbe.value } else if(azEgyseg == "MM") { document.atalakito.cm.value = document.atalakito.Egysegbe.value * mmValue } else if(azEgyseg == "DM") { document.atalakito.cm.value = document.atalakito.Egysegbe.value * dmValue } else if(azEgyseg == "M") { document.atalakito.cm.value = document.atalakito.Egysegbe.value * mValue } else if(azEgyseg == "KM" ) { document.atalakito.cm.value = document.atalakito.Egysegbe.value * kmValue } else if(azEgyseg == "IN" ) { document.atalakito.cm.value = document.atalakito.Egysegbe.value * inValue } else if(azEgyseg == "ZN" ) { document.atalakito.cm.value = document.atalakito.Egysegbe.value * znValue } else if(azEgyseg == "FT" ) { document.atalakito.cm.value = document.atalakito.Egysegbe.value * ftValue } else if(azEgyseg == "YD" ) { document.atalakito.cm.value = document.atalakito.Egysegbe.value * ydValue } else if(azEgyseg == "OL" ) { document.atalakito.cm.value = document.atalakito.Egysegbe.value * olValue } else if(azEgyseg == "VT" ) { document.atalakito.cm.value = document.atalakito.Egysegbe.value * vtValue } else if(azEgyseg == "MI" ) { document.atalakito.cm.value = document.atalakito.Egysegbe.value * miValue } Eredmenyek() } function Eredmenyek() { var m = document.atalakito.cm.value document.atalakito.mm.value = m / mmValue document.atalakito.dm.value = m / dmValue document.atalakito.m.value = m / mValue document.atalakito.km.value = m / kmValue document.atalakito.inch.value = m / inValue document.atalakito.zoll.value = m / znValue document.atalakito.ft.value = m / ftValue document.atalakito.yd.value = m / ydValue document.atalakito.ol.value = m / olValue document.atalakito.vt.value = m / vtValue document.atalakito.mi.value = m / miValue }