Greek Letters

[Total: 0    Average: 0/5]

This shows how to view the greek letters.

Body Code:

<script type=text/javascript>
function doIt() {
  if(!document.all) 
    alert("You must have IE4+ to see this.");
  else { 
    var alphabet = new Array
    ("Alpha","Beta","Gamma","Delta","Epsilon","Zeta","Eta","Theta","Iota","Kappa","Lambda",
     "Mu","Nu","Xi","Omicron","Pi","Rho","Sigma","Tau","Upsilon","Phi","Chi","Psi","Omega");
    
    document.write('<TITLE>Greek Alphabet</TITLE><TABLE CELLPADDING=0 CELLSPACING=0>');

    for (i=0; i<24; i++) {
      var c = alphabet[i];
      if (i < 17) {
        var uc = "&#"+eval(i + 913)+";";
        var lc = "&#"+eval(i + 945)+";";
      }
      else {
        uc = "&#"+eval(i + 914)+";";
        lc = "&#"+eval(i + 946)+";";
      }
      document.write("<TR><TD>"+c+"</TD><TD>&nbsp;"+uc+"</TD><TD>&nbsp;"+lc+"</TD></TR>");
    }
    document.write("</TABLE>");
  }
}
doIt();
</SCRIPT>

Times Viewed: 4

Leave a Reply

Your email address will not be published. Required fields are marked *