Benutzer:FProg/monobook.js: Unterschied zwischen den Versionen
imported>FProg |
imported>FProg K (korrektur) |
||
Zeile 1: | Zeile 1: | ||
function morelinks() { | function morelinks() { | ||
− | var tabs = document.getElementById('p- | + | var tabs = document.getElementById('p-cactions').cloneNode(true); |
tabs.id = 'mytabs'; | tabs.id = 'mytabs'; | ||
var listitems = tabs.getElementsByTagName('LI'); | var listitems = tabs.getElementsByTagName('LI'); |
Version vom 18. Dezember 2004, 17:35 Uhr
function morelinks() {
var tabs = document.getElementById('p-cactions').cloneNode(true);
tabs.id = 'mytabs';
var listitems = tabs.getElementsByTagName('LI');
for (i=0;i<listitems.length;i++) {
if(listitems[i].id) listitems[i].id = 'mytabs-' + listitems[i].id;
}
document.getElementById('column-content').appendChild(tabs);
}
if (window.addEventListener) window.addEventListener("load",morelinks,false);
else if (window.attachEvent) window.attachEvent("onload",morelinks);