网页特效代码┊JsCode.CN
网页特效代码 您的位置:首页 > 网页特效代码 > 代码生成
RSS订阅

ASCII数字字形生成器

[ 发布者:在远方┊来源:本站整理┊时间:2006-01-10┊浏览: 人次 ]

代码冲突,请点击下面代码区域浏览效果:

<HTML>
<HEAD>
<TITLE>网页特效|Linkweb.cn/Js|---ASCII数字字形生成器</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<STYLE type=text/css>BODY {
 MARGIN: 25px 25px 25px
}
#all TD {
 FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋体", "宋体"
}
INPUT {
 FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋体", "宋体"
}
SELECT {
 FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋体", "宋体"
}
P {
 FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋体", "宋体"
}


#all A:active {
 COLOR: #7d070c
}
#all A:visited {
 COLOR: #7d070c
}

#all A:hover {
 COLOR: #336699
}
#all A:link {
 COLOR: #7d070c
}
</STYLE>
<SCRIPT language=JavaScript>
<!--

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function JM_cc(ob){
var obj=MM_findObj(ob); if (obj) {
obj.select();js=obj.createTextRange();js.execCommand("Copy");}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}
//-->
</SCRIPT>
<META content="MSHTML 5.50.4134.600" name=GENERATOR>
</HEAD>
<BODY id=all text=#000000 bgColor=#336699>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TR bgColor=#ffffff>
    <TD><IMG src="../images/sq_1.gif" width=11 height="14"></TD>
    <TD width="100%"></TD>
    <TD><IMG src="../images/sq_2.gif"    width=11 height="14"></TD>
  </TR>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TR bgColor=#ffffff>
    <TD><IMG src="../../images/space.gif" width=11 height="1"></TD>
    <TD width="100%">
      <table width="100%" border="0" cellpadding="8">
        <tr>
          <td align="center">
            <script language="JavaScript">
document.write("<font color=#7d070c style=\"font-size: 14px\">"+document.title+"</font>");
</script>
          </td>
        </tr>
        <tr>
          <td bgcolor="#f7f7f7">
            <script language=JavaScript>
<!--
function hideAllPreviews() {style1.style.display = "none"; style2.style.display = "none"; style3.style.display = "none"}
document.onkeydown = hideAllPreviews;
document.onmousedown = hideAllPreviews;

function previewStyle() {
if (!document.all){
alert("You need IE 4+ to preview style!")
return
}
  if(document.ascii.textStyle[0].selected&&document.all) {style1.style.display = ""; style1.style.top = (windowMarker.offsetTop+20); style1.style.left = (screen.width / 3)}
  if(document.ascii.textStyle[1].selected&&document.all) {style2.style.display = ""; style2.style.top = (windowMarker.offsetTop+20); style2.style.left = (screen.width / 4)}
  if(document.ascii.textStyle[2].selected&&document.all) {style3.style.display = ""; style3.style.top = (windowMarker.offsetTop+20); style3.style.left = (screen.width / 4)}
}

function beginGenerator() {
  var validChars = true;
  var inputText = document.ascii.inputField.value;

  inputText = inputText.toLowerCase();

  for(i = 0; i < inputText.length; i++) {
    if(inputText.charAt(i) != "a" && inputText.charAt(i) != "b" && inputText.charAt(i) != "c" && inputText.charAt(i) != "d" && inputText.charAt(i) != "e" && inputText.charAt(i) != "f" && inputText.charAt(i) != "g" && inputText.charAt(i) != "h" && inputText.charAt(i) != "i" && inputText.charAt(i) != "j" && inputText.charAt(i) != "k" && inputText.charAt(i) != "l" && inputText.charAt(i) != "m" && inputText.charAt(i) != "n" && inputText.charAt(i) != "o" && inputText.charAt(i) != "p" && inputText.charAt(i) != "q" && inputText.charAt(i) != "r" && inputText.charAt(i) != "s" && inputText.charAt(i) != "t" && inputText.charAt(i) != "u" && inputText.charAt(i) != "v" && inputText.charAt(i) != "w" && inputText.charAt(i) != "x" && inputText.charAt(i) != "y" && inputText.charAt(i) != "z" && inputText.charAt(i) != " " && inputText.charAt(i) != "0" && inputText.charAt(i) != "1" && inputText.charAt(i) != "2" && inputText.charAt(i) != "3" && inputText.charAt(i) != "4" && inputText.charAt(i) != "5" && inputText.charAt(i) != "6" && inputText.charAt(i) != "7" && inputText.charAt(i) != "8" && inputText.charAt(i) != "9" && inputText.substring(i,(i+2)) != "\\n") {validChars = false; invalChar = inputText.charAt(i)};
  }

  if(validChars == false) {alert('Fatal Error: Character "'+invalChar+'" invalid.  Only characters a-z, 0-9, and newlines (\n) accepted.')}
  if(validChars == true) {
    if(document.ascii.textStyle[0].selected) {buildStyle1(inputText)}
    if(document.ascii.textStyle[1].selected) {buildStyle2(inputText)}
    if(document.ascii.textStyle[2].selected) {buildStyle3(inputText)}
  }
}

