User:Rodasmith/custom.js

// Drop-down menu for MediaWiki:Noexactmatch function addNogoLanguageMenu { var nogomatch = $("nogomatch"); if (nogomatch) { var menu = ""; menu += " American Sign Language "; menu += " Spanish "; menu += " Swedish "; menu += " "; nogomatch.innerHTML = menu + nogomatch.innerHTML; chooseLanguage(0); } } addOnloadHook(addNogoSubsetMenu); // languageList_onChange function languageList_onChange(selectedIndex) { var languageOptions = $('nogomatch').getElementsByTagName('table'); for (var i = 0; i < languageOptions.length ; i++) { if (languageOptions[i].className == "foreignLanguage") { languageOptions[i].style.display = languageOptions[i].id == selectedIndex ? 'block' : 'none'; } } }

// END Dynamic Navigation Bars // ============================================================