欢迎光临
我们一直在努力

ASCII 字形生成器

建站超值云服务器,限时71元/月

 
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<!– saved from url=(0032)http://www.ie-zone.com/index.php –>
<html>
<head>
<title>ascii 字形生成器</title>
<meta http-equiv=content-type content="text/html; charset=gb2312">
<link
href="/fav.ico" rel="shortcut icon">
<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}
    }
}

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » ASCII 字形生成器
分享到: 更多 (0)

相关推荐

  • 暂无文章