function buildStyle1(inputText,booleanRepeat) {
 var newline = false; var line0 = ""; var line1 = ""; var line2 = ""; var line3 = ""; var space = "    "; var a = new Array(4); var b = new Array(4); var c = new Array(4); var d = new Array(4); var e = new Array(4); var f = new Array(4); var g = new Array(4); var h = new Array(4); var I = new Array(4); var j = new Array(4); var k = new Array(4); var l = new Array(4); var m = new Array(4); var n = new Array(4); var o = new Array(4); var p = new Array(4); var q = new Array(4); var r = new Array(4); var s = new Array(4); var t = new Array(4); var u = new Array(4); var v = new Array(4); var w = new Array(4); var x = new Array(4); var y = new Array(4); var z = new Array(4); var zero = new Array(4); var one = new Array(4); var two = new Array(4); var three = new Array(4); var four = new Array(4); var five = new Array(4); var six = new Array(4); var seven = new Array(4); var eight = new Array(4); var nine = new Array(4);
 a[0] = "     ";  a[1] = " __  ";  a[2] = "(__( ";  a[3] = "     ";
 b[0] = "     ";  b[1] = "|__  ";  b[2] = "|__) ";  b[3] = "     ";
 c[0] = "     ";  c[1] = " __  ";  c[2] = "(___ ";  c[3] = "     ";
 d[0] = "     ";  d[1] = " __| ";  d[2] = "(__| ";  d[3] = "     ";
 e[0] = "      "; e[1] = " ___  "; e[2] = "(__/_ "; e[3] = "      ";
 f[0] = "  _ ";  f[1] = "_|_ ";  f[2] = " |  ";  f[3] = "    ";
 g[0] = "     ";  g[1] = " __  ";  g[2] = "(__| ";  g[3] = " __/ ";
 h[0] = "     ";  h[1] = "|__  ";  h[2] = "|  ) ";  h[3] = "     ";
 I[0] = "  ";  I[1] = "o ";  I[2] = "| ";  I[3] = "  ";
 j[0] = "     ";  j[1] = "   | ";  j[2] = "(__, ";  j[3] = "     ";
 k[0] = "     ";  k[1] = "|__, ";  k[2] = "|  \\ "; k[3] = "     ";
 l[0] = "    ";  l[1] = "|   ";  l[2] = "|_, ";  l[3] = "    ";
 m[0] = "        "; m[1] = " __ __  "; m[2] = "|  )  ) "; m[3] = "        ";
 n[0] = "     ";  n[1] = " __  ";  n[2] = "|  ) ";  n[3] = "     ";
 o[0] = "     ";  o[1] = " __  ";  o[2] = "(__) ";  o[3] = "     ";
 p[0] = "     ";  p[1] = " __  ";  p[2] = "|__) ";  p[3] = "|    ";
 q[0] = "     ";  q[1] = " __  ";  q[2] = "(__| ";  q[3] = "   | ";
 r[0] = "     ";  r[1] = " __  ";  r[2] = "|  ' ";  r[3] = "     ";
 s[0] = "     ";  s[1] = "  __ ";  s[2] = "__)  ";  s[3] = "     ";
 t[0] = "     ";  t[1] = "_|_  ";  t[2] = " |_, ";  t[3] = "     ";
 u[0] = "      "; u[1] = "      "; u[2] = "(__(_ "; u[3] = "      ";
 v[0] = "     ";  v[1] = "     ";  v[2] = "(__| ";  v[3] = "     ";
 w[0] = "        "; w[1] = "        "; w[2] = "(__(__( "; w[3] = "        ";
 x[0] = "    ";  x[1] = "\\_' ";  x[2] = "/ \\ ";  x[3] = "    ";
 y[0] = "     ";  y[1] = "     ";  y[2] = "(__| ";  y[3] = "   | ";
 z[0] = "     ";  z[1] = "__   ";  z[2] = " (__ ";  z[3] = "     ";
 zero[0] = " __  "; zero[1] = "|  | "; zero[2] = "|__| "; zero[3] = "     ";
 one[0] = "   ";  one[1] = "'| ";  one[2] = " | ";  one[3] = "   ";
 two[0] = " __  "; two[1] = " __) "; two[2] = "(___ "; two[3] = "     ";
 three[0] = "___ "; three[1] = " _/ "; three[2] = "__) "; three[3] = "    ";
 four[0] = "     "; four[1] = "(__| "; four[2] = "   | "; four[3] = "     ";
 five[0] = " __  "; five[1] = "(__  "; five[2] = "___) "; five[3] = "     ";
 six[0] = "     "; six[1] = " /_  "; six[2] = "(__) "; six[3] = "     ";
 seven[0] = "__  "; seven[1] = "  / "; seven[2] = " /  "; seven[3] = "    ";
 eight[0] = " __  "; eight[1] = "(__) "; eight[2] = "(__) "; eight[3] = "     ";
 nine[0] = " __  "; nine[1] = "(__) "; nine[2] = "  /  "; nine[3] = "     ";

 for(i=0; i < inputText.length; i++) {
  if(inputText.charAt(i) == " ") {line0 += space;  line1 += space;  line2 += space;  line3 += space}
  if(inputText.charAt(i) == "a") {line0 += a[0];   line1 += a[1];  line2 += a[2];   line3 += a[3]}
  if(inputText.charAt(i) == "b") {line0 += b[0];   line1 += b[1];   line2 += b[2];   line3 += b[3]}
  if(inputText.charAt(i) == "c") {line0 += c[0];   line1 += c[1];   line2 += c[2];   line3 += c[3]}
  if(inputText.charAt(i) == "d") {line0 += d[0];   line1 += d[1];   line2 += d[2];   line3 += d[3]}
  if(inputText.charAt(i) == "e") {line0 += e[0];   line1 += e[1];   line2 += e[2];   line3 += e[3]}
  if(inputText.charAt(i) == "f") {line0 += f[0];   line1 += f[1];   line2 += f[2];   line3 += f[3]}
  if(inputText.charAt(i) == "g") {line0 += g[0];   line1 += g[1];   line2 += g[2];   line3 += g[3]}
  if(inputText.charAt(i) == "h") {line0 += h[0];   line1 += h[1];   line2 += h[2];   line3 += h[3]}
  if(inputText.charAt(i) == "i") {line0 += I[0];   line1 += I[1];   line2 += I[2];   line3 += I[3]}
  if(inputText.charAt(i) == "j") {line0 += j[0];   line1 += j[1];   line2 += j[2];   line3 += j[3]}
  if(inputText.charAt(i) == "k") {line0 += k[0];   line1 += k[1];  line2 += k[2];   line3 += k[3]}
  if(inputText.charAt(i) == "l") {line0 += l[0];   line1 += l[1];   line2 += l[2];   line3 += l[3]}
  if(inputText.charAt(i) == "m") {line0 += m[0];   line1 += m[1];   line2 += m[2];   line3 += m[3]}
  if(inputText.charAt(i) == "n") {line0 += n[0];   line1 += n[1];   line2 += n[2];   line3 += n[3]}
  if(inputText.charAt(i) == "o") {line0 += o[0];   line1 += o[1];   line2 += o[2];   line3 += o[3]}
  if(inputText.charAt(i) == "p") {line0 += p[0];   line1 += p[1];   line2 += p[2];   line3 += p[3]}
  if(inputText.charAt(i) == "q") {line0 += q[0];   line1 += q[1];   line2 += q[2];   line3 += q[3]}
  if(inputText.charAt(i) == "r") {line0 += r[0];   line1 += r[1];   line2 += r[2];   line3 += r[3]}
  if(inputText.charAt(i) == "s") {line0 += s[0];   line1 += s[1];   line2 += s[2];   line3 += s[3]}
  if(inputText.charAt(i) == "t") {line0 += t[0];   line1 += t[1];   line2 += t[2];   line3 += t[3]}
  if(inputText.charAt(i) == "u") {line0 += u[0];   line1 += u[1];   line2 += u[2];   line3 += u[3]}
  if(inputText.charAt(i) == "v") {line0 += v[0];   line1 += v[1];   line2 += v[2];   line3 += v[3]}
  if(inputText.charAt(i) == "w") {line0 += w[0];   line1 += w[1];   line2 += w[2];   line3 += w[3]}
  if(inputText.charAt(i) == "x") {line0 += x[0];   line1 += x[1];   line2 += x[2];   line3 += x[3]}
  if(inputText.charAt(i) == "y") {line0 += y[0];   line1 += y[1];   line2 += y[2];   line3 += y[3]}
  if(inputText.charAt(i) == "z") {line0 += z[0];   line1 += z[1];   line2 += z[2];   line3 += z[3]}
  if(inputText.charAt(i) == "0") {line0 += zero[0];  line1 += zero[1];  line2 += zero[2];  line3 += zero[3]}
  if(inputText.charAt(i) == "1") {line0 += one[0];  line1 += one[1];  line2 += one[2];  line3 += one[3]}
  if(inputText.charAt(i) == "2") {line0 += two[0];  line1 += two[1];  line2 += two[2];  line3 += two[3]}
  if(inputText.charAt(i) == "3") {line0 += three[0]; line1 += three[1]; line2 += three[2];  line3 += three[3]}
  if(inputText.charAt(i) == "4") {line0 += four[0];  line1 += four[1];  line2 += four[2];  line3 += four[3]}
  if(inputText.charAt(i) == "5") {line0 += five[0];  line1 += five[1];  line2 += five[2];  line3 += five[3]}
  if(inputText.charAt(i) == "6") {line0 += six[0];  line1 += six[1];  line2 += six[2];  line3 += six[3]}
  if(inputText.charAt(i) == "7") {line0 += seven[0]; line1 += seven[1]; line2 += seven[2];  line3 += seven[3]}
  if(inputText.charAt(i) == "8") {line0 += eight[0]; line1 += eight[1]; line2 += eight[2];  line3 += eight[3]}
  if(inputText.charAt(i) == "9") {line0 += nine[0];  line1 += nine[1];  line2 += nine[2];  line3 += nine[3]}
  if(inputText.substring(i,(i+2)) == "\\n") {var newline = true; break}
 }
 if(newline == true) {
  var outputText = line0+"\n"+line1+"\n"+line2+"\n"+line3;
  document.ascii.outputField.value = outputText;
  buildStyle1(inputText.substring((i+2),inputText.length),1);
 } else {
  var outputText = line0+"\n"+line1+"\n"+line2+"\n"+line3;
  if(booleanRepeat) {document.ascii.outputField.value += "\n"+outputText}
  else {document.ascii.outputField.value = outputText}
 }
}


