Benutzer:FProg/monobook.js: Unterschied zwischen den Versionen
imported>FProg K (korrektur) |
imported>FProg (Personal Links -> Memory Alpha Englisch) |
||
Zeile 1: | Zeile 1: | ||
+ | /* bottom bar */ | ||
function morelinks() { | function morelinks() { | ||
var tabs = document.getElementById('p-cactions').cloneNode(true); | var tabs = document.getElementById('p-cactions').cloneNode(true); | ||
Zeile 10: | Zeile 11: | ||
if (window.addEventListener) window.addEventListener("load",morelinks,false); | if (window.addEventListener) window.addEventListener("load",morelinks,false); | ||
else if (window.attachEvent) window.attachEvent("onload",morelinks); | else if (window.attachEvent) window.attachEvent("onload",morelinks); | ||
+ | |||
+ | |||
+ | /* personal links */ | ||
+ | function modplinks() { | ||
+ | var pcontris = document.getElementById('pt-mycontris').getElementsByTagName('A')[0]; | ||
+ | pcontris.href='/en/index.php'; | ||
+ | pcontris.firstChild.nodeValue='MA Englisch'; | ||
+ | } | ||
+ | if (window.addEventListener) window.addEventListener("load",modplinks,false); | ||
+ | else if (window.attachEvent) window.attachEvent("onload",modplinks); |
Version vom 18. Dezember 2004, 18:12 Uhr
/* bottom bar */
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);
/* personal links */
function modplinks() {
var pcontris = document.getElementById('pt-mycontris').getElementsByTagName('A')[0];
pcontris.href='/en/index.php';
pcontris.firstChild.nodeValue='MA Englisch';
}
if (window.addEventListener) window.addEventListener("load",modplinks,false);
else if (window.attachEvent) window.attachEvent("onload",modplinks);