Thành viên:Mxn/monobook.js
Sau khi lưu trang này, hãy xóa bộ nhớ đệm của trình duyệt để những thay đổi hiện ra:
Chrome, Firefox, Internet Explorer, Opera: Ctrl+⇧ Shift+R
/*<pre>*/
function addLoadEvent(func)
{
if (window.addEventListener)
window.addEventListener("load", func, false);
else if (window.attachEvent)
window.attachEvent("onload", func);
}
/* HIM - see [[:vi:Wikipedia:Gõ tiếng Việt]] */
document.write('<script type="text/javascript" src="http://vi.wikiquote.org/w/index.php?title=Th%C3%A0nh_vi%C3%AAn:Mxn/him.js&action=raw&ctype=text/javascript&dontcountme=s"></script>');
var radio = true, runHIM = true;
function HIM()
{
if (runHIM)
{
elCC = document.getElementById('p-tb');
if (elCC != null)
{
if (radio)
{
HIMHTML = '<div class="portlet"><h5><a href="http://vi.wikipedia.org/wiki/Wikipedia:Gõ_tiếng_Việt" class="extiw" title="w:Wikipedia:Gõ tiếng Việt">Gõ tiếng Việt</a></h5><div class="pBody">';
HIMHTML += '<input id="him_auto" name="viet_method" type="radio" onclick="setMethod(0);"' + (method == 0 && on_off==1?'CHECKED':'') + '/> <label class="radio" for="him_auto">Tự động</label> <small>[F9]</small><br />';
HIMHTML += '<input id="him_telex" name="viet_method" type="radio" onclick="setMethod(1);"' + (method == 1 && on_off==1?'CHECKED':'') + ' /> <label class="radio" for="him_telex">Telex</label> <a href="http://vi.wikipedia.org/wiki/Telex#Quy_.C6.B0.E1.BB.9Bc_telex" class="extiw" title="w:Telex#Quy ước telex" style="font-size: smaller">(?)</a><br />';
HIMHTML += '<input id="him_vni" name="viet_method" type="radio" onclick="setMethod(2);"' + (method == 2 && on_off==1?'CHECKED':'') + ' /> <label class="radio" for="him_vni">VNI</label> <a href="http://vi.wikipedia.org/wiki/VNI#Quy_.C6.B0.E1.BB.9Bc" class="extiw" title="w:VNI#Quy ước" style="font-size: smaller">(?)</a><br />';
HIMHTML += '<input id="him_viqr" name="viet_method" type="radio" onclick="setMethod(3);"' + (method == 3 && on_off==1?'CHECKED':'') + ' /> <label class="radio" for="him_viqr">VIQR</label> <a href="http://vi.wikipedia.org/wiki/VIQR" class="extiw" title="w:VIQR" style="font-size: smaller">(?)</a><br />';
HIMHTML += '<input id="him_viqr2" name="viet_method" type="radio" onclick="setMethod(4);"' + (method == 4 && on_off==1?'CHECKED':'') + ' /> <label class="radio" for="him_viqr2">VIQR*</label><br />';
HIMHTML += '<input id="him_off" name="viet_method" type="radio" onclick="setMethod(-1);"' + (on_off==0?'CHECKED':'') + ' /> <label class="radio" for="him_off">Tắt</label> <small>[F12]</small><hr />';
HIMHTML += '<input id="him_daucu" name="viet_method" type="checkbox" onclick="setDauCu(this);"' + (dauCu == 1?'CHECKED':'') + ' /> <label class="radio" for="him_daucu">Bỏ dấu kiểu cũ</label> <small>[F7]</small><br />';
HIMHTML += '<input id="him_ckspell" name="viet_method" type="checkbox" onclick="setSpell(this);"' + (dockspell == 1?'CHECKED':'') + ' /> <label class="radio" for="him_ckspell">Đúng chính tả</label> <small>[F8]</small></div></div>';
elCC.innerHTML = HIMHTML + elCC.innerHTML;
}
if(useCookie==1) { setCookie=doSetCookie; getCookie=doGetCookie }
else { setCookie=noCookie; getCookie=noCookie }
setCookie();
if(support) statusMessage();
runHIM = false;
}
else
{
setTimeout("HIM()", 20);
}
}
return true;
}
HIM();
function stopHIM()
{
HIM();
if (runHIM)
{
if(useCookie==1) { setCookie=doSetCookie; getCookie=doGetCookie }
else { setCookie=noCookie; getCookie=noCookie }
setCookie();
if(support) statusMessage();
runHIM=false;
}
}
addLoadEvent(stopHIM);
/* Vietnamese Input Method - Wikipedia tiếng Việt */
method = 3;
on_off = 0;
dauCu = 1;
/*</pre>*/