\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;
}
};
// -->
วางเมาส์ที่คำศัพท์เพื่อแสดงป๊อปอัป
แสดงคำอ่าน
- 不是 ( bù shì ) ,我妈 ( ) 说 ( shuì ) ,今年 ( jīn nián ) 是 ( shì ) 我 ( wǒ ) 的 ( de ) 本命年 ( ) 。 ( ) )
不是 (bù shì, ㄅㄨˋ ㄕˋ ) no; is not; not [CE-DICT] (bù shi, ㄅㄨˋ ㄕ˙ ) fault; blame [CE-DICT]
说 (shuì, ㄕㄨㄟˋ ) persuade (politically) [CE-DICT] (shuō, ㄕㄨㄛ ) to speak; to say; a theory (usually in compounds such as 日心说 heliocentric theory) [CE-DICT]
今年 (ことし) ปีนี้ [LongdoJP] (ことし(P);こんねん) (n-adv,n-t) this year; (P) [EDICT] (jīn nián, ㄐㄧㄣ ㄋㄧㄢˊ ) this year [CE-DICT]
是 (これ) (pn) (1) (uk) (See 何れ・1,其れ・1,彼・あれ・1) this (indicating an item near the speaker, the action of the speaker, or the current topic); (2) (hum) this person (usu. indicating someone in one's in-group); (3) now; (4) (arch) here; (5) (arch) I (me); (6) (arch) certainly; (P) [EDICT] (ぜ) (n) righteousness; justice; right [EDICT] (shì, ㄕˋ ) is; are; am; yes; to be [CE-DICT]
我 (わ) ฉัน ข้าพเจ้า กู ข้า [LongdoJP] (が) (n) (1) {Buddh} obstinacy; (2) atman; the self; the ego [EDICT] (われ(P);わ(我;吾);あれ(ok);あ(我;吾)(ok);わぬ(我;吾)(ok);わろ(我)(ok)) (pn,adj-no) (1) I; me; (2) (われ, わ only) oneself; (3) (われ, わ only) (arch) you; (pref) (4) (わ only) (arch) (also 和) prefix indicating familiarity or contempt; (P) [EDICT] (わが) (adj-pn) my; our; one's own; (P) [EDICT] (wǒ, ㄨㄛˇ ) I; me; my [CE-DICT]
的 (てき) (adj-na,suf) -like; typical; (P) [EDICT] (まと) (n) mark; target; (P) [EDICT] (de, ㄉㄜ˙ ) of; structural particle: used before a noun, linking it to preceding possessive or descriptive attributive [CE-DICT] (dí, ㄉㄧˊ ) really and truly [CE-DICT] (dì, ㄉㄧˋ ) aim; clear [CE-DICT]
เราทราบดีว่าท่านผู้ใช้คงไม่ได้อยากให้มีโฆษณาเท่าใดนัก แต่โฆษณาช่วยให้ทาง Longdo เรามีรายรับเพียงพอที่จะให้บริการพจนานุกรมได้แบบฟรีๆ ต่อไป
ดูรายละเอียดเพิ่มเติม