function buildStyle2(inputText,booleanRepeat) {
 var newline = false; var line0 = ""; var line1 = ""; var line2 = ""; var line3 = ""; var line4 = ""; var line5 = ""; var space = "     "; var a = new Array(6); var b = new Array(6); var c = new Array(6); var d = new Array(6); var e = new Array(6); var f = new Array(6); var g = new Array(6); var h = new Array(6); var I = new Array(6); var j = new Array(6); var k = new Array(6); var l = new Array(6); var m = new Array(6); var n = new Array(6); var o = new Array(6); var p = new Array(6); var q = new Array(6); var r = new Array(6); var s = new Array(6); var t = new Array(6); var u = new Array(6); var v = new Array(6); var w = new Array(6); var x = new Array(6); var y = new Array(6); var z = new Array(6); var zero = new Array(6); var one = new Array(6); var two = new Array(6); var three = new Array(6); var four = new Array(6); var five = new Array(6); var six = new Array(6); var seven = new Array(6); var eight = new Array(6); var nine = new Array(6);
 a[0] = "     ___  ";  a[1] = "    /   | ";  a[2] = "   / /| | ";  a[3] = "  / / | | ";  a[4] = " / /  | | ";  a[5] = "/_/   |_| ";
 b[0] = " _____  ";  b[1] = "|  _  \\ ";  b[2] = "| |_| | ";  b[3] = "|  _  { ";  b[4] = "| |_| | ";  b[5] = "|_____/ ";
 c[0] = " _____  ";  c[1] = "/  ___| ";  c[2] = "| |     ";  c[3] = "| |     ";  c[4] = "| |___  ";  c[5] = "\\_____| ";
 d[0] = " _____  ";  d[1] = "|  _  \\ ";  d[2] = "| | | | ";  d[3] = "| | | | ";  d[4] = "| |_| | ";  d[5] = "|_____/ ";
 e[0] = " _____  ";  e[1] = "| ____| ";  e[2] = "| |__   ";  e[3] = "|  __|  ";  e[4] = "| |___  ";  e[5] = "|_____| ";
 f[0] = " _____  ";  f[1] = "|  ___| ";  f[2] = "| |__   ";  f[3] = "|  __|  ";  f[4] = "| |     ";  f[5] = "|_|     ";
 g[0] = " _____  ";  g[1] = "/  ___| ";  g[2] = "| |     ";  g[3] = "| |  _  ";  g[4] = "| |_| | ";  g[5] = "\\_____/ ";
 h[0] = " _   _  ";  h[1] = "| | | | ";  h[2] = "| |_| | ";  h[3] = "|  _  | ";  h[4] = "| | | | ";  h[5] = "|_| |_| ";
 I[0] = " _  ";   I[1] = "| | ";   I[2] = "| | ";   I[3] = "| | ";   I[4] = "| | ";   I[5] = "|_| ";
 j[0] = "     _  ";  j[1] = "    | | ";  j[2] = "    | | ";  j[3] = " _  | | ";  j[4] = "| |_| | ";  j[5] = "\\_____/ ";
 k[0] = " _   _   ";  k[1] = "| | / /  ";  k[2] = "| |/ /   ";  k[3] = "| |\\ \\   ";  k[4] = "| | \\ \\  ";  k[5] = "|_|  \\_\\ ";
 l[0] = " _      ";  l[1] = "| |     ";  l[2] = "| |     ";  l[3] = "| |     ";  l[4] = "| |___  ";  l[5] = "|_____| ";
 m[0] = "     ___  ___  "; m[1] = "    /   |/   | "; m[2] = "   / /|   /| | "; m[3] = "  / / |__/ | | "; m[4] = " / /       | | "; m[5] = "/_/        |_| ";
 n[0] = " __   _  ";  n[1] = "|  \\ | | ";  n[2] = "|   \\| | ";  n[3] = "| |\\   | ";  n[4] = "| | \\  | ";  n[5] = "|_|  \\_| ";
 o[0] = " _____  ";  o[1] = "/  _  \\ ";  o[2] = "| | | | ";  o[3] = "| | | | ";  o[4] = "| |_| | ";  o[5] = "\\_____/ ";
 p[0] = " _____  ";  p[1] = "|  _  \\ ";  p[2] = "| |_| | ";  p[3] = "|  ___/ ";  p[4] = "| |     ";  p[5] = "|_|     ";
 q[0] = " _____    ";  q[1] = "/  _  \\   ";  q[2] = "| | | |   ";  q[3] = "| | | |   ";  q[4] = "| |_| |_  ";  q[5] = "\\_______| ";
 r[0] = " _____   ";  r[1] = "|  _  \\  ";  r[2] = "| |_| |  ";  r[3] = "|  _  /  ";  r[4] = "| | \\ \\  ";  r[5] = "|_|  \\_\\ ";
 s[0] = " _____  ";  s[1] = "/  ___/ ";  s[2] = "| |___  ";  s[3] = "\\___  \\ ";  s[4] = " ___| | ";  s[5] = "/_____/ ";
 t[0] = " _____  ";  t[1] = "|_   _| ";  t[2] = "  | |   ";  t[3] = "  | |   ";  t[4] = "  | |   ";  t[5] = "  |_|   ";
 u[0] = " _   _  ";  u[1] = "| | | | ";  u[2] = "| | | | ";  u[3] = "| | | | ";  u[4] = "| |_| | ";  u[5] = "\\_____/ ";
 v[0] = " _     _  ";  v[1] = "| |   / / ";  v[2] = "| |  / /  ";  v[3] = "| | / /   ";  v[4] = "| |/ /    ";  v[5] = "|___/     ";
 w[0] = " _          __ "; w[1] = "| |        / / "; w[2] = "| |  __   / /  "; w[3] = "| | /  | / /   "; w[4] = "| |/   |/ /    "; w[5] = "|___/|___/     ";
 x[0] = "__    __ ";  x[1] = "\\ \\  / / ";  x[2] = " \\ \\/ /  ";  x[3] = "  }  {   ";  x[4] = " / /\\ \\  ";  x[5] = "/_/  \\_\\ ";
 y[0] = "__    __ ";  y[1] = "\\ \\  / / ";  y[2] = " \\ \\/ /  ";  y[3] = "  \\  /   ";  y[4] = "  / /    ";  y[5] = " /_/     ";
 z[0] = " ______ ";  z[1] = "|___  / ";  z[2] = "   / /  ";  z[3] = "  / /   ";  z[4] = " / /__  ";  z[5] = "/_____| ";
 zero[0] = " _____  ";  zero[1] = "/  _  \\ ";  zero[2] = "| | | | ";  zero[3] = "| |/| | ";  zero[4] = "| |_| | ";  zero[5] = "\\_____/ ";
 one[0] = " ___  ";  one[1] = "|_  | ";  one[2] = "  | | ";  one[3] = "  | | ";  one[4] = "  | | ";  one[5] = "  |_| ";
 two[0] = " _____  ";  two[1] = "/___  \\ ";  two[2] = " ___| | ";  two[3] = "/  ___/ ";  two[4] = "| |___  ";  two[5] = "|_____| ";
 three[0] = " _____  ";  three[1] = "|___  | ";  three[2] = "   _| | ";  three[3] = "  |_  { ";  three[4] = " ___| | ";  three[5] = "|_____/ ";
 four[0] = " _   _  ";  four[1] = "| | | | ";  four[2] = "| |_| | ";  four[3] = "\\___  | ";  four[4] = "    | | ";  four[5] = "    |_| ";
 five[0] = " _____  ";  five[1] = "|  ___| ";  five[2] = "| |___  ";  five[3] = "\\___  \\ ";  five[4] = " ___| | ";  five[5] = "\\_____| ";
 six[0] = " _____  ";  six[1] = "/  ___| ";  six[2] = "| |___  ";  six[3] = "|  _  \\ ";  six[4] = "| |_| | ";  six[5] = "\\_____/ ";
 seven[0] = " _____  ";  seven[1] = "|___  | ";  seven[2] = "    / / ";  seven[3] = "   / /  ";  seven[4] = "  / /   ";  seven[5] = " /_/    ";
 eight[0] = " _____  ";  eight[1] = "/  _  \\ ";  eight[2] = "| |_| | ";  eight[3] = "}  _  { ";  eight[4] = "| |_| | ";  eight[5] = "\\_____/ ";
 nine[0] = " _____  ";  nine[1] = "/  _  \\ ";  nine[2] = "| |_| | ";  nine[3] = "\\___  | ";  nine[4] = " ___| | ";  nine[5] = "|_____/ ";

 for(i=0; i < inputText.length; i++) {
  if(inputText.charAt(i) == " ") {line0 += space;  line1 += space;  line2 += space;  line3 += space;  line4 += space;    line5 += space}
  if(inputText.charAt(i) == "a") {line0 += a[0];   line1 += a[1];  line2 += a[2];   line3 += a[3];  line4 += a[4];   line5 += a[5]}
  if(inputText.charAt(i) == "b") {line0 += b[0];   line1 += b[1];   line2 += b[2];   line3 += b[3];  line4 += b[4];   line5 += b[5]}
  if(inputText.charAt(i) == "c") {line0 += c[0];   line1 += c[1];   line2 += c[2];   line3 += c[3];  line4 += c[4];   line5 += c[5]}
  if(inputText.charAt(i) == "d") {line0 += d[0];   line1 += d[1];   line2 += d[2];   line3 += d[3];  line4 += d[4];   line5 += d[5]}
  if(inputText.charAt(i) == "e") {line0 += e[0];   line1 += e[1];   line2 += e[2];   line3 += e[3];  line4 += e[4];   line5 += e[5]}
  if(inputText.charAt(i) == "f") {line0 += f[0];   line1 += f[1];   line2 += f[2];   line3 += f[3];  line4 += f[4];   line5 += f[5]}
  if(inputText.charAt(i) == "g") {line0 += g[0];   line1 += g[1];   line2 += g[2];   line3 += g[3];  line4 += g[4];   line5 += g[5]}
  if(inputText.charAt(i) == "h") {line0 += h[0];   line1 += h[1];   line2 += h[2];   line3 += h[3];  line4 += h[4];   line5 += h[5]}
  if(inputText.charAt(i) == "i") {line0 += I[0];   line1 += I[1];   line2 += I[2];   line3 += I[3];  line4 += I[4];   line5 += I[5]}
  if(inputText.charAt(i) == "j") {line0 += j[0];   line1 += j[1];   line2 += j[2];   line3 += j[3];  line4 += j[4];   line5 += j[5]}
  if(inputText.charAt(i) == "k") {line0 += k[0];   line1 += k[1];  line2 += k[2];   line3 += k[3];  line4 += k[4];   line5 += k[5]}
  if(inputText.charAt(i) == "l") {line0 += l[0];   line1 += l[1];   line2 += l[2];   line3 += l[3];  line4 += l[4];   line5 += l[5]}
  if(inputText.charAt(i) == "m") {line0 += m[0];   line1 += m[1];   line2 += m[2];   line3 += m[3];  line4 += m[4];   line5 += m[5]}
  if(inputText.charAt(i) == "n") {line0 += n[0];   line1 += n[1];   line2 += n[2];   line3 += n[3];  line4 += n[4];   line5 += n[5]}
  if(inputText.charAt(i) == "o") {line0 += o[0];   line1 += o[1];   line2 += o[2];   line3 += o[3];  line4 += o[4];   line5 += o[5]}
  if(inputText.charAt(i) == "p") {line0 += p[0];   line1 += p[1];   line2 += p[2];   line3 += p[3];  line4 += p[4];   line5 += p[5]}
  if(inputText.charAt(i) == "q") {line0 += q[0];   line1 += q[1];   line2 += q[2];   line3 += q[3];  line4 += q[4];   line5 += q[5]}
  if(inputText.charAt(i) == "r") {line0 += r[0];   line1 += r[1];   line2 += r[2];   line3 += r[3];  line4 += r[4];   line5 += r[5]}
  if(inputText.charAt(i) == "s") {line0 += s[0];   line1 += s[1];   line2 += s[2];   line3 += s[3];  line4 += s[4];   line5 += s[5]}
  if(inputText.charAt(i) == "t") {line0 += t[0];   line1 += t[1];   line2 += t[2];   line3 += t[3];  line4 += t[4];   line5 += t[5]}
  if(inputText.charAt(i) == "u") {line0 += u[0];   line1 += u[1];   line2 += u[2];   line3 += u[3];  line4 += u[4];   line5 += u[5]}
  if(inputText.charAt(i) == "v") {line0 += v[0];   line1 += v[1];   line2 += v[2];   line3 += v[3];  line4 += v[4];   line5 += v[5]}
  if(inputText.charAt(i) == "w") {line0 += w[0];   line1 += w[1];   line2 += w[2];   line3 += w[3];  line4 += w[4];   line5 += w[5]}
  if(inputText.charAt(i) == "x") {line0 += x[0];   line1 += x[1];   line2 += x[2];   line3 += x[3];  line4 += x[4];   line5 += x[5]}
  if(inputText.charAt(i) == "y") {line0 += y[0];   line1 += y[1];   line2 += y[2];   line3 += y[3];  line4 += y[4];   line5 += y[5]}
  if(inputText.charAt(i) == "z") {line0 += z[0];   line1 += z[1];   line2 += z[2];   line3 += z[3];  line4 += z[4];   line5 += z[5]}
  if(inputText.charAt(i) == "0") {line0 += zero[0];  line1 += zero[1];  line2 += zero[2];  line3 += zero[3]; line4 += zero[4];  line5 += zero[5]}
  if(inputText.charAt(i) == "1") {line0 += one[0];  line1 += one[1];  line2 += one[2];  line3 += one[3]; line4 += one[4];  line5 += one[5]}
  if(inputText.charAt(i) == "2") {line0 += two[0];  line1 += two[1];  line2 += two[2];  line3 += two[3]; line4 += two[4];  line5 += two[5]}
  if(inputText.charAt(i) == "3") {line0 += three[0]; line1 += three[1]; line2 += three[2];  line3 += three[3]; line4 += three[4];  line5 += three[5]}
  if(inputText.charAt(i) == "4") {line0 += four[0];  line1 += four[1];  line2 += four[2];  line3 += four[3]; line4 += four[4];  line5 += four[5]}
  if(inputText.charAt(i) == "5") {line0 += five[0];  line1 += five[1];  line2 += five[2];  line3 += five[3]; line4 += five[4];  line5 += five[5]}
  if(inputText.charAt(i) == "6") {line0 += six[0];  line1 += six[1];  line2 += six[2];  line3 += six[3]; line4 += six[4];  line5 += six[5]}
  if(inputText.charAt(i) == "7") {line0 += seven[0]; line1 += seven[1]; line2 += seven[2];  line3 += seven[3]; line4 += seven[4];  line5 += seven[5]}
  if(inputText.charAt(i) == "8") {line0 += eight[0]; line1 += eight[1]; line2 += eight[2];  line3 += eight[3]; line4 += eight[4];  line5 += eight[5]}
  if(inputText.charAt(i) == "9") {line0 += nine[0];  line1 += nine[1];  line2 += nine[2];  line3 += nine[3]; line4 += nine[4];  line5 += nine[5]}
  if(inputText.substring(i,(i+2)) == "\\n") {var newline = true; break}
 }
 if(newline) {
  var outputText = line0+"\n"+line1+"\n"+line2+"\n"+line3+"\n"+line4+"\n"+line5;
  document.ascii.outputField.value = outputText;
  buildStyle2(inputText.substring((i+2),inputText.length),1);
 } else {
  var outputText = line0+"\n"+line1+"\n"+line2+"\n"+line3+"\n"+line4+"\n"+line5;
  if(booleanRepeat) {document.ascii.outputField.value += "\n"+outputText}
  else {document.ascii.outputField.value = outputText}
 }
}

