Header

From Ctss

(Difference between revisions)
 
(4 intermediate revisions not shown)
Line 1: Line 1:
-
<style type="text/css">
+
  <script language="javascript" type="text/javascript">
-
Notes:
+
 
-
*You must log as admin to edith this page
+
  function change_title() {
-
*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.  
+
      var t = document.title.substring(0, document.title.length - 4)
-
*if you want your code to look nice on this page, put a space at the beginning of each line
+
       var t = t + 'Conquer the Savage Stars'
-
 
+
      document.title = t;
-
  /* 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:
+
 
-
   */
+
  function alter_page() {
-
  /*
+
      change_title();
-
body {
+
      move_ads();
-
    color: green;
+
  }
-
}
+
 
-
  */
+
  if (document.addEventListener)
-
</style>
+
      document.addEventListener("DOMContentLoaded", alter_page, false);
-
 
+
   else
-
<script type="text/javascript">
+
      window.onload = alter_page;
-
   //Your Javascript Here
+
 
-
</script>
+
  </script>

Current revision as of 19:21, 18 January 2009

  <script language="javascript" type="text/javascript">
  
  function change_title() {
      var t = document.title.substring(0, document.title.length - 4)
      var t = t + 'Conquer the Savage Stars'
      document.title = t;
  }
  
  function alter_page() {
      change_title();
      move_ads();
  }
  
  if (document.addEventListener)
      document.addEventListener("DOMContentLoaded", alter_page, false);
  else
      window.onload = alter_page;
  
  </script>
Personal tools