\n';
}
function getElementsByClassName(oElm, strTagName, strClassName){
var arrElements = (strTagName == "*" && document.all)? document.all : oElm.getElementsByTagName(strTagName);
var arrReturnElements = new Array();
strClassName = strClassName.replace(/\-/g, "\\-");
var oRegExp = new RegExp("(^|\\s)" + strClassName + "(\\s|$)");
var oElement;
for(var i=0; i');
$("#search").show();
$("#search").val(search_value);
setRandomSearchBoxName();
} else {
$(".for-popthai").show();
$("#logo-ads").addClass('popthai-mode');
$("#longdo-latest, #contents-showup").hide();
// $("#contents-showup").next().hide();
$("#contents-showup-popthai").show();
$('input.translate-type:checked').val('popthai');
$('#textboxPlaceholder').html('');
$("#search").text(search_value);
setRandomSearchBoxName();
if(obj === undefined) {
checkLan(search_value, $(".translate-language").val() == "Auto");
}
}
$("#search").focus();
return true;
}
function doSubmit(obj) {
var form_obj = obj ? obj.form : document.getElementById("dict");
$(form_obj).attr("method", 'post');
var search_value = $("#search").val();
$("#search").attr('name', "search");
$("#search").hide();
$(".for-popthai").hide();
$(".read-bt, .read-bt-accent").removeClass('translate');
var inpType = $('input.translate-type:checked').val();
if (inpType == 'translate') {
$("#longdo-latest, #contents-showup").show();
$("#contents-showup-popthai").hide();
$("#logo-ads").removeClass('popthai-mode');
$("#search").show();
$(".read-bt, .read-bt-accent").addClass('translate');
if(search_value != "" && !obj) {
window.location = "/search/" + escape(encodeURIComponent(search_value.replace(/\n\r?/g, ' ')));
return false;
} else {
$('#textboxPlaceholder').html('');
setRandomSearchBoxName();
}
} else {
$(".for-popthai").show();
$("#logo-ads").addClass('popthai-mode');
$("#longdo-latest, #contents-showup").hide();
$("#contents-showup-popthai").show();
var searchinput = $('#search');
value = search_value;
$('#textboxPlaceholder').html('');
setRandomSearchBoxName();
searchinput = document.getElementById('search');
searchinput.value = value;
searchinput.focus();
searchinput.select();
if(obj === undefined) {
checkLan(search_value, $(".translate-language").val() == "Auto");
}
}
$("#search").focus();
return true;
}
function checkLan(search_value, isChange) {
var langSelect = $(".translate-language");
if(isChange) {
if(/[-ヿ]/g.test(search_value)) {
langSelect.val('JP');
} else if(/[\u3400-\u9FBF]/g.test(search_value)) {
langSelect.val('ZH');
}
$(".is-auto-language").val('true');
} else {
$(".is-auto-language").val('false');
}
$(".search-bt").prop('disabled', true);
}
function isUrl(url) {
var pattern = /^(https?:\/\/)?((([a-z\d]([a-z\d-]*[a-z\d])*)\.)+[a-z]{2,}|((\d{1,3}\.){3}\d{1,3}))(\:\d+)?(\/[-a-z\d%_.~+]*)*(\?[;&a-z\d%_.~+=-]*)?(\#[-a-z\d_]*)?$/i
if(!pattern.test(url)) {
return false;
} else {
return true;
}
};
// -->
วางเมาส์ที่คำศัพท์เพื่อแสดงป๊อปอัป
|
咀嚼 了 那 一 骨头 ' 胡麻 这 fella 变得 紧张 ,而且 他 跑 。 |
|
|
咀嚼 | - (そしゃく) (n,vs,adj-no) (1) chewing; mastication; breaking into bite-sized pieces; (2) digestion; assimilation [EDICT]
- (jǔ jué, ㄐㄩˇ ㄐㄩㄝˊ) chew [CE-DICT]
|
了 | - (りょう) (n) finish; completion; understanding; (P) [EDICT]
- (le, ㄌㄜ˙) (modal particle intensifying preceding clause); (completed action marker) [CE-DICT]
- (liǎo, ㄌㄧㄠˇ) to know; to understand [CE-DICT]
- (liǎo, ㄌㄧㄠˇ) clear [CE-DICT]
- (liào, ㄌㄧㄠˋ) look afar from a high place [CE-DICT]
|
那 | - (nǎ, ㄋㄚˇ) variant of 哪; how; which [CE-DICT]
- (nà, ㄋㄚˋ) that; those; commonly pr. nei4 before a classifier, esp. in Beijing [CE-DICT]
|
一 | - (いち(P);ひと) (num,pref) (1) (ひと when a prefix) one; (suf) (2) (いち only) best in; the most (...) in (where an adjective follows); (P) [EDICT]
- (yī, ㄧ) one; 1; single; a (article); as soon as; entire; whole; all; throughout [CE-DICT]
|
骨头 | - (gǔ tou, ㄍㄨˇ ㄊㄡ˙) bone; strong character [CE-DICT]
|
胡麻 | - (ごま) งา เมล็ดงา [LongdoJP]
- (ごま) (n) (uk) sesame (seeds) [EDICT]
|
这 | - (zhè, ㄓㄜˋ) this; these; (commonly pronounced zhei4 before a classifier, esp. in Beijing) [CE-DICT]
|
fella | - คำเรียกผู้ชายหรือเด็กชายอย่างไม่เป็นทางการ[Lex2]
- (เฟล' ละ) n. ดูfellow [Hope]
- /F EH1 L AH0/ [CMU]
|
变得 | - (biàn de, ㄅㄧㄢˋ ㄉㄜ˙) become; change into [CE-DICT]
|
紧张 | - (jǐn zhāng, ㄐㄧㄣˇ ㄓㄤ) nervous; keyed up; intense; tense; strained; in short supply; scarce [CE-DICT]
|
而且 | - (ér qiě, ㄦˊ ㄑㄧㄝˇ) not only ... but also; as well as; moreover; in addition; furthermore [CE-DICT]
|
他 | - (ほか) อื่นๆ, ที่เหลือ, นอกเหนือจากนี้ [LongdoJP]
- (ほか) (adj-no,n,n-adv) other (esp. places and things); the rest; (P) [EDICT]
- (た) (n-adv,n,adj-no) other (esp. people and abstract matters); (P) [EDICT]
- (tā, ㄊㄚ) he; him [CE-DICT]
|
跑 | - (だく) (n) (abbr) (See 跑足) trot (as in horse riding) [EDICT]
- (pǎo, ㄆㄠˇ) to run; to escape; race [CE-DICT]
|
|
|
|
เราทราบดีว่าท่านผู้ใช้คงไม่ได้อยากให้มีโฆษณาเท่าใดนัก แต่โฆษณาช่วยให้ทาง Longdo เรามีรายรับเพียงพอที่จะให้บริการพจนานุกรมได้แบบฟรีๆ ต่อไป
ดูรายละเอียดเพิ่มเติม