function buildStyle3(inputText,booleanRepeat) {
 var newline = false; var line0 = ""; var line1 = ""; var line2 = ""; var space = "  "; var a = new Array(3); var b = new Array(3); var c = new Array(3); var d = new Array(3); var e = new Array(3); var f = new Array(3); var g = new Array(3); var h = new Array(3); var I = new Array(3); var j = new Array(3); var k = new Array(3); var l = new Array(3); var m = new Array(3); var n = new Array(3); var o = new Array(3); var p = new Array(3); var q = new Array(3); var r = new Array(3); var s = new Array(3); var t = new Array(3); var u = new Array(3); var v = new Array(3); var w = new Array(3); var x = new Array(3); var y = new Array(3); var z = new Array(3); var zero = new Array(3); var one = new Array(3); var two = new Array(3); var three = new Array(3); var four = new Array(3); var five = new Array(3); var six = new Array(3); var seven = new Array(3); var eight = new Array(3); var nine = new Array(3);
 a[0] = "/痋\ ";  a[1] = "|瘄 ";  a[2] = "    ";
 b[0] = "|? ";  b[1] = "|? ";  b[2] = " ? ";
 c[0] = "|?";  c[1] = "|_ ";  c[2] = "   ";
 d[0] = "|痋\ ";  d[1] = "|_/ ";  d[2] = "    ";
 e[0] = "|?";  e[1] = "|?";  e[2] = " ?";
 f[0] = "|?";  f[1] = "|?";  f[2] = "   ";
 g[0] = "|? ";  g[1] = "| | ";  g[2] = " ? ";
 h[0] = "| | ";  h[1] = "|瘄 ";  h[2] = "    ";
 I[0] = "| ";  I[1] = "| ";  I[2] = "  ";
 j[0] = " 瘄?";  j[1] = "|_|  ";  j[2] = "     ";
 k[0] = "|/  ";  k[1] = "|痋\ ";  k[2] = "    ";
 l[0] = "|  ";  l[1] = "|_ ";  l[2] = "   ";
 m[0] = "|\\/| "; m[1] = "|  | ";  m[2] = "     ";
 n[0] = "|\\| ";  n[1] = "| | ";  n[2] = "    ";
 o[0] = "|瘄 ";  o[1] = "|_| ";  o[2] = "    ";
 p[0] = "|瘄 ";  p[1] = "|? ";  p[2] = "    ";
 q[0] = "|瘄  ";  q[1] = "|_|?";  q[2] = "     ";
 r[0] = "|瘄 ";  r[1] = "|痋\ ";  r[2] = "    ";
 s[0] = "|? ";  s[1] = " 瘄 ";  s[2] = " ? ";
 t[0] = "瘄?";  t[1] = " |  ";  t[2] = "    ";
 u[0] = "| | ";  u[1] = "|_| ";  u[2] = "    ";
 v[0] = "\\ | ";  v[1] = " \\| ";  v[2] = "    ";
 w[0] = "\\ |\\ | "; w[1] = " \\| \\| "; w[2] = "       ";
 x[0] = "\\/ ";  x[1] = "/\\ ";  x[2] = "   ";
 y[0] = "\\| ";  y[1] = " | ";  y[2] = "   ";
 z[0] = "? ";  z[1] = "/_ ";  z[2] = "   ";
 zero[0] = "|瘄 "; zero[1] = "|/| "; zero[2] = " ? ";
 one[0] = "'| ";  one[1] = " | ";  one[2] = "   ";
 two[0] = " 瘄 "; two[1] = "|? "; two[2] = " ? ";
 three[0] = "瘄 "; three[1] = "瘄 "; three[2] = "? ";
 four[0] = "/ | "; four[1] = " 瘄 "; four[2] = "    ";
 five[0] = "|? "; five[1] = " 瘄 "; five[2] = " ? ";
 six[0] = "|? "; six[1] = "|瘄 "; six[2] = " ? ";
 seven[0] = "? "; seven[1] = "/  "; seven[2] = "   ";
 eight[0] = "|瘄 "; eight[1] = "|瘄 "; eight[2] = " ? ";
 nine[0] = "|瘄 "; nine[1] = " 瘄 "; nine[2] = "    ";

 for(i=0; i < inputText.length; i++) {
  if(inputText.charAt(i) == " ") {line0 += space;  line1 += space;  line2 += space}
  if(inputText.charAt(i) == "a") {line0 += a[0];   line1 += a[1];  line2 += a[2]}
  if(inputText.charAt(i) == "b") {line0 += b[0];   line1 += b[1];   line2 += b[2]}
  if(inputText.charAt(i) == "c") {line0 += c[0];   line1 += c[1];   line2 += c[2]}
  if(inputText.charAt(i) == "d") {line0 += d[0];   line1 += d[1];   line2 += d[2]}
  if(inputText.charAt(i) == "e") {line0 += e[0];   line1 += e[1];   line2 += e[2]}
  if(inputText.charAt(i) == "f") {line0 += f[0];   line1 += f[1];   line2 += f[2]}
  if(inputText.charAt(i) == "g") {line0 += g[0];   line1 += g[1];   line2 += g[2]}
  if(inputText.charAt(i) == "h") {line0 += h[0];   line1 += h[1];   line2 += h[2]}
  if(inputText.charAt(i) == "i") {line0 += I[0];   line1 += I[1];   line2 += I[2]}
  if(inputText.charAt(i) == "j") {line0 += j[0];   line1 += j[1];   line2 += j[2]}
  if(inputText.charAt(i) == "k") {line0 += k[0];   line1 += k[1];  line2 += k[2]}
  if(inputText.charAt(i) == "l") {line0 += l[0];   line1 += l[1];   line2 += l[2]}
  if(inputText.charAt(i) == "m") {line0 += m[0];   line1 += m[1];   line2 += m[2]}
  if(inputText.charAt(i) == "n") {line0 += n[0];   line1 += n[1];   line2 += n[2]}
  if(inputText.charAt(i) == "o") {line0 += o[0];   line1 += o[1];   line2 += o[2]}
  if(inputText.charAt(i) == "p") {line0 += p[0];   line1 += p[1];   line2 += p[2]}
  if(inputText.charAt(i) == "q") {line0 += q[0];   line1 += q[1];   line2 += q[2]}
  if(inputText.charAt(i) == "r") {line0 += r[0];   line1 += r[1];   line2 += r[2]}
  if(inputText.charAt(i) == "s") {line0 += s[0];   line1 += s[1];   line2 += s[2]}
  if(inputText.charAt(i) == "t") {line0 += t[0];   line1 += t[1];   line2 += t[2]}
  if(inputText.charAt(i) == "u") {line0 += u[0];   line1 += u[1];   line2 += u[2]}
  if(inputText.charAt(i) == "v") {line0 += v[0];   line1 += v[1];   line2 += v[2]}
  if(inputText.charAt(i) == "w") {line0 += w[0];   line1 += w[1];   line2 += w[2]}
  if(inputText.charAt(i) == "x") {line0 += x[0];   line1 += x[1];   line2 += x[2]}
  if(inputText.charAt(i) == "y") {line0 += y[0];   line1 += y[1];   line2 += y[2]}
  if(inputText.charAt(i) == "z") {line0 += z[0];   line1 += z[1];   line2 += z[2]}
  if(inputText.charAt(i) == "0") {line0 += zero[0];  line1 += zero[1];  line2 += zero[2]}
  if(inputText.charAt(i) == "1") {line0 += one[0];  line1 += one[1];  line2 += one[2]}
  if(inputText.charAt(i) == "2") {line0 += two[0];  line1 += two[1];  line2 += two[2]}
  if(inputText.charAt(i) == "3") {line0 += three[0]; line1 += three[1]; line2 += three[2]}
  if(inputText.charAt(i) == "4") {line0 += four[0];  line1 += four[1];  line2 += four[2]}
  if(inputText.charAt(i) == "5") {line0 += five[0];  line1 += five[1];  line2 += five[2]}
  if(inputText.charAt(i) == "6") {line0 += six[0];  line1 += six[1];  line2 += six[2]}
  if(inputText.charAt(i) == "7") {line0 += seven[0]; line1 += seven[1]; line2 += seven[2]}
  if(inputText.charAt(i) == "8") {line0 += eight[0]; line1 += eight[1]; line2 += eight[2]}
  if(inputText.charAt(i) == "9") {line0 += nine[0];  line1 += nine[1];  line2 += nine[2]}
  if(inputText.substring(i,(i+2)) == "\\n") {var newline = true; break}
 }
 if(newline == true) {
  var outputText = line0+"\n"+line1+"\n"+line2;
  document.ascii.outputField.value = outputText;
  buildStyle3(inputText.substring((i+2),inputText.length),1);
 } else {
  var outputText = line0+"\n"+line1+"\n"+line2;
  if(booleanRepeat) {document.ascii.outputField.value += "\n"+outputText}
  else {document.ascii.outputField.value = outputText}
 }
}
-->
</script>
            <form name=ascii>
              <b>请输入:</b><br>
              <table cellpadding=0>
                <tbody>
                <tr>
                  <td>内容:
                    <input name=inputField>
                    &nbsp;&nbsp;&nbsp;
                  <td>字体风格:
                    <select name=textStyle>
                      <option>Futuristik
                      <option selected>Block
                      <option >Wireframe</option>
                    </select>
                    &nbsp;&nbsp;&nbsp;</td>
                  <td>
                    <input onClick=beginGenerator() type=button value=生成ASCII字形 name="button">
                  </td>
                </tr>
                <tr>
                  <td></td>
                  <td align=middle>
