まず、↓をtranslate.htmとして保存 <script language="vbscript"> <!-- Set oTextRange = external.menuArguments.document.selection.createRange strTranslate = oTextRange.text a=Asc(Left(strTranslate,1)) If 0<= a And a<=255 Then mode="ENJA" Else mode="JAEN" End If strURL = "http://www.excite.co.jp/world/text/?wb_lp=" & mode & "&before=" & strTranslate Set objIE = CreateObject("InternetExplorer.Application") With objIE Call .Navigate2( strURL ) .Visible = False Do While .Busy Or .ReadyState<>4
Loop strRet = strTranslate & "を翻訳すると…" & vbCrLf & .document.World.after.Value Call .Quit() End With Set objIE = Nothing window.alert strRet --> </script>