Indonesia
<!-- http://bbs.downcodes.com/ --> <!--Untuk mencapai efek ini, diperlukan dua langkah. Langkah pertama adalah menambahkan kode berikut ke area <head> --> < skrip> dokumen .onmouseover = doOver; document.onmouseout = doOut; document.onmousedown = doDown; document.onmouseup = doOver() { var toEl = getReal(window.event.toElement, "className", "coolButton") ; var fromEl = getReal(window.event.fromElement, "className", "coolButton"); jika (toEl == fromEl) kembali; var el = toEl; var cDisabled = el.cDisabled = (cDisabled != null) ; // Jika atribut CDISABLED ada if (el.className == "coolButton") el.onselectstart = new Function("return false"); (el) ; makeGray(el,false); } } fungsi doOut() { var toEl = getReal(window.event.toElement, "className", "coolButton"); className", "coolButton"); if (toEl == fromEl) return; var el = fromEl; var cDisabled = el.cDisabled; cDisabled = (cDisabled != null); // Jika atribut CDISABLED ada var cToggle = el. cToggle; toggle_disabled = (cToggle != null); // Jika atribut CTOGGLE ada if (cToggle && el.value) { makePressed(el); makeGray(el,true); coolButton") && !cDisabled) { makeFlat(el); makeGray(el,true); } } function doDown() { el = getReal(window.event.srcElement, "className", "coolButton"); var cDisabled = el .cDisabled; cDisabled = (cDisabled != null); // Jika atribut CDISABLED ada if ((el.className == "coolButton") && !cDisabled) { makePressed(el) } } function doUp() { el = getReal (window.event.srcElement, "className", "coolButton"); var cDisabled = el.cDisabled; cDisabled = (cDisabled != null); ) && ! cDisabled) { makeRaised(el); } } function getReal(el, ketik, nilai) { temp = el; eval("temp." + ketik) == nilai) { el = temp; kembalikan el; } temp = temp.parentElement; var tmp = Array baru(); var j=0; for (var i=0; i<anak.panjang; i++) { if (eval("anak[i]." + ketik + "=="" + nilai + " "")) { tmp[tmp.length] = anak-anak[i]; } tmp = tmp.concat(findChildren(anak-anak[i], ketik, nilai)); } kembalikan tmp; } fungsi nonaktifkan(el ) { if (document.readyState != "complete") { window.setTimeout("disable(" + el.id + ")", 100); // Jika dokumen belum selesai dirender, coba kembalikan; el.cDisabled ; cDisabled = (cDisabled != null); // Jika atribut CDISABLED ada jika (!cDisabled) { el.cDisabled = true; ; tinggi: 100%; perataan teks: tengah;">' + '<span style="filter:Mask(Color=buttonface) DropShadow(Color=buttonhighlight, OffX=1, OffY=1, Positif=0); : 100% ; lebar: 100%%; perataan teks: tengah;">' + el.innerHTML + '</span>' + '</span>'; if (el.onclick != null) { el. cDisabled_onclick = el .onclick; el.onclick = null; } } } function aktifkan(el) { var cDisabled = el.cDisabled; cDisabled = (cDisabled != null); // Jika atribut CDISABLED ada if (cDisabled) { el .cDisabled = null; el.innerHTML = el.children[0].children[0].innerHTML; jika (el.cDisabled_onclick != null) { el.onclick = el.cDisabled_onclick; function addToggle( el) { var cDisabled = el.cDisabled; cDisabled = (cDisabled != null); // Jika atribut CDISABLED ada var cToggle = el.cToggle = (cToggle != null); hadir if (!cToggle && !cDisabled) { el.cToggle = true; if (el.value == null) el.value = 0; // Mulai sebagai tidak ditekan if (el.onclick != null) el. cToggle_onclick = el .onclick; // Cadangkan onclick yang lain el.cToggle_onclick = ""; el.onclick = new Function("toggle(" + el.id +"); " + el.id + ".cToggle_onclick(); "); } } function deleteToggle(el) { var cDisabled = el.cDisabled; cDisabled = (cDisabled != null); // Jika atribut CDISABLED ada var cToggle = el.cToggle; cToggle = (cToggle != null); // Jika atribut CTOGGLE ada if (cToggle && !cDisabled) { el.cToggle = null; if (el.value) { toggle(el); .onclick = el.cToggle_onclick; el.cToggle_onclick = null; } } } fungsi beralih(el) { el.value = !el.value jika (el.value) el.style.background = "URL(/images/tileback .gif) "; else el.style.backgroundImage = ""; // doOut(el); } function makeFlat(el) { dengan (el.style) { background = ""; border = "1px solid buttonface"; padding = "1px "; } } function makeRaised(el) { dengan (el.style) { borderLeft = "1px solid buttonhighlight"; borderRight = "1px solid buttonshadow borderTop = "1px solid buttonhighlight"; "; padding = "1px"; } } function makePressed(el) { dengan (el.style) { borderLeft = "1px solid buttonshadow"; borderRight = "1px solid buttonhighlight"; borderTop = "1px solid buttonshadow"; borderBottom = " 1px solid buttonhighlight "; paddingTop = "2px"; paddingLeft = "2px"; paddingBottom = "0px"; paddingRight = "0px"; } } function makeGray(el,b) { var filtval; if (b) filtval = "abu-abu ()" ; else filtval = ""; var imgs = findChildren(el, "tagName", "IMG"); for (var i=0; i<imgs.length; i++) { imgs[i].style.filter = filtval; } } document.write("<style>"); document.write(".coolBar {latar belakang: buttonface;border-top: 1px solid buttonhighlight; border-left: 1px solid buttonhighlight; border-bottom: 1px solid bayangan tombol; batas -kanan: 1px bayangan tombol padat; bantalan: 2px; font: menu;}"); document.write(".coolButton {batas: 1px permukaan tombol padat; bantalan: 1px; perataan teks: tengah; kursor: default; }") ; document.write(".coolButton IMG {filter: grey();}"); document.write("</style>"); </script> <!--Langkah 2: Tambahkan kode berikut ke < body>area--> <table class="coolBar"> <tr> <td class="coolButton"> <font size="3"><b><font color="#000000">Beranda</ font ></b></font> </td> <td class="coolButton"> <font size="3"><b><font color="#000000">Tautan</font></b > </font> </td> </tr> </tabel>