Header

From Crazysweater

(Difference between revisions)
 
(3 intermediate revisions not shown)
Line 1: Line 1:
-
  /** Title rewrite ********************************************************
+
  <style type="text/css">
-
  * Rewrites the page's title, used by [[Template:Title]]
+
  /*
-
  * By Uncyclopedia:User:Sikon
+
      Notes:  
-
  */
+
      -You must log as admin to edit this page
-
+
      -Whatever you enter in this page will be added to the html in the header after the standard style sheet, so you can override styles.
-
function rewriteTitle()
+
      -if you want your code to look nice on this page, put a space at the beginning of each line
-
{
+
      -This is the default style sheet that you can override : http://editthis.info/wiki/skins/monobook/main.css
-
    if(typeof(SKIP_TITLE_REWRITE) != 'undefined' && SKIP_TITLE_REWRITE)
+
     
-
        return;
+
      For example uncomment this next section to turn all the text green:
-
+
  */
-
    var titleDiv = document.getElementById('title-meta');
+
  /*
-
+
  body {
-
    if(titleDiv == null || titleDiv == undefined)
+
     color: green;
-
        return;
+
-
+
-
    var cloneNode = titleDiv.cloneNode(true);
+
-
    var firstHeading = getElementsByClass('firstHeading', document.getElementById('content'), 'h1')[0];
+
-
    var node = firstHeading.childNodes[0];
+
-
+
-
    // new, then old!
+
-
    firstHeading.replaceChild(cloneNode, node);
+
-
    cloneNode.style.display = "inline";
+
-
   
+
-
     var titleAlign = document.getElementById('title-align');
+
-
    firstHeading.style.textAlign = titleAlign.childNodes[0].nodeValue;
+
  }
  }
-
   
+
  */
-
  addOnloadHook(rewriteTitle, false);
+
  </style>
 +
 
 +
<script type="text/javascript">
 +
  //Feel free to add your javascript code here.
 +
  </script>

Current revision as of 05:54, 26 July 2008

<style type="text/css">
  /*
     Notes: 
      -You must log as admin to edit this page
      -Whatever you enter in this page will be added to the html in the header after the standard style sheet, so you can override styles. 
      -if you want your code to look nice on this page, put a space at the beginning of each line
      -This is the default style sheet that you can override : http://editthis.info/wiki/skins/monobook/main.css 
      
      For example uncomment this next section to turn all the text green:
  */
 /*
body {
   color: green;
}
 */ 
</style>
<script type="text/javascript">
  //Feel free to add your javascript code here.
</script>
Personal tools