Wikipedia:WikiProject User scripts/Scripts/Add LI menu
From Wikipedia, the free encyclopedia
/*
*/ /*The CSS for this to work is on the talk page.*/ function addlimenu(tabs, name, id) { (na = document.createElement("a")).appendChild(document.createTextNode(name)); na.href = "#"; var mn = document.createElement("ul"); (li = document.createElement("li")).appendChild(na); li.appendChild(mn); if(id) li.id = id; li.className = 'tabmenu'; tabs.appendChild(li); return mn; // useful because it gives us the <ul> to add <li>s to } /*
*/