User:John Vandenberg/Add LI menu

/* */ /*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  to add s to } /* */