<p></p>
                  </td>
                </tr>
                </tbody>
              </table>
              <span id=windowMarker><b>Output:</b><br>
              <textarea name=outputField rows=10 wrap=off cols=88></textarea>
              </span>
              <div id=style1 title="Preview of Futuristik - Click To Close"
style="DISPLAY: none; CURSOR: hand; POSITION: absolute; zindex: 100"></div>
              <div id=style2 title="Preview of Block - Click To Close"
style="DISPLAY: none; CURSOR: hand; POSITION: absolute; zindex: 100; left:284px; top:400px">
                <table border=1>
                  <tbody>
                  <tr>
                    <td bordercolor=#c0c0c0 align=middle border="0">Click To
     Close
                      <p>
                      <pre> _____   _       _____   _____   _   _  
|  _  \ | |     /  _  \ /  ___| | | / / 
| |_| | | |     | | | | | |     | |/ /  
|  _  { | |     | | | | | |     | |\ \  
| |_| | | |___  | |_| | | |___  | | \ \ 
 |_____/ |_____| \_____/ \_____| |_|  \_\ </pre>
                    </td>
                  </tr>
                  </tbody>
                </table>
              </div>
              <div id=style3 title="Preview of Wireframe - Click To Close"
style="DISPLAY: none; CURSOR: hand; POSITION: absolute; zindex: 100; left:38px; top:353px">
                <table border=1>
                  <tbody>
                  <tr>
                    <td bordercolor=#c0c0c0 align=middle border="0">Click To
     Close
                      <p>
                      <pre>\ |\ | | |瘄 |?|?|瘄 /痋 |\/| |?
 \| \| | |痋 |?|?|痋 |瘄 |  | |?
               ?                 ?</pre>
                    </td>
                  </tr>
                  </tbody>
                </table>
              </div>
            </form>
          </td>
        </tr>
        <tr>
          <td> </td>
        </tr>
      </table>
    </TD>
    <TD><IMG src="../../images/space.gif"    width=11 height="1"></TD>
  </TR>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TR bgColor=#ffffff>
    <TD><IMG src="../images/sq_3.gif" width=11 height="14"></TD>
    <TD width="100%"></TD>
    <TD><IMG src="../images/sq_4.gif"    width=11 height="14"></TD>
  </TR>
</TABLE>
</BODY>
</HTML>

本类相关信息
浏览器检测生成器
浏览器检测生成器
网页背景产生器-能实现与16进制的互换...
网页背景产生器-能实现与16进制的互换并实时展示效果
自动生成使用一段彩色文字的代码
代码冲突,请参考下面代码:<html><head><meta http-equiv=...
ASCII数字字形生成器
代码冲突,请点击下面代码区域浏览效果:<HTML><HEAD><TITL...
CopyRight © 2005-2008 JsCode.CN All Rights Reserved
网页特效代码┊JsCode v3.0 Designed By 在远方
说明:本站提供最新精选的免费网页特效代码,包括网页背景特效,网页文字特效,网页图片特效,导航菜单特效代码等20多种常用网页特效代码下载,以及Flash特效,网页模版,字体大全,字体下载等网页制作特效素材资源。网页特效代码欢迎您的光临!