Header

From Wikivinaya

(Difference between revisions)
 
Line 17: Line 17:
  <script type="text/javascript">
  <script type="text/javascript">
-
  function addLoadEvent(func)
 
-
{
 
-
  if (window.addEventListener)
 
-
    window.addEventListener("load", func, false);
 
-
  else if (window.attachEvent)
 
-
    window.attachEvent("onload", func);
 
-
}
 
-
 
-
/* add menu for selecting subsets of secial characters */
 
-
/***** must match MediaWiki:Edittools *****/
 
-
function addCharSubsetMenu() {
 
-
  var specialchars = document.getElementById('specialchars');
 
-
 
-
  if (specialchars) {
 
-
    var menu = "<select id=\\"charsetBox\\" style=\\"display:inline\\" onkeyup=\\"chooseCharSubset(selectedIndex)\\" onChange=\\"chooseCharSubset(selectedIndex)\\">";
 
-
    menu += "<option>Wiki</option>";
 
-
    menu += "<option>Latin/Roman</option>";
 
-
    menu += "<option>Greek</option>";
 
-
    menu += "<option>Cyrillic</option>";
 
-
    menu += "<option>Arabic</option>";
 
-
    menu += "<option>Catalan</option>";
 
-
    menu += "<option>Croatian</option>";
 
-
    menu += "<option>Czech & Slovak</option>";
 
-
    menu += "<option>Dutch/Frisian</option>";
 
-
    menu += "<option>Esperanto</option>";
 
-
    menu += "<option>Estonian</option>";
 
-
    menu += "<option>French</option>";
 
-
    menu += "<option>German</option>";
 
-
    menu += "<option>Hawaiian</option>";
 
-
    menu += "<option>Hebrew</option>";
 
-
    menu += "<option>Hieroglyph</option>";
 
-
    menu += "<option>Hungarian</option>";
 
-
    menu += "<option>Icelandic</option>";
 
-
    menu += "<option>Indo-European</option>";
 
-
    menu += "<option>Irish</option>";
 
-
    menu += "<option>Italian</option>";
 
-
    menu += "<option>Korean</option>";
 
-
    menu += "<option>Latvian</option>";
 
-
    menu += "<option>Lithuanian</option>";
 
-
    menu += "<option>Maltese</option>";
 
-
    menu += "<option>Navajo & Apache</option>";
 
-
    menu += "<option>Old English</option>";
 
-
    menu += "<option>Pinyin</option>";
 
-
    menu += "<option>Polish</option>";
 
-
    menu += "<option>Portuguese</option>";
 
-
    menu += "<option>Rōmaji</option>";
 
-
    menu += "<option>Romanian</option>";
 
-
    menu += "<option>Scandinavian</option>";
 
-
    menu += "<option>Sorbian</option>";
 
-
    menu += "<option>Spanish</option>";
 
-
    menu += "<option>Thai</option>";
 
-
    menu += "<option>Turkic</option>";
 
-
    menu += "<option>Vietnamese</option>";
 
-
    menu += "<option>Welsh</option>";
 
-
    menu += "<option>Yiddish</option>";
 
-
    menu += "<option>IPA</option>";
 
-
    menu += "<option>Math/TeX</option>";
 
-
    menu += "</select>";
 
-
    specialchars.innerHTML = menu + specialchars.innerHTML;
 
-
 
-
    /* default subset - try to use a cookie some day */
 
-
    chooseCharSubset(0);
 
-
  }
 
-
}
 
-
 
-
/* select subsection of special characters */
 
-
function chooseCharSubset(s) {
 
-
  var l = document.getElementById('specialchars').getElementsByTagName('p');
 
-
  for (var i = 0; i < l.length ; i++) {
 
-
    l[i].style.display = i == s ? 'inline' : 'none';
 
-
    l[i].style.visibility = i == s ? 'visible' : 'hidden';
 
-
  }
 
-
}
 
-
 
-
addLoadEvent(addCharSubsetMenu);
 
  </script>
  </script>

Current revision as of 11:57, 9 July 2006

<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">


</script>
Personal tools