MediaWiki:Monobook2.js

From EncyclopAtys

Revision as of 11:30, 9 June 2010 by Nysha (talk | contribs) (Created page with '<nowiki>: Any JavaScript here will be loaded for users using the MonoTryker skin: * additional monobook scripts *: var timerParent = document.getElementById( 'serve…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
/*<nowiki>*/
/* Any JavaScript here will be loaded for users using the MonoTryker skin */
/** additional monobook scripts **/

  var timerParent = document.getElementById( 'serverstatus' ).getElementsByTagName( 'ul' )[0];
  var timerLink   = document.createElement( 'a' );
  var timerObj    = document.createElement( 'li' );

  var ariimg = document.createElement('img');
  var ari = document.createElement( 'li' );
  ariimg.src = "http://www.3025-game.de/special/Realmstatus_ryzom.php?shard=ari&rnd"+Math.random();
  ariimg.style.height = "13px";
  var aritext = document.createTextNode(" Arispotle");
  ari.appendChild(ariimg);
  ari.appendChild(aritext);
  timerParent.insertBefore( ari, timerParent.firstChild );

  var leaimg = document.createElement('img');
  var lea = document.createElement( 'li' );
  leaimg.src = "http://www.3025-game.de/special/Realmstatus_ryzom.php?shard=lea&rnd"+Math.random();
  leaimg.style.height = "13px";
  var leatext = document.createTextNode(" Leanon");
  lea.appendChild(leaimg);
  lea.appendChild(leatext);
  timerParent.insertBefore( lea, timerParent.firstChild );

  var aniimg = document.createElement('img');
  var ani = document.createElement( 'li' );
  aniimg.src = "http://www.3025-game.de/special/Realmstatus_ryzom.php?shard=ani&rnd"+Math.random();
  aniimg.style.height = "13px";
  var anitext = document.createTextNode(" Aniro");
  ani.appendChild(aniimg);
  ani.appendChild(anitext);
  timerParent.insertBefore( ani, timerParent.firstChild );

  
/*</nowiki>*/