外贸网站中经常用到的工具:

  • Converter:cminch
  • Converter:inchcm

附上代码:

<ul>
	<li>
		<strong> Converter:</strong><input type="text"  id="ctictxt" /><b>cm</b><input type="text"  id="ctiitxt" value="0.00" /><b>inch</b> <input type="button" value="calculation" onclick="javascript:document.getElementById('ctiitxt').value=(parseFloat(document.getElementById('ctictxt').value==''?0:document.getElementById('ctictxt').value)*0.39370079).toFixed(2)" /> 
	</li>
	<li>
		<strong> Converter:</strong><input type="text"  id="itcitxt" /><b>inch</b><input type="text"  id="itcctxt" value="0.00" /><b>cm</b> <input type="button" value="calculation" onclick="javascript:document.getElementById('itcctxt').value=(parseFloat(document.getElementById('itcitxt').value==''?0:document.getElementById('itcitxt').value)*2.54).toFixed(2)" /> 
	</li>
</ul>