Benutzer:FProg/monobook.js: Unterschied zwischen den Versionen

aus Memory Alpha, der freien deutschen Star-Trek-Datenbank
Spring zu: Navigation, suche
imported>FProg
 
imported>FProg
(Trockendock in persönlichen Links)
 
(2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
 +
/* bottom bar */
 
function morelinks() {
 
function morelinks() {
   var tabs = document.getElementById('p-captions').cloneNode(true);
+
   var tabs = document.getElementById('p-cactions').cloneNode(true);
 
   tabs.id = 'mytabs';
 
   tabs.id = 'mytabs';
 
   var listitems = tabs.getElementsByTagName('LI');
 
   var listitems = tabs.getElementsByTagName('LI');
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() {
 +
  // Meine Beiträge --> Trockendock
 +
  var pcontris = document.
 +
getElementById('pt-mycontris').getElementsByTagName('A')[0];
 +
  pcontris.href='/de/index.php/Memory_Alpha:Trockendock';
 +
  pcontris.firstChild.nodeValue='Trockendock';
 +
 
 +
}
 +
if (window.addEventListener) window.addEventListener("load",modplinks,false);
 +
else if (window.attachEvent) window.attachEvent("onload",modplinks);

Aktuelle Version vom 22. Januar 2005, 12:11 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() {
  // Meine Beiträge --> Trockendock
  var pcontris = document.
getElementById('pt-mycontris').getElementsByTagName('A')[0];
  pcontris.href='/de/index.php/Memory_Alpha:Trockendock';
  pcontris.firstChild.nodeValue='Trockendock';
  
}
if (window.addEventListener) window.addEventListener("load",modplinks,false);
else if (window.attachEvent) window.attachEvent("onload",modplinks);