위: 아래 코드에 주의하세요. utf-8 형식으로 저장하는 것이 가장 좋습니다. 그렇지 않으면 쉽게 깨져서 표시되지 않습니다. 코드 복사 코드는 다음과 같습니다. head> javascript Kingsoft PowerWord 온라인 번역 🎜 > <BR>function $(id) { return document.getElementById(id) } function callScript(url, selected, error, charset) { <BR>var script = document.createElement("script"); <BR>if (typeof charset == "string") script.charset = <BR>script; . onreadystatechange = function() { <BR>switch (this.readyState) { <BR>case "complete": <BR>case "loaded": <BR>if (typeofloaded == "function")loaded(); <BR>if (script.parentNode) script.parentNode.removeChild(script); <BR>break; <BR>} <BR>} <BR>script.onload = function() { <BR>if (typeofloaded = = "함수") 로드됨(); <BR>if (script.parentNode) script.parentNode.removeChild(script); <BR>} <BR>script.onerror = function() { <BR>if (오류 유형 = = "함수") error(); <BR>if (script.parentNode) script.parentNode.removeChild(script); <BR>} <BR>script.type = "text/javascript"; = "true"; <BR>script.src = url; <BR>var parent = document.getElementsByTagName("HEAD")[0] || document.documentElement <BR>if (parent && parent.insertBefore) insertBefore (script, parent.firstChild) <BR>} <BR>function 버튼_translateClick() { <BR>var word = encodeURIComponent($("text_word").value) <BR>if (!word) { <BR> 경고(''); <BR>$("text_word").focus(); <BR>return <BR>} <BR>callScript("http://server.dict-co.iciba.com/ jsInterface .php?uiType=0&w=" 단어 "&type=6"); <BR>callScript("http://server.dict-co.iciba.com/jsInterface.php?uiType=0&w=" 단어 "&dict= Dict ,Tf,Enen,"); <BR>callScript("http://server.dict-co.iciba.com/jsInterface.php?uiType=0&w=" word "&dict=Dict,Tf,Enen,") ; <BR>callScript("http://server.dict-co.iciba.com/jsInterface.php?uiType=0&w=" word "&type=2") <BR>} <BR>function text_wordKeydown(e) { <BR>if (!e) e = window.event; <BR>switch (e.keyCode | e.which | e.charCode) { <BR>case 13: <BR>button_translateClick() <BR>break ; <BR>} <BR>} <BR>function LoveCallback(context) { <BR>$("div_context").innerHTML = context <BR>} <BR>function dictCallBack(context) { <BR>$( " div_head").innerHTML = context; <BR>} <BR>function tfCallback(context) { <BR>$("div_thesaurus").innerHTML = context <BR>} <BR>function En2enCallback(context) { <BR>$("div_en2en").innerHTML = context; <BR>} <BR>function djCallback(context) { <BR>$("div_dj").innerHTML = context; <BR>} <BR>function searchDictByWord( e ) { <BR>var element = typeof event != "undefine" ? event.srcElement : <BR>$("text_word").value = element.innerHTML <BR> > } <BR> ; /div> " >