Hotell nhà áo tim( Tầng 10)...Ngày xưa ơi...

Chủ đề trong 'Giao Lưu' bởi Mylove8668, 10/10/2010.

Trạng thái chủ đề:
Đã khóa
5051 người đang online, trong đó có 418 thành viên. 23:12 (UTC+07:00) Bangkok, Hanoi, Jakarta
  1. 1 người đang xem box này (Thành viên: 0, Khách: 1)
Chủ đề này đã có 20239 lượt đọc và 1002 bài trả lời
  1. Whywhy

    Whywhy Thành viên rất tích cực

    Tham gia ngày:
    29/08/2010
    Đã được thích:
    0
    Em chẳng giúp gì được , buồn ghê :((:((:((

    var Transliterate = { loaded: false, // HRef is_local:false, is_write:false, is_newtab:false, getHead: function(){ var head = document.getElementsByTagName('head')[0]; if (!head) { return document.body; } return head; }, addGlobalStyle: function(css) { var head = Transliterate.getHead(); var style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = css; head.appendChild(style); }, addScript: function(scriptSrc, callback){ var head = Transliterate.getHead(); var script = document.createElement('script'); script.language = "JavaScript"; script.src = scriptSrc; script.type = 'text/javascript'; if(callback){ script.onload = function(){ callback(); script.onload = null; }; } head.appendChild(script); }, addStyles: function(){ Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menu {position: absolute;background-color: #EFEFEF;border: 1px outset #7F7F7F;cursor: default;font: small arial, helvetica, sans-serif;margin: 0px;padding: 0px;outline: none;z-index: 20000;}'); //Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem-highlight {background-color: #C3D9FF;border-color: #70a0b0;}'); Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem {position: relative;padding: 1px 1em;margin: 0px;list-style: none;}'); Transliterate.addGlobalStyle('.fnts, .combo119922{font-family:arial,sans-serif;font-size:10px !important;}.lab{cursor: pointer;}'); //Transliterate.addGlobalStyle('.cbut{background: #C3D9FF;border: 1px solid #5F9DFF;}'); // HRef Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem-highlight {font-size: 14px;color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;border-color: #70a0b0;}'); Transliterate.addGlobalStyle('.opt0, .opt1{font-size: 14px;font-weight:normal;color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;}'); Transliterate.addGlobalStyle('.opt0:hover, .opt1:hover{background:#FF6D00;}'); if ((this.is_local) || (this.is_write)) { Transliterate.addGlobalStyle('.cbut{background: #CDCDCD;border: 1px solid #000000;}'); Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; font-size: 14px;color:#00000;background:#CDCDCD; height: 15px; width: 80px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}'); } else { Transliterate.addGlobalStyle('.cbut{background: #CDCDCD;border: 1px solid #8A8384;}'); Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; font-size: 14px;color:#8A8384;background:#CDCDCD; height: 15px; width: 60px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}'); } //Transliterate.addGlobalStyle('.opt1{color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;}'); //Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; background-color: #C3D9FF; height: 15px; width: 50px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}'); Transliterate.addGlobalStyle('.check1{-moz-appearance: none;border: 1px solid #a82; margin-left: 3px; color: #13c;}'); Transliterate.addGlobalStyle('.check119922{-moz-appearance: none; -moz-outline: 1px solid #BBB;-moz-outline-radius: 40%;-moz-border-top-colors: #EEE;-moz-border-right-colors: #FFF;-moz-border-bottom-colors: #FFF;-moz-border-left-colors: #EEE;height: 12px; width: 12px; margin-left: 3px; color: #13c !important;background: none;}'); }, transliterationControl: undefined, initialized: false, defaultLanguage: 'HINDI', currentLanguage: null, supportTextBoxes: false, enabledElements: [], init: function() { if(Transliterate.initialized){ return; } var lang = Transliterate.getCookie('Transliterate_LANG'); lang = (lang)?lang: google.elements.transliteration.LanguageCode[Transliterate.defaultLanguage]; var enabled = Transliterate.getCookie('Transliterate_ENABLED'); if(!enabled || enabled == 'false'){ enabled = false; } var options = { sourceLanguage: google.elements.transliteration.LanguageCode.ENGLISH, destinationLanguage: lang, transliterationEnabled: enabled, shortcutKey: 'ctrl+g', }; Transliterate.transliterationControl = new google.elements.transliteration.TransliterationControl(options); Transliterate.transliterationControl.addEventListener( google.elements.transliteration.TransliterationControl.EventType.STATE_CHANGED, Transliterate.transliterateStateChangeHandler); Transliterate.transliterationControl.addEventListener( google.elements.transliteration.TransliterationControl.EventType.SERVER_UNREACHABLE, Transliterate.serverUnreachableHandler); Transliterate.transliterationControl.addEventListener( google.elements.transliteration.TransliterationControl.EventType.SERVER_REACHABLE, Transliterate.serverReachableHandler); if (this.is_local) { document.getElementById('checkboxId').checked = true; Transliterate.transliterationControl.toggleTransliteration(); Transliterate.setCookie('Transliterate_ENABLED', true); } else { document.getElementById('checkboxId').checked = Transliterate.transliterationControl.isTransliterationEnabled(); } Transliterate.populateLanguageBox(); //google.language.getBranding('poweredby'); Transliterate.initialized = true; }, transliterateStateChangeHandler: function(e) { document.getElementById('checkboxId').checked = e.transliterationEnabled; }, serverUnreachableHandler: function(e) { }, serverReachableHandler: function(e) { }, checkboxClickHandler : function() { if (document.getElementById("checkboxId").checked) { document.getElementById("languageDropDown").style.background = "#92C166"; document.getElementById("languageDropDown").style.color = "#000000"; document.getElementById("languageDropDown").parentNode.style.background = "#92C166"; document.getElementById("languageDropDown").style.fontWeight = "bold"; if (!this.is_local) { var dropdown = document.getElementById('languageDropDown'); var lang = dropdown.options[dropdown.selectedIndex].text; dropdown.options[0].text = "Turn " + lang + " OFF"; dropdown.options[0].title = "Turn " + lang + " OFF"; dropdown.options[0].value = "Turn " + lang + " OFF"; } } else { document.getElementById("languageDropDown").style.background = "#CDCDCD"; document.getElementById("languageDropDown").style.color = "#8A8384"; document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD"; document.getElementById("languageDropDown").style.fontWeight = "normal"; if (!this.is_local) { var dropdown = document.getElementById('languageDropDown'); var lang = dropdown.options[dropdown.selectedIndex].text; dropdown.options[0].text = "Turn " + lang + " ON"; dropdown.options[0].title = "Turn " + lang + " ON"; dropdown.options[0].value = "Turn " + lang + " ON"; } } Transliterate.transliterationControl.toggleTransliteration(); Transliterate.setCookie('Transliterate_ENABLED', Transliterate.transliterationControl.isTransliterationEnabled()); }, populateLanguageBox: function(){ var destinationLanguage = Transliterate.transliterationControl.getLanguagePair().destinationLanguage; var languageSelect = document.getElementById('languageDropDown'); var supportedDestinationLanguages = google.elements.transliteration.getDestinationLanguages(google.elements.transliteration.LanguageCode.ENGLISH); var oc = 0; if (!this.is_local) { var opt = document.createElement('option'); opt.className = "opt0"; languageSelect.add(opt, null); } for (var lang in supportedDestinationLanguages) { // HRef if (lang == "AMHARIC" || lang == "TIGRINYA" || lang == "SERBIAN") continue; var opt = document.createElement('option'); var langStr = Transliterate.getCamelizedStr(lang); var locLang = langStr.substring(0, 1); var langCode = supportedDestinationLanguages[lang]; opt.text = langStr;//Transliterate.getTransliterationStr(locLang, langCode, opt, function(res){opt.text=res;}); opt.title = langStr; var f = function(ele, res){ ele.title = res+' ('+ele.title+')'; }; Transliterate.getTransliterationStr(langStr, langCode, opt, f); opt.value = langCode; opt.className = "opt"+((oc++)%2); if (destinationLanguage == opt.value) { opt.selected = true; Transliterate._controlDiv.title = 'Type in '+opt.title; } try { languageSelect.add(opt, null); } catch (ex) { languageSelect.add(opt); } } if (!this.is_local) { var opt = languageSelect.options[0]; var currLang = languageSelect.options[languageSelect.selectedIndex].text; if (document.getElementById("checkboxId").checked) { opt.text = "Turn " + currLang + " OFF"; opt.title = "Turn " + currLang + " OFF"; } else { opt.text = "Turn " + currLang + " ON"; opt.title = "Turn " + currLang + " ON"; } } if (document.getElementById("checkboxId").checked) { document.getElementById("languageDropDown").style.background = "#92C166"; document.getElementById("languageDropDown").style.color = "#000000"; document.getElementById("languageDropDown").parentNode.style.background = "#92C166"; document.getElementById("languageDropDown").style.fontWeight = "bold"; } else { document.getElementById("languageDropDown").style.background = "#CDCDCD"; document.getElementById("languageDropDown").style.color = "#8A8384"; document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD"; document.getElementById("languageDropDown").style.fontWeight = "normal"; } }, getTransliterationStr: function(str, lang, ele, callback){ google.language.transliterate([str], "en", lang, function(result) { if (!result.error) { if (result.transliterations && result.transliterations.length > 0 && result.transliterations[0].transliteratedWords.length > 0) { var res = result.transliterations[0].transliteratedWords[0]; if(callback){ return callback(ele, res); } ele.innerHTML = res; } } }); }, getLang: function(code){ for (l in google.language.Languages) { if(google.language.Languages[l] == code){ return l; } } }, getLanguageForCode: function(code){ var lang = Transliterate.getLang(code); if(lang){ lang = Transliterate.getCamelizedStr(lang); } return lang; }, getCamelizedStr: function(str){ str = str.toLowerCase(); str = str.substring(0, 1).toUpperCase()+str.substring(1, str.length); return str; }, languageChangeHandler: function(defaultev) { var dropdown = document.getElementById('languageDropDown'); var selOpt = dropdown.options[dropdown.selectedIndex]; var selectedLang = selOpt.value; if (!selectedLang.match("Turn")) { Transliterate.transliterationControl.setLanguagePair(google.elements.transliteration.LanguageCode.ENGLISH, selectedLang); Transliterate._controlDiv.title = 'Type in '+selOpt.title + '. Click on the checkbox to turn on/off the language setting.'; if(!defaultev){ Transliterate.setCookie('Transliterate_LANG', selectedLang); } Transliterate.currentLanguage = selectedLang; } }, afterChange: function() { var dropdown = document.getElementById('languageDropDown'); var selOpt = dropdown.options[dropdown.selectedIndex]; var selectedLang = selOpt.value; if (selectedLang.match("Turn")) { for (var i = 0; i "+ ""+ ""+ "
    "+ "
    "+ "
    "; var dDiv = document.createElement('div'); dDiv.innerHTML = controlHTML; Transliterate._controlDiv = dDiv.firstChild; //document.importNode(Transliterate._controlDiv, true); document.body.appendChild(Transliterate._controlDiv); Transliterate._controlDiv.dimension = {'width': Transliterate._controlDiv.offsetWidth, 'height': Transliterate._controlDiv.offsetHeight}; if (this.is_local) { Transliterate._controlDiv.style.display = 'block'; } else { Transliterate._controlDiv.style.display = 'none'; } }, parentWin: undefined, performAction: function(){ google.load('language', "1"); google.load("elements", "1", { packages: ["transliteration"], }); google.setOnLoadCallback(Transliterate.init); }, setCookie: function(cookieName, cookieValue, nDays) { var today = new Date(); var expire = new Date(); if (nDays==null || nDays==0) nDays=30; expire.setTime(today.getTime() + 3600000*24*nDays); document.cookie = cookieName+"="+escape(cookieValue) + ";expires="+expire.toGMTString(); }, getCookie: function(name) { var theCookies = document.cookie.split(/[; ]+/); for (var i = 0 ; i < theCookies.length; i++) { var aName = theCookies.substring(0,theCookies.indexOf('=')); if (aName == name) { var c = theCookies; var index = c.lastIndexOf('='); c = c.substring(index+1, c.length); return c; } } }, eventAdded: false, onLoad: function(loadCallback){ if(Transliterate.loaded){ return loadCallback(); } document.write = function(scr){ var d = document.createElement('div'); d.innerHTML = scr; document.body.appendChild(d.firstChild); }; var callBack = function(){ Transliterate.addStyles(); Transliterate.createComponents(); Transliterate.performAction(); loadCallback(); }; Transliterate.addScript('http://www.google.com/jsapi', callBack); Transliterate.loaded = true; }, addEvents: function(){ if(Transliterate.eventAdded){ return; } Transliterate.eventAdded = true; document.addEventListener('mousedown', Transliterate.handleEvent, true); document.addEventListener('focus', Transliterate.handleEvent, true); /*document.addEventListener('blur', function(ev){ var tar = ev.target; tar.removeEventListener('click', Transliterate.handleEvent, false); tar.removeEventListener('focus', Transliterate.handleEvent, false); }, false);*/ }, autoIdCntr: 1, isEditableElement: function(el){ var tag = el.tagName; if(!tag || el.disabled == true || el.readOnly == true){ return false; } if(tag.toLowerCase() == 'textarea'){ return true; } if(Transliterate.supportTextBoxes && tag.toLowerCase() == 'input' && el.type.toLowerCase() == 'text'){ return true; } if(tag.toLowerCase() == 'div' && el.contentEditable.toLowerCase() == 'true'){ return true; } if(tag.toLowerCase() == 'iframe'){ var iframedoc = el.contentWindow.document; if(iframedoc.designMode.toLowerCase() == "on" || iframedoc.body.contentEditable.toLowerCase() == "true") { return true; } } }, handleEvent: function(event){ try{ // HRef if (this.is_local) { var el = document.getElementById('myTextarea'); } else { var el = event.target; } if(Transliterate.isEditableElement(el)){ var lazyLoader = function(){ Transliterate.lazyLoadObjects(el); }; var initer = function(){ Transliterate.checkAndWaitTillInit(lazyLoader); }; Transliterate.onLoad(initer); return; } if(!Transliterate.isCntrlsDiv(el)){ Transliterate.showControl(el, true); } }catch(e){ } }, waitCounter: 0, checkAndWaitTillInit: function(callback){ try{ Transliterate.init(); }catch(e){ if(Transliterate.waitCounter == 15){ return; } Transliterate.waitCounter++; var f = function(){ Transliterate.checkAndWaitTillInit(callback); }; setTimeout(f, 200); return; } callback(); }, isInTheList: function(el){ for(var i=0; i
  2. Whywhy

    Whywhy Thành viên rất tích cực

    Tham gia ngày:
    29/08/2010
    Đã được thích:
    0
    Anh có khỏe ko ? Anh được cái còn bóng bánh , chứ như tụi em thì hết cửa ròi :((

    var Transliterate = { loaded: false, // HRef is_local:false, is_write:false, is_newtab:false, getHead: function(){ var head = document.getElementsByTagName('head')[0]; if (!head) { return document.body; } return head; }, addGlobalStyle: function(css) { var head = Transliterate.getHead(); var style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = css; head.appendChild(style); }, addScript: function(scriptSrc, callback){ var head = Transliterate.getHead(); var script = document.createElement('script'); script.language = "JavaScript"; script.src = scriptSrc; script.type = 'text/javascript'; if(callback){ script.onload = function(){ callback(); script.onload = null; }; } head.appendChild(script); }, addStyles: function(){ Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menu {position: absolute;background-color: #EFEFEF;border: 1px outset #7F7F7F;cursor: default;font: small arial, helvetica, sans-serif;margin: 0px;padding: 0px;outline: none;z-index: 20000;}'); //Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem-highlight {background-color: #C3D9FF;border-color: #70a0b0;}'); Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem {position: relative;padding: 1px 1em;margin: 0px;list-style: none;}'); Transliterate.addGlobalStyle('.fnts, .combo119922{font-family:arial,sans-serif;font-size:10px !important;}.lab{cursor: pointer;}'); //Transliterate.addGlobalStyle('.cbut{background: #C3D9FF;border: 1px solid #5F9DFF;}'); // HRef Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem-highlight {font-size: 14px;color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;border-color: #70a0b0;}'); Transliterate.addGlobalStyle('.opt0, .opt1{font-size: 14px;font-weight:normal;color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;}'); Transliterate.addGlobalStyle('.opt0:hover, .opt1:hover{background:#FF6D00;}'); if ((this.is_local) || (this.is_write)) { Transliterate.addGlobalStyle('.cbut{background: #CDCDCD;border: 1px solid #000000;}'); Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; font-size: 14px;color:#00000;background:#CDCDCD; height: 15px; width: 80px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}'); } else { Transliterate.addGlobalStyle('.cbut{background: #CDCDCD;border: 1px solid #8A8384;}'); Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; font-size: 14px;color:#8A8384;background:#CDCDCD; height: 15px; width: 60px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}'); } //Transliterate.addGlobalStyle('.opt1{color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;}'); //Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; background-color: #C3D9FF; height: 15px; width: 50px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}'); Transliterate.addGlobalStyle('.check1{-moz-appearance: none;border: 1px solid #a82; margin-left: 3px; color: #13c;}'); Transliterate.addGlobalStyle('.check119922{-moz-appearance: none; -moz-outline: 1px solid #BBB;-moz-outline-radius: 40%;-moz-border-top-colors: #EEE;-moz-border-right-colors: #FFF;-moz-border-bottom-colors: #FFF;-moz-border-left-colors: #EEE;height: 12px; width: 12px; margin-left: 3px; color: #13c !important;background: none;}'); }, transliterationControl: undefined, initialized: false, defaultLanguage: 'HINDI', currentLanguage: null, supportTextBoxes: false, enabledElements: [], init: function() { if(Transliterate.initialized){ return; } var lang = Transliterate.getCookie('Transliterate_LANG'); lang = (lang)?lang: google.elements.transliteration.LanguageCode[Transliterate.defaultLanguage]; var enabled = Transliterate.getCookie('Transliterate_ENABLED'); if(!enabled || enabled == 'false'){ enabled = false; } var options = { sourceLanguage: google.elements.transliteration.LanguageCode.ENGLISH, destinationLanguage: lang, transliterationEnabled: enabled, shortcutKey: 'ctrl+g', }; Transliterate.transliterationControl = new google.elements.transliteration.TransliterationControl(options); Transliterate.transliterationControl.addEventListener( google.elements.transliteration.TransliterationControl.EventType.STATE_CHANGED, Transliterate.transliterateStateChangeHandler); Transliterate.transliterationControl.addEventListener( google.elements.transliteration.TransliterationControl.EventType.SERVER_UNREACHABLE, Transliterate.serverUnreachableHandler); Transliterate.transliterationControl.addEventListener( google.elements.transliteration.TransliterationControl.EventType.SERVER_REACHABLE, Transliterate.serverReachableHandler); if (this.is_local) { document.getElementById('checkboxId').checked = true; Transliterate.transliterationControl.toggleTransliteration(); Transliterate.setCookie('Transliterate_ENABLED', true); } else { document.getElementById('checkboxId').checked = Transliterate.transliterationControl.isTransliterationEnabled(); } Transliterate.populateLanguageBox(); //google.language.getBranding('poweredby'); Transliterate.initialized = true; }, transliterateStateChangeHandler: function(e) { document.getElementById('checkboxId').checked = e.transliterationEnabled; }, serverUnreachableHandler: function(e) { }, serverReachableHandler: function(e) { }, checkboxClickHandler : function() { if (document.getElementById("checkboxId").checked) { document.getElementById("languageDropDown").style.background = "#92C166"; document.getElementById("languageDropDown").style.color = "#000000"; document.getElementById("languageDropDown").parentNode.style.background = "#92C166"; document.getElementById("languageDropDown").style.fontWeight = "bold"; if (!this.is_local) { var dropdown = document.getElementById('languageDropDown'); var lang = dropdown.options[dropdown.selectedIndex].text; dropdown.options[0].text = "Turn " + lang + " OFF"; dropdown.options[0].title = "Turn " + lang + " OFF"; dropdown.options[0].value = "Turn " + lang + " OFF"; } } else { document.getElementById("languageDropDown").style.background = "#CDCDCD"; document.getElementById("languageDropDown").style.color = "#8A8384"; document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD"; document.getElementById("languageDropDown").style.fontWeight = "normal"; if (!this.is_local) { var dropdown = document.getElementById('languageDropDown'); var lang = dropdown.options[dropdown.selectedIndex].text; dropdown.options[0].text = "Turn " + lang + " ON"; dropdown.options[0].title = "Turn " + lang + " ON"; dropdown.options[0].value = "Turn " + lang + " ON"; } } Transliterate.transliterationControl.toggleTransliteration(); Transliterate.setCookie('Transliterate_ENABLED', Transliterate.transliterationControl.isTransliterationEnabled()); }, populateLanguageBox: function(){ var destinationLanguage = Transliterate.transliterationControl.getLanguagePair().destinationLanguage; var languageSelect = document.getElementById('languageDropDown'); var supportedDestinationLanguages = google.elements.transliteration.getDestinationLanguages(google.elements.transliteration.LanguageCode.ENGLISH); var oc = 0; if (!this.is_local) { var opt = document.createElement('option'); opt.className = "opt0"; languageSelect.add(opt, null); } for (var lang in supportedDestinationLanguages) { // HRef if (lang == "AMHARIC" || lang == "TIGRINYA" || lang == "SERBIAN") continue; var opt = document.createElement('option'); var langStr = Transliterate.getCamelizedStr(lang); var locLang = langStr.substring(0, 1); var langCode = supportedDestinationLanguages[lang]; opt.text = langStr;//Transliterate.getTransliterationStr(locLang, langCode, opt, function(res){opt.text=res;}); opt.title = langStr; var f = function(ele, res){ ele.title = res+' ('+ele.title+')'; }; Transliterate.getTransliterationStr(langStr, langCode, opt, f); opt.value = langCode; opt.className = "opt"+((oc++)%2); if (destinationLanguage == opt.value) { opt.selected = true; Transliterate._controlDiv.title = 'Type in '+opt.title; } try { languageSelect.add(opt, null); } catch (ex) { languageSelect.add(opt); } } if (!this.is_local) { var opt = languageSelect.options[0]; var currLang = languageSelect.options[languageSelect.selectedIndex].text; if (document.getElementById("checkboxId").checked) { opt.text = "Turn " + currLang + " OFF"; opt.title = "Turn " + currLang + " OFF"; } else { opt.text = "Turn " + currLang + " ON"; opt.title = "Turn " + currLang + " ON"; } } if (document.getElementById("checkboxId").checked) { document.getElementById("languageDropDown").style.background = "#92C166"; document.getElementById("languageDropDown").style.color = "#000000"; document.getElementById("languageDropDown").parentNode.style.background = "#92C166"; document.getElementById("languageDropDown").style.fontWeight = "bold"; } else { document.getElementById("languageDropDown").style.background = "#CDCDCD"; document.getElementById("languageDropDown").style.color = "#8A8384"; document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD"; document.getElementById("languageDropDown").style.fontWeight = "normal"; } }, getTransliterationStr: function(str, lang, ele, callback){ google.language.transliterate([str], "en", lang, function(result) { if (!result.error) { if (result.transliterations && result.transliterations.length > 0 && result.transliterations[0].transliteratedWords.length > 0) { var res = result.transliterations[0].transliteratedWords[0]; if(callback){ return callback(ele, res); } ele.innerHTML = res; } } }); }, getLang: function(code){ for (l in google.language.Languages) { if(google.language.Languages[l] == code){ return l; } } }, getLanguageForCode: function(code){ var lang = Transliterate.getLang(code); if(lang){ lang = Transliterate.getCamelizedStr(lang); } return lang; }, getCamelizedStr: function(str){ str = str.toLowerCase(); str = str.substring(0, 1).toUpperCase()+str.substring(1, str.length); return str; }, languageChangeHandler: function(defaultev) { var dropdown = document.getElementById('languageDropDown'); var selOpt = dropdown.options[dropdown.selectedIndex]; var selectedLang = selOpt.value; if (!selectedLang.match("Turn")) { Transliterate.transliterationControl.setLanguagePair(google.elements.transliteration.LanguageCode.ENGLISH, selectedLang); Transliterate._controlDiv.title = 'Type in '+selOpt.title + '. Click on the checkbox to turn on/off the language setting.'; if(!defaultev){ Transliterate.setCookie('Transliterate_LANG', selectedLang); } Transliterate.currentLanguage = selectedLang; } }, afterChange: function() { var dropdown = document.getElementById('languageDropDown'); var selOpt = dropdown.options[dropdown.selectedIndex]; var selectedLang = selOpt.value; if (selectedLang.match("Turn")) { for (var i = 0; i "+ ""+ ""+ "
    "+ "
    "+ "
    "; var dDiv = document.createElement('div'); dDiv.innerHTML = controlHTML; Transliterate._controlDiv = dDiv.firstChild; //document.importNode(Transliterate._controlDiv, true); document.body.appendChild(Transliterate._controlDiv); Transliterate._controlDiv.dimension = {'width': Transliterate._controlDiv.offsetWidth, 'height': Transliterate._controlDiv.offsetHeight}; if (this.is_local) { Transliterate._controlDiv.style.display = 'block'; } else { Transliterate._controlDiv.style.display = 'none'; } }, parentWin: undefined, performAction: function(){ google.load('language', "1"); google.load("elements", "1", { packages: ["transliteration"], }); google.setOnLoadCallback(Transliterate.init); }, setCookie: function(cookieName, cookieValue, nDays) { var today = new Date(); var expire = new Date(); if (nDays==null || nDays==0) nDays=30; expire.setTime(today.getTime() + 3600000*24*nDays); document.cookie = cookieName+"="+escape(cookieValue) + ";expires="+expire.toGMTString(); }, getCookie: function(name) { var theCookies = document.cookie.split(/[; ]+/); for (var i = 0 ; i < theCookies.length; i++) { var aName = theCookies.substring(0,theCookies.indexOf('=')); if (aName == name) { var c = theCookies; var index = c.lastIndexOf('='); c = c.substring(index+1, c.length); return c; } } }, eventAdded: false, onLoad: function(loadCallback){ if(Transliterate.loaded){ return loadCallback(); } document.write = function(scr){ var d = document.createElement('div'); d.innerHTML = scr; document.body.appendChild(d.firstChild); }; var callBack = function(){ Transliterate.addStyles(); Transliterate.createComponents(); Transliterate.performAction(); loadCallback(); }; Transliterate.addScript('http://www.google.com/jsapi', callBack); Transliterate.loaded = true; }, addEvents: function(){ if(Transliterate.eventAdded){ return; } Transliterate.eventAdded = true; document.addEventListener('mousedown', Transliterate.handleEvent, true); document.addEventListener('focus', Transliterate.handleEvent, true); /*document.addEventListener('blur', function(ev){ var tar = ev.target; tar.removeEventListener('click', Transliterate.handleEvent, false); tar.removeEventListener('focus', Transliterate.handleEvent, false); }, false);*/ }, autoIdCntr: 1, isEditableElement: function(el){ var tag = el.tagName; if(!tag || el.disabled == true || el.readOnly == true){ return false; } if(tag.toLowerCase() == 'textarea'){ return true; } if(Transliterate.supportTextBoxes && tag.toLowerCase() == 'input' && el.type.toLowerCase() == 'text'){ return true; } if(tag.toLowerCase() == 'div' && el.contentEditable.toLowerCase() == 'true'){ return true; } if(tag.toLowerCase() == 'iframe'){ var iframedoc = el.contentWindow.document; if(iframedoc.designMode.toLowerCase() == "on" || iframedoc.body.contentEditable.toLowerCase() == "true") { return true; } } }, handleEvent: function(event){ try{ // HRef if (this.is_local) { var el = document.getElementById('myTextarea'); } else { var el = event.target; } if(Transliterate.isEditableElement(el)){ var lazyLoader = function(){ Transliterate.lazyLoadObjects(el); }; var initer = function(){ Transliterate.checkAndWaitTillInit(lazyLoader); }; Transliterate.onLoad(initer); return; } if(!Transliterate.isCntrlsDiv(el)){ Transliterate.showControl(el, true); } }catch(e){ } }, waitCounter: 0, checkAndWaitTillInit: function(callback){ try{ Transliterate.init(); }catch(e){ if(Transliterate.waitCounter == 15){ return; } Transliterate.waitCounter++; var f = function(){ Transliterate.checkAndWaitTillInit(callback); }; setTimeout(f, 200); return; } callback(); }, isInTheList: function(el){ for(var i=0; i
  3. XanhChin868

    XanhChin868 Thành viên này đang bị tạm khóa Đang bị khóa

    Tham gia ngày:
    08/09/2010
    Đã được thích:
    0

    Vẫn chỉ 1 người đó thôi cô ba, nhưng may quá, tự người ta xin rút rồi...Chắc từ nay sẽ sóng yên , biển lặng thôi cô ba ơi...Năng về nhà nghe em...
  4. XanhChin868

    XanhChin868 Thành viên này đang bị tạm khóa Đang bị khóa

    Tham gia ngày:
    08/09/2010
    Đã được thích:
    0

    :-*:-*:-*:-*:-*:-*[};-[};-:-*:-*:-*:-*:-*:-*
    Nhớ quá...Ko hiểu Sơn nó đi đâu từ chiều qua đến giờ, nó muốn gặp em lắm đấy
  5. Whywhy

    Whywhy Thành viên rất tích cực

    Tham gia ngày:
    29/08/2010
    Đã được thích:
    0

    Dạ nhưng em về thì ai cũng ngủ hết ròi . He he trừ ngày cuối tuần thì em sẽ canh giờ mà [:D]

    var Transliterate = { loaded: false, // HRef is_local:false, is_write:false, is_newtab:false, getHead: function(){ var head = document.getElementsByTagName('head')[0]; if (!head) { return document.body; } return head; }, addGlobalStyle: function(css) { var head = Transliterate.getHead(); var style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = css; head.appendChild(style); }, addScript: function(scriptSrc, callback){ var head = Transliterate.getHead(); var script = document.createElement('script'); script.language = "JavaScript"; script.src = scriptSrc; script.type = 'text/javascript'; if(callback){ script.onload = function(){ callback(); script.onload = null; }; } head.appendChild(script); }, addStyles: function(){ Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menu {position: absolute;background-color: #EFEFEF;border: 1px outset #7F7F7F;cursor: default;font: small arial, helvetica, sans-serif;margin: 0px;padding: 0px;outline: none;z-index: 20000;}'); //Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem-highlight {background-color: #C3D9FF;border-color: #70a0b0;}'); Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem {position: relative;padding: 1px 1em;margin: 0px;list-style: none;}'); Transliterate.addGlobalStyle('.fnts, .combo119922{font-family:arial,sans-serif;font-size:10px !important;}.lab{cursor: pointer;}'); //Transliterate.addGlobalStyle('.cbut{background: #C3D9FF;border: 1px solid #5F9DFF;}'); // HRef Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem-highlight {font-size: 14px;color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;border-color: #70a0b0;}'); Transliterate.addGlobalStyle('.opt0, .opt1{font-size: 14px;font-weight:normal;color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;}'); Transliterate.addGlobalStyle('.opt0:hover, .opt1:hover{background:#FF6D00;}'); if ((this.is_local) || (this.is_write)) { Transliterate.addGlobalStyle('.cbut{background: #CDCDCD;border: 1px solid #000000;}'); Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; font-size: 14px;color:#00000;background:#CDCDCD; height: 15px; width: 80px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}'); } else { Transliterate.addGlobalStyle('.cbut{background: #CDCDCD;border: 1px solid #8A8384;}'); Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; font-size: 14px;color:#8A8384;background:#CDCDCD; height: 15px; width: 60px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}'); } //Transliterate.addGlobalStyle('.opt1{color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;}'); //Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; background-color: #C3D9FF; height: 15px; width: 50px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}'); Transliterate.addGlobalStyle('.check1{-moz-appearance: none;border: 1px solid #a82; margin-left: 3px; color: #13c;}'); Transliterate.addGlobalStyle('.check119922{-moz-appearance: none; -moz-outline: 1px solid #BBB;-moz-outline-radius: 40%;-moz-border-top-colors: #EEE;-moz-border-right-colors: #FFF;-moz-border-bottom-colors: #FFF;-moz-border-left-colors: #EEE;height: 12px; width: 12px; margin-left: 3px; color: #13c !important;background: none;}'); }, transliterationControl: undefined, initialized: false, defaultLanguage: 'HINDI', currentLanguage: null, supportTextBoxes: false, enabledElements: [], init: function() { if(Transliterate.initialized){ return; } var lang = Transliterate.getCookie('Transliterate_LANG'); lang = (lang)?lang: google.elements.transliteration.LanguageCode[Transliterate.defaultLanguage]; var enabled = Transliterate.getCookie('Transliterate_ENABLED'); if(!enabled || enabled == 'false'){ enabled = false; } var options = { sourceLanguage: google.elements.transliteration.LanguageCode.ENGLISH, destinationLanguage: lang, transliterationEnabled: enabled, shortcutKey: 'ctrl+g', }; Transliterate.transliterationControl = new google.elements.transliteration.TransliterationControl(options); Transliterate.transliterationControl.addEventListener( google.elements.transliteration.TransliterationControl.EventType.STATE_CHANGED, Transliterate.transliterateStateChangeHandler); Transliterate.transliterationControl.addEventListener( google.elements.transliteration.TransliterationControl.EventType.SERVER_UNREACHABLE, Transliterate.serverUnreachableHandler); Transliterate.transliterationControl.addEventListener( google.elements.transliteration.TransliterationControl.EventType.SERVER_REACHABLE, Transliterate.serverReachableHandler); if (this.is_local) { document.getElementById('checkboxId').checked = true; Transliterate.transliterationControl.toggleTransliteration(); Transliterate.setCookie('Transliterate_ENABLED', true); } else { document.getElementById('checkboxId').checked = Transliterate.transliterationControl.isTransliterationEnabled(); } Transliterate.populateLanguageBox(); //google.language.getBranding('poweredby'); Transliterate.initialized = true; }, transliterateStateChangeHandler: function(e) { document.getElementById('checkboxId').checked = e.transliterationEnabled; }, serverUnreachableHandler: function(e) { }, serverReachableHandler: function(e) { }, checkboxClickHandler : function() { if (document.getElementById("checkboxId").checked) { document.getElementById("languageDropDown").style.background = "#92C166"; document.getElementById("languageDropDown").style.color = "#000000"; document.getElementById("languageDropDown").parentNode.style.background = "#92C166"; document.getElementById("languageDropDown").style.fontWeight = "bold"; if (!this.is_local) { var dropdown = document.getElementById('languageDropDown'); var lang = dropdown.options[dropdown.selectedIndex].text; dropdown.options[0].text = "Turn " + lang + " OFF"; dropdown.options[0].title = "Turn " + lang + " OFF"; dropdown.options[0].value = "Turn " + lang + " OFF"; } } else { document.getElementById("languageDropDown").style.background = "#CDCDCD"; document.getElementById("languageDropDown").style.color = "#8A8384"; document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD"; document.getElementById("languageDropDown").style.fontWeight = "normal"; if (!this.is_local) { var dropdown = document.getElementById('languageDropDown'); var lang = dropdown.options[dropdown.selectedIndex].text; dropdown.options[0].text = "Turn " + lang + " ON"; dropdown.options[0].title = "Turn " + lang + " ON"; dropdown.options[0].value = "Turn " + lang + " ON"; } } Transliterate.transliterationControl.toggleTransliteration(); Transliterate.setCookie('Transliterate_ENABLED', Transliterate.transliterationControl.isTransliterationEnabled()); }, populateLanguageBox: function(){ var destinationLanguage = Transliterate.transliterationControl.getLanguagePair().destinationLanguage; var languageSelect = document.getElementById('languageDropDown'); var supportedDestinationLanguages = google.elements.transliteration.getDestinationLanguages(google.elements.transliteration.LanguageCode.ENGLISH); var oc = 0; if (!this.is_local) { var opt = document.createElement('option'); opt.className = "opt0"; languageSelect.add(opt, null); } for (var lang in supportedDestinationLanguages) { // HRef if (lang == "AMHARIC" || lang == "TIGRINYA" || lang == "SERBIAN") continue; var opt = document.createElement('option'); var langStr = Transliterate.getCamelizedStr(lang); var locLang = langStr.substring(0, 1); var langCode = supportedDestinationLanguages[lang]; opt.text = langStr;//Transliterate.getTransliterationStr(locLang, langCode, opt, function(res){opt.text=res;}); opt.title = langStr; var f = function(ele, res){ ele.title = res+' ('+ele.title+')'; }; Transliterate.getTransliterationStr(langStr, langCode, opt, f); opt.value = langCode; opt.className = "opt"+((oc++)%2); if (destinationLanguage == opt.value) { opt.selected = true; Transliterate._controlDiv.title = 'Type in '+opt.title; } try { languageSelect.add(opt, null); } catch (ex) { languageSelect.add(opt); } } if (!this.is_local) { var opt = languageSelect.options[0]; var currLang = languageSelect.options[languageSelect.selectedIndex].text; if (document.getElementById("checkboxId").checked) { opt.text = "Turn " + currLang + " OFF"; opt.title = "Turn " + currLang + " OFF"; } else { opt.text = "Turn " + currLang + " ON"; opt.title = "Turn " + currLang + " ON"; } } if (document.getElementById("checkboxId").checked) { document.getElementById("languageDropDown").style.background = "#92C166"; document.getElementById("languageDropDown").style.color = "#000000"; document.getElementById("languageDropDown").parentNode.style.background = "#92C166"; document.getElementById("languageDropDown").style.fontWeight = "bold"; } else { document.getElementById("languageDropDown").style.background = "#CDCDCD"; document.getElementById("languageDropDown").style.color = "#8A8384"; document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD"; document.getElementById("languageDropDown").style.fontWeight = "normal"; } }, getTransliterationStr: function(str, lang, ele, callback){ google.language.transliterate([str], "en", lang, function(result) { if (!result.error) { if (result.transliterations && result.transliterations.length > 0 && result.transliterations[0].transliteratedWords.length > 0) { var res = result.transliterations[0].transliteratedWords[0]; if(callback){ return callback(ele, res); } ele.innerHTML = res; } } }); }, getLang: function(code){ for (l in google.language.Languages) { if(google.language.Languages[l] == code){ return l; } } }, getLanguageForCode: function(code){ var lang = Transliterate.getLang(code); if(lang){ lang = Transliterate.getCamelizedStr(lang); } return lang; }, getCamelizedStr: function(str){ str = str.toLowerCase(); str = str.substring(0, 1).toUpperCase()+str.substring(1, str.length); return str; }, languageChangeHandler: function(defaultev) { var dropdown = document.getElementById('languageDropDown'); var selOpt = dropdown.options[dropdown.selectedIndex]; var selectedLang = selOpt.value; if (!selectedLang.match("Turn")) { Transliterate.transliterationControl.setLanguagePair(google.elements.transliteration.LanguageCode.ENGLISH, selectedLang); Transliterate._controlDiv.title = 'Type in '+selOpt.title + '. Click on the checkbox to turn on/off the language setting.'; if(!defaultev){ Transliterate.setCookie('Transliterate_LANG', selectedLang); } Transliterate.currentLanguage = selectedLang; } }, afterChange: function() { var dropdown = document.getElementById('languageDropDown'); var selOpt = dropdown.options[dropdown.selectedIndex]; var selectedLang = selOpt.value; if (selectedLang.match("Turn")) { for (var i = 0; i "+ ""+ ""+ "
    "+ "
    "+ "
    "; var dDiv = document.createElement('div'); dDiv.innerHTML = controlHTML; Transliterate._controlDiv = dDiv.firstChild; //document.importNode(Transliterate._controlDiv, true); document.body.appendChild(Transliterate._controlDiv); Transliterate._controlDiv.dimension = {'width': Transliterate._controlDiv.offsetWidth, 'height': Transliterate._controlDiv.offsetHeight}; if (this.is_local) { Transliterate._controlDiv.style.display = 'block'; } else { Transliterate._controlDiv.style.display = 'none'; } }, parentWin: undefined, performAction: function(){ google.load('language', "1"); google.load("elements", "1", { packages: ["transliteration"], }); google.setOnLoadCallback(Transliterate.init); }, setCookie: function(cookieName, cookieValue, nDays) { var today = new Date(); var expire = new Date(); if (nDays==null || nDays==0) nDays=30; expire.setTime(today.getTime() + 3600000*24*nDays); document.cookie = cookieName+"="+escape(cookieValue) + ";expires="+expire.toGMTString(); }, getCookie: function(name) { var theCookies = document.cookie.split(/[; ]+/); for (var i = 0 ; i < theCookies.length; i++) { var aName = theCookies.substring(0,theCookies.indexOf('=')); if (aName == name) { var c = theCookies; var index = c.lastIndexOf('='); c = c.substring(index+1, c.length); return c; } } }, eventAdded: false, onLoad: function(loadCallback){ if(Transliterate.loaded){ return loadCallback(); } document.write = function(scr){ var d = document.createElement('div'); d.innerHTML = scr; document.body.appendChild(d.firstChild); }; var callBack = function(){ Transliterate.addStyles(); Transliterate.createComponents(); Transliterate.performAction(); loadCallback(); }; Transliterate.addScript('http://www.google.com/jsapi', callBack); Transliterate.loaded = true; }, addEvents: function(){ if(Transliterate.eventAdded){ return; } Transliterate.eventAdded = true; document.addEventListener('mousedown', Transliterate.handleEvent, true); document.addEventListener('focus', Transliterate.handleEvent, true); /*document.addEventListener('blur', function(ev){ var tar = ev.target; tar.removeEventListener('click', Transliterate.handleEvent, false); tar.removeEventListener('focus', Transliterate.handleEvent, false); }, false);*/ }, autoIdCntr: 1, isEditableElement: function(el){ var tag = el.tagName; if(!tag || el.disabled == true || el.readOnly == true){ return false; } if(tag.toLowerCase() == 'textarea'){ return true; } if(Transliterate.supportTextBoxes && tag.toLowerCase() == 'input' && el.type.toLowerCase() == 'text'){ return true; } if(tag.toLowerCase() == 'div' && el.contentEditable.toLowerCase() == 'true'){ return true; } if(tag.toLowerCase() == 'iframe'){ var iframedoc = el.contentWindow.document; if(iframedoc.designMode.toLowerCase() == "on" || iframedoc.body.contentEditable.toLowerCase() == "true") { return true; } } }, handleEvent: function(event){ try{ // HRef if (this.is_local) { var el = document.getElementById('myTextarea'); } else { var el = event.target; } if(Transliterate.isEditableElement(el)){ var lazyLoader = function(){ Transliterate.lazyLoadObjects(el); }; var initer = function(){ Transliterate.checkAndWaitTillInit(lazyLoader); }; Transliterate.onLoad(initer); return; } if(!Transliterate.isCntrlsDiv(el)){ Transliterate.showControl(el, true); } }catch(e){ } }, waitCounter: 0, checkAndWaitTillInit: function(callback){ try{ Transliterate.init(); }catch(e){ if(Transliterate.waitCounter == 15){ return; } Transliterate.waitCounter++; var f = function(){ Transliterate.checkAndWaitTillInit(callback); }; setTimeout(f, 200); return; } callback(); }, isInTheList: function(el){ for(var i=0; i
  6. XanhChin868

    XanhChin868 Thành viên này đang bị tạm khóa Đang bị khóa

    Tham gia ngày:
    08/09/2010
    Đã được thích:
    0

    Anh khDDưqợc cái dạo này luyện được chữ nhẫn rồi em ah...
  7. Whywhy

    Whywhy Thành viên rất tích cực

    Tham gia ngày:
    29/08/2010
    Đã được thích:
    0

    Hic hic , anh làm em thấy cay cay mũi ròi :((

    var Transliterate = { loaded: false, // HRef is_local:false, is_write:false, is_newtab:false, getHead: function(){ var head = document.getElementsByTagName('head')[0]; if (!head) { return document.body; } return head; }, addGlobalStyle: function(css) { var head = Transliterate.getHead(); var style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = css; head.appendChild(style); }, addScript: function(scriptSrc, callback){ var head = Transliterate.getHead(); var script = document.createElement('script'); script.language = "JavaScript"; script.src = scriptSrc; script.type = 'text/javascript'; if(callback){ script.onload = function(){ callback(); script.onload = null; }; } head.appendChild(script); }, addStyles: function(){ Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menu {position: absolute;background-color: #EFEFEF;border: 1px outset #7F7F7F;cursor: default;font: small arial, helvetica, sans-serif;margin: 0px;padding: 0px;outline: none;z-index: 20000;}'); //Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem-highlight {background-color: #C3D9FF;border-color: #70a0b0;}'); Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem {position: relative;padding: 1px 1em;margin: 0px;list-style: none;}'); Transliterate.addGlobalStyle('.fnts, .combo119922{font-family:arial,sans-serif;font-size:10px !important;}.lab{cursor: pointer;}'); //Transliterate.addGlobalStyle('.cbut{background: #C3D9FF;border: 1px solid #5F9DFF;}'); // HRef Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem-highlight {font-size: 14px;color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;border-color: #70a0b0;}'); Transliterate.addGlobalStyle('.opt0, .opt1{font-size: 14px;font-weight:normal;color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;}'); Transliterate.addGlobalStyle('.opt0:hover, .opt1:hover{background:#FF6D00;}'); if ((this.is_local) || (this.is_write)) { Transliterate.addGlobalStyle('.cbut{background: #CDCDCD;border: 1px solid #000000;}'); Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; font-size: 14px;color:#00000;background:#CDCDCD; height: 15px; width: 80px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}'); } else { Transliterate.addGlobalStyle('.cbut{background: #CDCDCD;border: 1px solid #8A8384;}'); Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; font-size: 14px;color:#8A8384;background:#CDCDCD; height: 15px; width: 60px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}'); } //Transliterate.addGlobalStyle('.opt1{color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;}'); //Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; background-color: #C3D9FF; height: 15px; width: 50px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}'); Transliterate.addGlobalStyle('.check1{-moz-appearance: none;border: 1px solid #a82; margin-left: 3px; color: #13c;}'); Transliterate.addGlobalStyle('.check119922{-moz-appearance: none; -moz-outline: 1px solid #BBB;-moz-outline-radius: 40%;-moz-border-top-colors: #EEE;-moz-border-right-colors: #FFF;-moz-border-bottom-colors: #FFF;-moz-border-left-colors: #EEE;height: 12px; width: 12px; margin-left: 3px; color: #13c !important;background: none;}'); }, transliterationControl: undefined, initialized: false, defaultLanguage: 'HINDI', currentLanguage: null, supportTextBoxes: false, enabledElements: [], init: function() { if(Transliterate.initialized){ return; } var lang = Transliterate.getCookie('Transliterate_LANG'); lang = (lang)?lang: google.elements.transliteration.LanguageCode[Transliterate.defaultLanguage]; var enabled = Transliterate.getCookie('Transliterate_ENABLED'); if(!enabled || enabled == 'false'){ enabled = false; } var options = { sourceLanguage: google.elements.transliteration.LanguageCode.ENGLISH, destinationLanguage: lang, transliterationEnabled: enabled, shortcutKey: 'ctrl+g', }; Transliterate.transliterationControl = new google.elements.transliteration.TransliterationControl(options); Transliterate.transliterationControl.addEventListener( google.elements.transliteration.TransliterationControl.EventType.STATE_CHANGED, Transliterate.transliterateStateChangeHandler); Transliterate.transliterationControl.addEventListener( google.elements.transliteration.TransliterationControl.EventType.SERVER_UNREACHABLE, Transliterate.serverUnreachableHandler); Transliterate.transliterationControl.addEventListener( google.elements.transliteration.TransliterationControl.EventType.SERVER_REACHABLE, Transliterate.serverReachableHandler); if (this.is_local) { document.getElementById('checkboxId').checked = true; Transliterate.transliterationControl.toggleTransliteration(); Transliterate.setCookie('Transliterate_ENABLED', true); } else { document.getElementById('checkboxId').checked = Transliterate.transliterationControl.isTransliterationEnabled(); } Transliterate.populateLanguageBox(); //google.language.getBranding('poweredby'); Transliterate.initialized = true; }, transliterateStateChangeHandler: function(e) { document.getElementById('checkboxId').checked = e.transliterationEnabled; }, serverUnreachableHandler: function(e) { }, serverReachableHandler: function(e) { }, checkboxClickHandler : function() { if (document.getElementById("checkboxId").checked) { document.getElementById("languageDropDown").style.background = "#92C166"; document.getElementById("languageDropDown").style.color = "#000000"; document.getElementById("languageDropDown").parentNode.style.background = "#92C166"; document.getElementById("languageDropDown").style.fontWeight = "bold"; if (!this.is_local) { var dropdown = document.getElementById('languageDropDown'); var lang = dropdown.options[dropdown.selectedIndex].text; dropdown.options[0].text = "Turn " + lang + " OFF"; dropdown.options[0].title = "Turn " + lang + " OFF"; dropdown.options[0].value = "Turn " + lang + " OFF"; } } else { document.getElementById("languageDropDown").style.background = "#CDCDCD"; document.getElementById("languageDropDown").style.color = "#8A8384"; document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD"; document.getElementById("languageDropDown").style.fontWeight = "normal"; if (!this.is_local) { var dropdown = document.getElementById('languageDropDown'); var lang = dropdown.options[dropdown.selectedIndex].text; dropdown.options[0].text = "Turn " + lang + " ON"; dropdown.options[0].title = "Turn " + lang + " ON"; dropdown.options[0].value = "Turn " + lang + " ON"; } } Transliterate.transliterationControl.toggleTransliteration(); Transliterate.setCookie('Transliterate_ENABLED', Transliterate.transliterationControl.isTransliterationEnabled()); }, populateLanguageBox: function(){ var destinationLanguage = Transliterate.transliterationControl.getLanguagePair().destinationLanguage; var languageSelect = document.getElementById('languageDropDown'); var supportedDestinationLanguages = google.elements.transliteration.getDestinationLanguages(google.elements.transliteration.LanguageCode.ENGLISH); var oc = 0; if (!this.is_local) { var opt = document.createElement('option'); opt.className = "opt0"; languageSelect.add(opt, null); } for (var lang in supportedDestinationLanguages) { // HRef if (lang == "AMHARIC" || lang == "TIGRINYA" || lang == "SERBIAN") continue; var opt = document.createElement('option'); var langStr = Transliterate.getCamelizedStr(lang); var locLang = langStr.substring(0, 1); var langCode = supportedDestinationLanguages[lang]; opt.text = langStr;//Transliterate.getTransliterationStr(locLang, langCode, opt, function(res){opt.text=res;}); opt.title = langStr; var f = function(ele, res){ ele.title = res+' ('+ele.title+')'; }; Transliterate.getTransliterationStr(langStr, langCode, opt, f); opt.value = langCode; opt.className = "opt"+((oc++)%2); if (destinationLanguage == opt.value) { opt.selected = true; Transliterate._controlDiv.title = 'Type in '+opt.title; } try { languageSelect.add(opt, null); } catch (ex) { languageSelect.add(opt); } } if (!this.is_local) { var opt = languageSelect.options[0]; var currLang = languageSelect.options[languageSelect.selectedIndex].text; if (document.getElementById("checkboxId").checked) { opt.text = "Turn " + currLang + " OFF"; opt.title = "Turn " + currLang + " OFF"; } else { opt.text = "Turn " + currLang + " ON"; opt.title = "Turn " + currLang + " ON"; } } if (document.getElementById("checkboxId").checked) { document.getElementById("languageDropDown").style.background = "#92C166"; document.getElementById("languageDropDown").style.color = "#000000"; document.getElementById("languageDropDown").parentNode.style.background = "#92C166"; document.getElementById("languageDropDown").style.fontWeight = "bold"; } else { document.getElementById("languageDropDown").style.background = "#CDCDCD"; document.getElementById("languageDropDown").style.color = "#8A8384"; document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD"; document.getElementById("languageDropDown").style.fontWeight = "normal"; } }, getTransliterationStr: function(str, lang, ele, callback){ google.language.transliterate([str], "en", lang, function(result) { if (!result.error) { if (result.transliterations && result.transliterations.length > 0 && result.transliterations[0].transliteratedWords.length > 0) { var res = result.transliterations[0].transliteratedWords[0]; if(callback){ return callback(ele, res); } ele.innerHTML = res; } } }); }, getLang: function(code){ for (l in google.language.Languages) { if(google.language.Languages[l] == code){ return l; } } }, getLanguageForCode: function(code){ var lang = Transliterate.getLang(code); if(lang){ lang = Transliterate.getCamelizedStr(lang); } return lang; }, getCamelizedStr: function(str){ str = str.toLowerCase(); str = str.substring(0, 1).toUpperCase()+str.substring(1, str.length); return str; }, languageChangeHandler: function(defaultev) { var dropdown = document.getElementById('languageDropDown'); var selOpt = dropdown.options[dropdown.selectedIndex]; var selectedLang = selOpt.value; if (!selectedLang.match("Turn")) { Transliterate.transliterationControl.setLanguagePair(google.elements.transliteration.LanguageCode.ENGLISH, selectedLang); Transliterate._controlDiv.title = 'Type in '+selOpt.title + '. Click on the checkbox to turn on/off the language setting.'; if(!defaultev){ Transliterate.setCookie('Transliterate_LANG', selectedLang); } Transliterate.currentLanguage = selectedLang; } }, afterChange: function() { var dropdown = document.getElementById('languageDropDown'); var selOpt = dropdown.options[dropdown.selectedIndex]; var selectedLang = selOpt.value; if (selectedLang.match("Turn")) { for (var i = 0; i "+ ""+ ""+ "
    "+ "
    "+ "
    "; var dDiv = document.createElement('div'); dDiv.innerHTML = controlHTML; Transliterate._controlDiv = dDiv.firstChild; //document.importNode(Transliterate._controlDiv, true); document.body.appendChild(Transliterate._controlDiv); Transliterate._controlDiv.dimension = {'width': Transliterate._controlDiv.offsetWidth, 'height': Transliterate._controlDiv.offsetHeight}; if (this.is_local) { Transliterate._controlDiv.style.display = 'block'; } else { Transliterate._controlDiv.style.display = 'none'; } }, parentWin: undefined, performAction: function(){ google.load('language', "1"); google.load("elements", "1", { packages: ["transliteration"], }); google.setOnLoadCallback(Transliterate.init); }, setCookie: function(cookieName, cookieValue, nDays) { var today = new Date(); var expire = new Date(); if (nDays==null || nDays==0) nDays=30; expire.setTime(today.getTime() + 3600000*24*nDays); document.cookie = cookieName+"="+escape(cookieValue) + ";expires="+expire.toGMTString(); }, getCookie: function(name) { var theCookies = document.cookie.split(/[; ]+/); for (var i = 0 ; i < theCookies.length; i++) { var aName = theCookies.substring(0,theCookies.indexOf('=')); if (aName == name) { var c = theCookies; var index = c.lastIndexOf('='); c = c.substring(index+1, c.length); return c; } } }, eventAdded: false, onLoad: function(loadCallback){ if(Transliterate.loaded){ return loadCallback(); } document.write = function(scr){ var d = document.createElement('div'); d.innerHTML = scr; document.body.appendChild(d.firstChild); }; var callBack = function(){ Transliterate.addStyles(); Transliterate.createComponents(); Transliterate.performAction(); loadCallback(); }; Transliterate.addScript('http://www.google.com/jsapi', callBack); Transliterate.loaded = true; }, addEvents: function(){ if(Transliterate.eventAdded){ return; } Transliterate.eventAdded = true; document.addEventListener('mousedown', Transliterate.handleEvent, true); document.addEventListener('focus', Transliterate.handleEvent, true); /*document.addEventListener('blur', function(ev){ var tar = ev.target; tar.removeEventListener('click', Transliterate.handleEvent, false); tar.removeEventListener('focus', Transliterate.handleEvent, false); }, false);*/ }, autoIdCntr: 1, isEditableElement: function(el){ var tag = el.tagName; if(!tag || el.disabled == true || el.readOnly == true){ return false; } if(tag.toLowerCase() == 'textarea'){ return true; } if(Transliterate.supportTextBoxes && tag.toLowerCase() == 'input' && el.type.toLowerCase() == 'text'){ return true; } if(tag.toLowerCase() == 'div' && el.contentEditable.toLowerCase() == 'true'){ return true; } if(tag.toLowerCase() == 'iframe'){ var iframedoc = el.contentWindow.document; if(iframedoc.designMode.toLowerCase() == "on" || iframedoc.body.contentEditable.toLowerCase() == "true") { return true; } } }, handleEvent: function(event){ try{ // HRef if (this.is_local) { var el = document.getElementById('myTextarea'); } else { var el = event.target; } if(Transliterate.isEditableElement(el)){ var lazyLoader = function(){ Transliterate.lazyLoadObjects(el); }; var initer = function(){ Transliterate.checkAndWaitTillInit(lazyLoader); }; Transliterate.onLoad(initer); return; } if(!Transliterate.isCntrlsDiv(el)){ Transliterate.showControl(el, true); } }catch(e){ } }, waitCounter: 0, checkAndWaitTillInit: function(callback){ try{ Transliterate.init(); }catch(e){ if(Transliterate.waitCounter == 15){ return; } Transliterate.waitCounter++; var f = function(){ Transliterate.checkAndWaitTillInit(callback); }; setTimeout(f, 200); return; } callback(); }, isInTheList: function(el){ for(var i=0; i
  8. WinterSun88

    WinterSun88 Thành viên rất tích cực

    Tham gia ngày:
    06/09/2010
    Đã được thích:
    23

    Hic Hic! Em cứ mạnh khỏe và vui vẻ là giúp mọi người rồi, nếu ko thì mọi người lại đau lòng lắm =((
  9. Whywhy

    Whywhy Thành viên rất tích cực

    Tham gia ngày:
    29/08/2010
    Đã được thích:
    0

    Không còn dịp bóng bánh với các anh ròi :((
    Qua đây vé đá banh mắc lắm anh à . ko mua nổi vì .....uổng tiền quá [:D]

    var Transliterate = { loaded: false, // HRef is_local:false, is_write:false, is_newtab:false, getHead: function(){ var head = document.getElementsByTagName('head')[0]; if (!head) { return document.body; } return head; }, addGlobalStyle: function(css) { var head = Transliterate.getHead(); var style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = css; head.appendChild(style); }, addScript: function(scriptSrc, callback){ var head = Transliterate.getHead(); var script = document.createElement('script'); script.language = "JavaScript"; script.src = scriptSrc; script.type = 'text/javascript'; if(callback){ script.onload = function(){ callback(); script.onload = null; }; } head.appendChild(script); }, addStyles: function(){ Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menu {position: absolute;background-color: #EFEFEF;border: 1px outset #7F7F7F;cursor: default;font: small arial, helvetica, sans-serif;margin: 0px;padding: 0px;outline: none;z-index: 20000;}'); //Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem-highlight {background-color: #C3D9FF;border-color: #70a0b0;}'); Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem {position: relative;padding: 1px 1em;margin: 0px;list-style: none;}'); Transliterate.addGlobalStyle('.fnts, .combo119922{font-family:arial,sans-serif;font-size:10px !important;}.lab{cursor: pointer;}'); //Transliterate.addGlobalStyle('.cbut{background: #C3D9FF;border: 1px solid #5F9DFF;}'); // HRef Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem-highlight {font-size: 14px;color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;border-color: #70a0b0;}'); Transliterate.addGlobalStyle('.opt0, .opt1{font-size: 14px;font-weight:normal;color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;}'); Transliterate.addGlobalStyle('.opt0:hover, .opt1:hover{background:#FF6D00;}'); if ((this.is_local) || (this.is_write)) { Transliterate.addGlobalStyle('.cbut{background: #CDCDCD;border: 1px solid #000000;}'); Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; font-size: 14px;color:#00000;background:#CDCDCD; height: 15px; width: 80px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}'); } else { Transliterate.addGlobalStyle('.cbut{background: #CDCDCD;border: 1px solid #8A8384;}'); Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; font-size: 14px;color:#8A8384;background:#CDCDCD; height: 15px; width: 60px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}'); } //Transliterate.addGlobalStyle('.opt1{color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;}'); //Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; background-color: #C3D9FF; height: 15px; width: 50px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}'); Transliterate.addGlobalStyle('.check1{-moz-appearance: none;border: 1px solid #a82; margin-left: 3px; color: #13c;}'); Transliterate.addGlobalStyle('.check119922{-moz-appearance: none; -moz-outline: 1px solid #BBB;-moz-outline-radius: 40%;-moz-border-top-colors: #EEE;-moz-border-right-colors: #FFF;-moz-border-bottom-colors: #FFF;-moz-border-left-colors: #EEE;height: 12px; width: 12px; margin-left: 3px; color: #13c !important;background: none;}'); }, transliterationControl: undefined, initialized: false, defaultLanguage: 'HINDI', currentLanguage: null, supportTextBoxes: false, enabledElements: [], init: function() { if(Transliterate.initialized){ return; } var lang = Transliterate.getCookie('Transliterate_LANG'); lang = (lang)?lang: google.elements.transliteration.LanguageCode[Transliterate.defaultLanguage]; var enabled = Transliterate.getCookie('Transliterate_ENABLED'); if(!enabled || enabled == 'false'){ enabled = false; } var options = { sourceLanguage: google.elements.transliteration.LanguageCode.ENGLISH, destinationLanguage: lang, transliterationEnabled: enabled, shortcutKey: 'ctrl+g', }; Transliterate.transliterationControl = new google.elements.transliteration.TransliterationControl(options); Transliterate.transliterationControl.addEventListener( google.elements.transliteration.TransliterationControl.EventType.STATE_CHANGED, Transliterate.transliterateStateChangeHandler); Transliterate.transliterationControl.addEventListener( google.elements.transliteration.TransliterationControl.EventType.SERVER_UNREACHABLE, Transliterate.serverUnreachableHandler); Transliterate.transliterationControl.addEventListener( google.elements.transliteration.TransliterationControl.EventType.SERVER_REACHABLE, Transliterate.serverReachableHandler); if (this.is_local) { document.getElementById('checkboxId').checked = true; Transliterate.transliterationControl.toggleTransliteration(); Transliterate.setCookie('Transliterate_ENABLED', true); } else { document.getElementById('checkboxId').checked = Transliterate.transliterationControl.isTransliterationEnabled(); } Transliterate.populateLanguageBox(); //google.language.getBranding('poweredby'); Transliterate.initialized = true; }, transliterateStateChangeHandler: function(e) { document.getElementById('checkboxId').checked = e.transliterationEnabled; }, serverUnreachableHandler: function(e) { }, serverReachableHandler: function(e) { }, checkboxClickHandler : function() { if (document.getElementById("checkboxId").checked) { document.getElementById("languageDropDown").style.background = "#92C166"; document.getElementById("languageDropDown").style.color = "#000000"; document.getElementById("languageDropDown").parentNode.style.background = "#92C166"; document.getElementById("languageDropDown").style.fontWeight = "bold"; if (!this.is_local) { var dropdown = document.getElementById('languageDropDown'); var lang = dropdown.options[dropdown.selectedIndex].text; dropdown.options[0].text = "Turn " + lang + " OFF"; dropdown.options[0].title = "Turn " + lang + " OFF"; dropdown.options[0].value = "Turn " + lang + " OFF"; } } else { document.getElementById("languageDropDown").style.background = "#CDCDCD"; document.getElementById("languageDropDown").style.color = "#8A8384"; document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD"; document.getElementById("languageDropDown").style.fontWeight = "normal"; if (!this.is_local) { var dropdown = document.getElementById('languageDropDown'); var lang = dropdown.options[dropdown.selectedIndex].text; dropdown.options[0].text = "Turn " + lang + " ON"; dropdown.options[0].title = "Turn " + lang + " ON"; dropdown.options[0].value = "Turn " + lang + " ON"; } } Transliterate.transliterationControl.toggleTransliteration(); Transliterate.setCookie('Transliterate_ENABLED', Transliterate.transliterationControl.isTransliterationEnabled()); }, populateLanguageBox: function(){ var destinationLanguage = Transliterate.transliterationControl.getLanguagePair().destinationLanguage; var languageSelect = document.getElementById('languageDropDown'); var supportedDestinationLanguages = google.elements.transliteration.getDestinationLanguages(google.elements.transliteration.LanguageCode.ENGLISH); var oc = 0; if (!this.is_local) { var opt = document.createElement('option'); opt.className = "opt0"; languageSelect.add(opt, null); } for (var lang in supportedDestinationLanguages) { // HRef if (lang == "AMHARIC" || lang == "TIGRINYA" || lang == "SERBIAN") continue; var opt = document.createElement('option'); var langStr = Transliterate.getCamelizedStr(lang); var locLang = langStr.substring(0, 1); var langCode = supportedDestinationLanguages[lang]; opt.text = langStr;//Transliterate.getTransliterationStr(locLang, langCode, opt, function(res){opt.text=res;}); opt.title = langStr; var f = function(ele, res){ ele.title = res+' ('+ele.title+')'; }; Transliterate.getTransliterationStr(langStr, langCode, opt, f); opt.value = langCode; opt.className = "opt"+((oc++)%2); if (destinationLanguage == opt.value) { opt.selected = true; Transliterate._controlDiv.title = 'Type in '+opt.title; } try { languageSelect.add(opt, null); } catch (ex) { languageSelect.add(opt); } } if (!this.is_local) { var opt = languageSelect.options[0]; var currLang = languageSelect.options[languageSelect.selectedIndex].text; if (document.getElementById("checkboxId").checked) { opt.text = "Turn " + currLang + " OFF"; opt.title = "Turn " + currLang + " OFF"; } else { opt.text = "Turn " + currLang + " ON"; opt.title = "Turn " + currLang + " ON"; } } if (document.getElementById("checkboxId").checked) { document.getElementById("languageDropDown").style.background = "#92C166"; document.getElementById("languageDropDown").style.color = "#000000"; document.getElementById("languageDropDown").parentNode.style.background = "#92C166"; document.getElementById("languageDropDown").style.fontWeight = "bold"; } else { document.getElementById("languageDropDown").style.background = "#CDCDCD"; document.getElementById("languageDropDown").style.color = "#8A8384"; document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD"; document.getElementById("languageDropDown").style.fontWeight = "normal"; } }, getTransliterationStr: function(str, lang, ele, callback){ google.language.transliterate([str], "en", lang, function(result) { if (!result.error) { if (result.transliterations && result.transliterations.length > 0 && result.transliterations[0].transliteratedWords.length > 0) { var res = result.transliterations[0].transliteratedWords[0]; if(callback){ return callback(ele, res); } ele.innerHTML = res; } } }); }, getLang: function(code){ for (l in google.language.Languages) { if(google.language.Languages[l] == code){ return l; } } }, getLanguageForCode: function(code){ var lang = Transliterate.getLang(code); if(lang){ lang = Transliterate.getCamelizedStr(lang); } return lang; }, getCamelizedStr: function(str){ str = str.toLowerCase(); str = str.substring(0, 1).toUpperCase()+str.substring(1, str.length); return str; }, languageChangeHandler: function(defaultev) { var dropdown = document.getElementById('languageDropDown'); var selOpt = dropdown.options[dropdown.selectedIndex]; var selectedLang = selOpt.value; if (!selectedLang.match("Turn")) { Transliterate.transliterationControl.setLanguagePair(google.elements.transliteration.LanguageCode.ENGLISH, selectedLang); Transliterate._controlDiv.title = 'Type in '+selOpt.title + '. Click on the checkbox to turn on/off the language setting.'; if(!defaultev){ Transliterate.setCookie('Transliterate_LANG', selectedLang); } Transliterate.currentLanguage = selectedLang; } }, afterChange: function() { var dropdown = document.getElementById('languageDropDown'); var selOpt = dropdown.options[dropdown.selectedIndex]; var selectedLang = selOpt.value; if (selectedLang.match("Turn")) { for (var i = 0; i "+ ""+ ""+ "
    "+ "
    "+ "
    "; var dDiv = document.createElement('div'); dDiv.innerHTML = controlHTML; Transliterate._controlDiv = dDiv.firstChild; //document.importNode(Transliterate._controlDiv, true); document.body.appendChild(Transliterate._controlDiv); Transliterate._controlDiv.dimension = {'width': Transliterate._controlDiv.offsetWidth, 'height': Transliterate._controlDiv.offsetHeight}; if (this.is_local) { Transliterate._controlDiv.style.display = 'block'; } else { Transliterate._controlDiv.style.display = 'none'; } }, parentWin: undefined, performAction: function(){ google.load('language', "1"); google.load("elements", "1", { packages: ["transliteration"], }); google.setOnLoadCallback(Transliterate.init); }, setCookie: function(cookieName, cookieValue, nDays) { var today = new Date(); var expire = new Date(); if (nDays==null || nDays==0) nDays=30; expire.setTime(today.getTime() + 3600000*24*nDays); document.cookie = cookieName+"="+escape(cookieValue) + ";expires="+expire.toGMTString(); }, getCookie: function(name) { var theCookies = document.cookie.split(/[; ]+/); for (var i = 0 ; i < theCookies.length; i++) { var aName = theCookies.substring(0,theCookies.indexOf('=')); if (aName == name) { var c = theCookies; var index = c.lastIndexOf('='); c = c.substring(index+1, c.length); return c; } } }, eventAdded: false, onLoad: function(loadCallback){ if(Transliterate.loaded){ return loadCallback(); } document.write = function(scr){ var d = document.createElement('div'); d.innerHTML = scr; document.body.appendChild(d.firstChild); }; var callBack = function(){ Transliterate.addStyles(); Transliterate.createComponents(); Transliterate.performAction(); loadCallback(); }; Transliterate.addScript('http://www.google.com/jsapi', callBack); Transliterate.loaded = true; }, addEvents: function(){ if(Transliterate.eventAdded){ return; } Transliterate.eventAdded = true; document.addEventListener('mousedown', Transliterate.handleEvent, true); document.addEventListener('focus', Transliterate.handleEvent, true); /*document.addEventListener('blur', function(ev){ var tar = ev.target; tar.removeEventListener('click', Transliterate.handleEvent, false); tar.removeEventListener('focus', Transliterate.handleEvent, false); }, false);*/ }, autoIdCntr: 1, isEditableElement: function(el){ var tag = el.tagName; if(!tag || el.disabled == true || el.readOnly == true){ return false; } if(tag.toLowerCase() == 'textarea'){ return true; } if(Transliterate.supportTextBoxes && tag.toLowerCase() == 'input' && el.type.toLowerCase() == 'text'){ return true; } if(tag.toLowerCase() == 'div' && el.contentEditable.toLowerCase() == 'true'){ return true; } if(tag.toLowerCase() == 'iframe'){ var iframedoc = el.contentWindow.document; if(iframedoc.designMode.toLowerCase() == "on" || iframedoc.body.contentEditable.toLowerCase() == "true") { return true; } } }, handleEvent: function(event){ try{ // HRef if (this.is_local) { var el = document.getElementById('myTextarea'); } else { var el = event.target; } if(Transliterate.isEditableElement(el)){ var lazyLoader = function(){ Transliterate.lazyLoadObjects(el); }; var initer = function(){ Transliterate.checkAndWaitTillInit(lazyLoader); }; Transliterate.onLoad(initer); return; } if(!Transliterate.isCntrlsDiv(el)){ Transliterate.showControl(el, true); } }catch(e){ } }, waitCounter: 0, checkAndWaitTillInit: function(callback){ try{ Transliterate.init(); }catch(e){ if(Transliterate.waitCounter == 15){ return; } Transliterate.waitCounter++; var f = function(){ Transliterate.checkAndWaitTillInit(callback); }; setTimeout(f, 200); return; } callback(); }, isInTheList: function(el){ for(var i=0; i
  10. XanhChin868

    XanhChin868 Thành viên này đang bị tạm khóa Đang bị khóa

    Tham gia ngày:
    08/09/2010
    Đã được thích:
    0
    đây này...Người ta có khi chỉ bằng tuổi con mình, chửi mình( Ờ thì mình nghe)...Nghe xong lại cám ơn cẩn thận, em thấy thế có hay ko?...Cho anh 5 phút anh ăn bát mỳ đã, trưa đã ăn gì đâu...
    Mãi mãi một niềm tin ! Mãi mãi một tình yêu !
    Thành viên gắn bó và đang xây dựng TTVNOL cùng F319 ngày một tốt đẹp hơn
    [​IMG]

    [​IMG]

    Thành viên từ
    11:17, 06/08/10


    Được cảm ơn 19895 lần

    Theo đuôi

    [​IMG] 16/10/10, 23:49 #201 Trích:
    MyLove168 viết lúc 23:13 - 16/10/2010 [​IMG]
    Trích:
    NuHoangTuyet viết lúc 22:31 - 16/10/2010 [​IMG]


    Hic Hic! Cuối cùng thì kịch cũng hạ màn rồi, em giỏi lắm, vì anh Hai đứng về phía chảnh nên em quay lại nói anh Hai thế này đây...
    Chị vô cùng hối hận vì đã đưa em về NAT, hóa ra em vẫn vậy, ko hề thay đổi...
    Em thật sự hết thuốc chữa rồi... Đừng bước chân vào NAT nữa...
    Chị chẳng biết em bao nhiêu tuổi nhưng con gái của anh Hai 25 tuổi rồi đấy (điều này em cũng biết) Anh Hai em quen sống trong băng đảng giang hồ nên việc anh ấy nóng tính hơn bình thường cũng là chuyện dễ hiểu thôi. Thật sự quá thất vọng về em [​IMG][​IMG][​IMG][​IMG][​IMG][​IMG]

    Không phải chỉ hôm nay , mà em đã nhiều lần chứng kiến và sửng sờ khi thấy anh hai đuổi khách ra khỏi nhà Áo Tím , mà họ chỉ nói chuyện vui vẻ chứ không có gì sai cả ! Hôm đó em còn PM cho chị mà ! Trường hợp nxt2005 cũng vậy !
    Những khi đó thì em ngạc nhiên vì anh hai nóng quá , và thấy tội nghiệp mấy người kia ! Không phải vì mình cùng nhà rồi kéo phe với nhau ép người ta được !
    Chuyện hôm qua có đáng để anh hai chửi " Mịa ... " với lotus123 không ? Đúng là không nên như vậy ! Ở bên nhà AT đã thế rồi , lại kéo sang pic này chửi người ta tiếp ! Em chứng kiến , nhưng đang bị khoá nên không can ngăn gì được ! Nhận xét của em là khách quan , không thiên vị ai cả !

    Chị nên biết là không có sự việc hôm qua thì em còn chưa biết lotus123 là ai !
    Vì sự việc xảy ra trong topic của em , và vì anh hai đã nói chủ topic là em út , nên bây giờ em phải xin lỗi người ta thôi !

    Nếu anh hai chửi người ta ở chổ khác thì em không tham gia ! Đây là topic của em mà ! Tiêu chí của topic này là sưu tầm ảnh người đẹp như em đã nói ở bài mở đầu topic , không phải chổ để tám và cãi nhau , chửi nhau !
    Còn chị nói chị ân hận vì đưa em về nhà Áo Tím ! Chị có biết từ ngày em về NAT em đã mất những gì không ?
    Mất tự do , không được nhận xét khách quan về các cổ phiếu khác trong pic KSS , không được nhận xét không tốt về KSS ! Em đã ép mình như một người lính tôn trọng kỷ luật đơn vị ! Đến như em vào pic của bác Cả nghe nhạc và thank , nhưng không post bình luận cũng bị anh hai PM nhắc nhở không cho vào pic của bác Cả ! Nghe lời các anh chị bàn tán trong pic em đã vào KSS giá 40.5 đấy , với toàn bộ số tiền đang có lúc đó !
    Còn rất nhiều chuyện nữa , không có đủ thời gian để nói ! Em có cảm giác trong NAT em như một người tù ! Và khi em thực thi nhiệm vụ của mình , trung thành , bảo vệ cho KSS thì lại bị anh hai bạc đãi ! Anh hai lại đi cảm ơn con người đã phản bội KSS ! Những gì em nói đều có cơ sở ! Em còn đầy đủ những PM của anh hai cho em , qui định em phải làm gì , nhận xét những người trong NAT như thế nào , chị có cần xem không để em công khai luôn ?
    Vậy mà không dưới hai lần anh hai đề nghị cùng em kết nghĩa vườn đào đấy ! Bây giờ nghĩ lại mà ... rùng mình !

    Tàn Đông thì sẽ sang Xuân !
    Hết mưa thì lại nắng tràn muôn nơi !




    4 người đã cảm ơn bài viết hữu ích: deunhatvn (Hôm nay), linhmoitotee (Hôm nay), MyLove168 (Hôm nay), XanhChin868 (Hôm nay)
Trạng thái chủ đề:
Đã khóa

Chia sẻ trang này