生活百宝箱在线翻译
google.load("language", "1"); function textCounter(sElement, maxlimit) { field = sElement; if (field.value.length > maxlimit){ field.value = field.value.substring(0, maxlimit); } else{ document.getElementById("remLen").innerHTML = maxlimit - field.value.length; } if (field.value.length == maxlimit){ alert("请将字符限制在500个以内"); } }function translate(){ cValue = document.getElementById("content").value; if(cValue == ""){ alert("请填写要翻译的内容"); return false; } var container = document.getElementById("contentout"); $("#contentout").show(); container.innerHTML = 'Loading...'; getTransType(); } function getTransType(){ var langpair = document.getElementById('langpair'); var transType = langpair.options[langpair.selectedIndex].value.split('|'); var text = document.getElementById("content").value; google.language.translate(text, transType[0], transType[1], translated);}function translated(result) { if (!result.error) { var container = document.getElementById("contentout"); container.innerHTML = result.translation; container.style.width="95%"; container.style.border = "1px solid #3399FF"; } else{ document.getElementById('contentout').innerHTML="提示:
文章无法翻译,可能系统忙,请稍后再试。" }}
Yahoo翻译
Google翻译
最多可以输入500个字
textCounter(document.getElementById('content'), 500);
Google翻译网页

百度词典

其他在线翻译