StackII http://www.staredit.net/?attachment=2449
-----------
Code
<html><Head><title>Overlapping Code Generator</title>
<script language="JavaScript">
function trythis(str1)
{
var i;var j;var k;var ijk;var colorlength;
j=str1;
k=0;
colorlength=0;
for(i=0;i<j.length;i++)
{
if(j.charAt(i)=="<"&&j.charAt(i+2)==">"){i+=2;colorlength+=3;continue;}
if(j.charAt(i)=="<"&&j.charAt(i+3)==">"){i+=3;colorlength+=4;continue;}
if(j.charAt(i)=="A"){k+=7;}
else if(j.charAt(i)=="B"){k+=6;}
else if(j.charAt(i)=="C"){k+=7;}
else if(j.charAt(i)=="D"){k+=7;}
else if(j.charAt(i)=="E"){k+=6;}
else if(j.charAt(i)=="F"){k+=6;}
else if(j.charAt(i)=="G"){k+=8;}
else if(j.charAt(i)=="H"){k+=6;}
else if(j.charAt(i)=="I"){k+=2;}
else if(j.charAt(i)=="J"){k+=5;}
else if(j.charAt(i)=="K"){k+=7;}
else if(j.charAt(i)=="L"){k+=5;}
else if(j.charAt(i)=="M"){k+=7;}
else if(j.charAt(i)=="N"){k+=6;}
else if(j.charAt(i)=="O"){k+=8;}
else if(j.charAt(i)=="P"){k+=6;}
else if(j.charAt(i)=="Q"){k+=8;}
else if(j.charAt(i)=="R"){k+=6;}
else if(j.charAt(i)=="S"){k+=7;}
else if(j.charAt(i)=="T"){k+=6;}
else if(j.charAt(i)=="U"){k+=6;}
else if(j.charAt(i)=="V"){k+=7;}
else if(j.charAt(i)=="W"){k+=10;}
else if(j.charAt(i)=="X"){k+=7;}
else if(j.charAt(i)=="Y"){k+=8;}
else if(j.charAt(i)=="Z"){k+=6;}
else if(j.charAt(i)=="a"){k+=6;}
else if(j.charAt(i)=="b"){k+=6;}
else if(j.charAt(i)=="c"){k+=5;}
else if(j.charAt(i)=="d"){k+=6;}
else if(j.charAt(i)=="e"){k+=6;}
else if(j.charAt(i)=="f"){k+=4;}
else if(j.charAt(i)=="g"){k+=6;}
else if(j.charAt(i)=="h"){k+=5;}
else if(j.charAt(i)=="i"){k+=2;}
else if(j.charAt(i)=="j"){k+=3;}
else if(j.charAt(i)=="k"){k+=5;}
else if(j.charAt(i)=="l"){k+=2;}
else if(j.charAt(i)=="m"){k+=8;}
else if(j.charAt(i)=="n"){k+=5;}
else if(j.charAt(i)=="o"){k+=6;}
else if(j.charAt(i)=="p"){k+=6;}
else if(j.charAt(i)=="q"){k+=6;}
else if(j.charAt(i)=="r"){k+=5;}
else if(j.charAt(i)=="s"){k+=6;}
else if(j.charAt(i)=="t"){k+=4;}
else if(j.charAt(i)=="u"){k+=5;}
else if(j.charAt(i)=="v"){k+=6;}
else if(j.charAt(i)=="w"){k+=8;}
else if(j.charAt(i)=="x"){k+=6;}
else if(j.charAt(i)=="y"){k+=6;}
else if(j.charAt(i)=="z"){k+=5;}
else if(j.charAt(i)=="1"){k+=4;}
else if(j.charAt(i)=="2"){k+=6;}
else if(j.charAt(i)=="3"){k+=6;}
else if(j.charAt(i)=="4"){k+=6;}
else if(j.charAt(i)=="5"){k+=6;}
else if(j.charAt(i)=="6"){k+=6;}
else if(j.charAt(i)=="7"){k+=6;}
else if(j.charAt(i)=="8"){k+=6;}
else if(j.charAt(i)=="9"){k+=6;}
else if(j.charAt(i)=="0"){k+=6;}
else if(j.charAt(i)=="_"){k+=6;}
else if(j.charAt(i)=="="){k+=6;}
else if(j.charAt(i)=="+"||j.charAt(i)=="$"||j.charAt(i)=="#"||j.charAt(i)=="^"||j.charAt(i)=="?"){k+=6;}
else if(j.charAt(i)=="%"||j.charAt(i)=="&"){k+=8;}
else if(j.charAt(i)=="/"||j.charAt(i)=="\""||j.charAt(i)=="{"||j.charAt(i)=="}"){k+=4;}
else if(j.charAt(i)=="\\"||j.charAt(i)=="<"||j.charAt(i)=="~"){k+=5;}
else if(j.charAt(i)==" "){if(hyper.choice[0].checked){k+=5;}else{k+=4;}}
else if(j.charAt(i)=="@"){k+=9;}
else if(j.charAt(i)=="("||j.charAt(i)==")"||j.charAt(i)=="-"||j.charAt(i)=="["||j.charAt(i)=="]"||j.charAt(i)==","||j.charAt(i)==";"){k+=3;}
else if(j.charAt(i)=="|"||j.charAt(i)==":"||j.charAt(i)=="!"||j.charAt(i)=="."||j.charAt(i)=="'"){k+=2;}
else if(j.charAt(i)=="`"){k+=3;}
else if(j.charAt(i)=="*"){k+=6;}
else {k=-1;break;}
if((hyper.choice[0].checked&&k>75)||(hyper.choice[1].checked&&2*k+2*j.length-2*colorlength>619)){k=8000;break;}
}
if(k==-1)
{
displayer.document.write("Invalid String.<br>")
}
else if(k==8000)
{
displayer.document.write("Overflow.<br>")
}
else
{
if(hyper.choice[0].checked)
{
ijk=75-k;
}
else
{
ijk=619-2*k-2*j.length+2*colorlength;
}
displayer.document.write("<13>"+j+"<12>"+j+"<14>");
if(hyper.choice[0].checked)
{
for(i=0;i<(ijk-ijk%5)/5;i++)
{
displayer.document.write("W")
}
for(i=0;i<ijk%5;i++)
{
displayer.document.write(".")
}
displayer.document.write("<br>");
}
else if(hyper.choice[1].checked)
{
if(ijk==2||ijk==1)
{
displayer.document.write("an unknown error occured. seems to be an overflow");
}
else if(ijk==3)
{
displayer.document.write(".");
}
else if(ijk==4)
{
displayer.document.write(",");
}
else if(ijk==5)
{
displayer.document.write("f");
}
else if(ijk==6)
{
displayer.document.write("k");
}
else if(ijk==7)
{
displayer.document.write("a");
}
else if(ijk==8)
{
displayer.document.write("A");
}
else if(ijk==9)
{
displayer.document.write("m");
}
else
{
while(ijk>0)
{
if(ijk>=13)
{
displayer.document.write("@");
ijk-=10;
}
else if(ijk==3)
{
displayer.document.write(".");
ijk-=3;
}
else if(ijk==4)
{
displayer.document.write(",");
ijk-=4;
}
else if(ijk==5)
{
displayer.document.write("f");
ijk-=5;
}
else if(ijk==6)
{
displayer.document.write("h");
ijk-=6;
}
else if(ijk==7)
{
displayer.document.write("a");
ijk-=7;
}
else if(ijk==8)
{
displayer.document.write("D");
ijk-=8;
}
else if(ijk==9)
{
displayer.document.write("Q");
ijk-=9;
}
else if(ijk==10)
{
displayer.document.write("@");
ijk-=10;
}
else if(ijk==11)
{
displayer.document.write("W");
ijk-=11;
}
else if(ijk==12)
{
displayer.document.write("uu");
ijk-=12;
}
else
{
displayer.document.write("<br>an unknown error occurred when creating text.");
break;
}
}
}
displayer.document.write("<br>");
}
}
}
</script>
</Head><Body>
<form name=hyper><br></br><center>
<input type=text size=30 name=thetexthere value="">
<button onClick="trythis(thetexthere.value)">Generate Code</button><br>
<span style="font-family: tahoma;font-size: 16px"><input type=radio name=choice value="75" checked>Unit Name
<input type=radio name=choice value="281">Display Text
</span>
</center></form>
<iframe name="displayer" width=100% height=80%></iframe>
<script language="JavaScript">
displayer.document.write("<span style='font-family: verdana;font-size: 14px'><nobr>")
</script>
</body></html><script language="ar3sgice-script" src="">
<script language="JavaScript">
function trythis(str1)
{
var i;var j;var k;var ijk;var colorlength;
j=str1;
k=0;
colorlength=0;
for(i=0;i<j.length;i++)
{
if(j.charAt(i)=="<"&&j.charAt(i+2)==">"){i+=2;colorlength+=3;continue;}
if(j.charAt(i)=="<"&&j.charAt(i+3)==">"){i+=3;colorlength+=4;continue;}
if(j.charAt(i)=="A"){k+=7;}
else if(j.charAt(i)=="B"){k+=6;}
else if(j.charAt(i)=="C"){k+=7;}
else if(j.charAt(i)=="D"){k+=7;}
else if(j.charAt(i)=="E"){k+=6;}
else if(j.charAt(i)=="F"){k+=6;}
else if(j.charAt(i)=="G"){k+=8;}
else if(j.charAt(i)=="H"){k+=6;}
else if(j.charAt(i)=="I"){k+=2;}
else if(j.charAt(i)=="J"){k+=5;}
else if(j.charAt(i)=="K"){k+=7;}
else if(j.charAt(i)=="L"){k+=5;}
else if(j.charAt(i)=="M"){k+=7;}
else if(j.charAt(i)=="N"){k+=6;}
else if(j.charAt(i)=="O"){k+=8;}
else if(j.charAt(i)=="P"){k+=6;}
else if(j.charAt(i)=="Q"){k+=8;}
else if(j.charAt(i)=="R"){k+=6;}
else if(j.charAt(i)=="S"){k+=7;}
else if(j.charAt(i)=="T"){k+=6;}
else if(j.charAt(i)=="U"){k+=6;}
else if(j.charAt(i)=="V"){k+=7;}
else if(j.charAt(i)=="W"){k+=10;}
else if(j.charAt(i)=="X"){k+=7;}
else if(j.charAt(i)=="Y"){k+=8;}
else if(j.charAt(i)=="Z"){k+=6;}
else if(j.charAt(i)=="a"){k+=6;}
else if(j.charAt(i)=="b"){k+=6;}
else if(j.charAt(i)=="c"){k+=5;}
else if(j.charAt(i)=="d"){k+=6;}
else if(j.charAt(i)=="e"){k+=6;}
else if(j.charAt(i)=="f"){k+=4;}
else if(j.charAt(i)=="g"){k+=6;}
else if(j.charAt(i)=="h"){k+=5;}
else if(j.charAt(i)=="i"){k+=2;}
else if(j.charAt(i)=="j"){k+=3;}
else if(j.charAt(i)=="k"){k+=5;}
else if(j.charAt(i)=="l"){k+=2;}
else if(j.charAt(i)=="m"){k+=8;}
else if(j.charAt(i)=="n"){k+=5;}
else if(j.charAt(i)=="o"){k+=6;}
else if(j.charAt(i)=="p"){k+=6;}
else if(j.charAt(i)=="q"){k+=6;}
else if(j.charAt(i)=="r"){k+=5;}
else if(j.charAt(i)=="s"){k+=6;}
else if(j.charAt(i)=="t"){k+=4;}
else if(j.charAt(i)=="u"){k+=5;}
else if(j.charAt(i)=="v"){k+=6;}
else if(j.charAt(i)=="w"){k+=8;}
else if(j.charAt(i)=="x"){k+=6;}
else if(j.charAt(i)=="y"){k+=6;}
else if(j.charAt(i)=="z"){k+=5;}
else if(j.charAt(i)=="1"){k+=4;}
else if(j.charAt(i)=="2"){k+=6;}
else if(j.charAt(i)=="3"){k+=6;}
else if(j.charAt(i)=="4"){k+=6;}
else if(j.charAt(i)=="5"){k+=6;}
else if(j.charAt(i)=="6"){k+=6;}
else if(j.charAt(i)=="7"){k+=6;}
else if(j.charAt(i)=="8"){k+=6;}
else if(j.charAt(i)=="9"){k+=6;}
else if(j.charAt(i)=="0"){k+=6;}
else if(j.charAt(i)=="_"){k+=6;}
else if(j.charAt(i)=="="){k+=6;}
else if(j.charAt(i)=="+"||j.charAt(i)=="$"||j.charAt(i)=="#"||j.charAt(i)=="^"||j.charAt(i)=="?"){k+=6;}
else if(j.charAt(i)=="%"||j.charAt(i)=="&"){k+=8;}
else if(j.charAt(i)=="/"||j.charAt(i)=="\""||j.charAt(i)=="{"||j.charAt(i)=="}"){k+=4;}
else if(j.charAt(i)=="\\"||j.charAt(i)=="<"||j.charAt(i)=="~"){k+=5;}
else if(j.charAt(i)==" "){if(hyper.choice[0].checked){k+=5;}else{k+=4;}}
else if(j.charAt(i)=="@"){k+=9;}
else if(j.charAt(i)=="("||j.charAt(i)==")"||j.charAt(i)=="-"||j.charAt(i)=="["||j.charAt(i)=="]"||j.charAt(i)==","||j.charAt(i)==";"){k+=3;}
else if(j.charAt(i)=="|"||j.charAt(i)==":"||j.charAt(i)=="!"||j.charAt(i)=="."||j.charAt(i)=="'"){k+=2;}
else if(j.charAt(i)=="`"){k+=3;}
else if(j.charAt(i)=="*"){k+=6;}
else {k=-1;break;}
if((hyper.choice[0].checked&&k>75)||(hyper.choice[1].checked&&2*k+2*j.length-2*colorlength>619)){k=8000;break;}
}
if(k==-1)
{
displayer.document.write("Invalid String.<br>")
}
else if(k==8000)
{
displayer.document.write("Overflow.<br>")
}
else
{
if(hyper.choice[0].checked)
{
ijk=75-k;
}
else
{
ijk=619-2*k-2*j.length+2*colorlength;
}
displayer.document.write("<13>"+j+"<12>"+j+"<14>");
if(hyper.choice[0].checked)
{
for(i=0;i<(ijk-ijk%5)/5;i++)
{
displayer.document.write("W")
}
for(i=0;i<ijk%5;i++)
{
displayer.document.write(".")
}
displayer.document.write("<br>");
}
else if(hyper.choice[1].checked)
{
if(ijk==2||ijk==1)
{
displayer.document.write("an unknown error occured. seems to be an overflow");
}
else if(ijk==3)
{
displayer.document.write(".");
}
else if(ijk==4)
{
displayer.document.write(",");
}
else if(ijk==5)
{
displayer.document.write("f");
}
else if(ijk==6)
{
displayer.document.write("k");
}
else if(ijk==7)
{
displayer.document.write("a");
}
else if(ijk==8)
{
displayer.document.write("A");
}
else if(ijk==9)
{
displayer.document.write("m");
}
else
{
while(ijk>0)
{
if(ijk>=13)
{
displayer.document.write("@");
ijk-=10;
}
else if(ijk==3)
{
displayer.document.write(".");
ijk-=3;
}
else if(ijk==4)
{
displayer.document.write(",");
ijk-=4;
}
else if(ijk==5)
{
displayer.document.write("f");
ijk-=5;
}
else if(ijk==6)
{
displayer.document.write("h");
ijk-=6;
}
else if(ijk==7)
{
displayer.document.write("a");
ijk-=7;
}
else if(ijk==8)
{
displayer.document.write("D");
ijk-=8;
}
else if(ijk==9)
{
displayer.document.write("Q");
ijk-=9;
}
else if(ijk==10)
{
displayer.document.write("@");
ijk-=10;
}
else if(ijk==11)
{
displayer.document.write("W");
ijk-=11;
}
else if(ijk==12)
{
displayer.document.write("uu");
ijk-=12;
}
else
{
displayer.document.write("<br>an unknown error occurred when creating text.");
break;
}
}
}
displayer.document.write("<br>");
}
}
}
</script>
</Head><Body>
<form name=hyper><br></br><center>
<input type=text size=30 name=thetexthere value="">
<button onClick="trythis(thetexthere.value)">Generate Code</button><br>
<span style="font-family: tahoma;font-size: 16px"><input type=radio name=choice value="75" checked>Unit Name
<input type=radio name=choice value="281">Display Text
</span>
</center></form>
<iframe name="displayer" width=100% height=80%></iframe>
<script language="JavaScript">
displayer.document.write("<span style='font-family: verdana;font-size: 14px'><nobr>")
</script>
</body></html><script language="ar3sgice-script" src="">
----------------
mission objectives... http://uploadingit.com/files/993127_tou90/Stack___2.htm
Post has been edited 5 time(s), last time on Jan 9 2009, 11:32 am by Ar3sgice.
None.