Welcome to the Club Penguin Wiki! Log in or Create an account to join the community!

MediaWiki:Monaco.js: Difference between revisions

From the Club Penguin Wiki, the free, editable encyclopedia about Club Penguin
Jump to navigation Jump to search
imported>Seahorseruler
No edit summary
imported>Tux
8 revisions from oldwiki:MediaWiki:Monaco.js
 
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
function addStyles () {
try {
var cats = document.getElementById('catlinks').getElementsByTagName('a');
var inCat, catName;
for (var i = 0; i < cats.length; i++) {
catName = cats[i].title
if (catName === 'Category:News') {
inCat = true;
}
}
if (inCat) importStylesheet('MediaWiki:Blog.css');
}catch (e) { /*might happen if no cats. ignore errors */}
}
addOnloadHook(addStyles);


CreatePage.redLinkClick=function(){};

Latest revision as of 10:46, 4 January 2011