";
return rett;
}
return "";
}
function xhelp(lab)
{
helplab=lab;
return doall('h');
}
function hexit(aa)
{
var a=parseInt(aa);
var yaht="0123456789ABCDEF";
var n0=0;
var n1=a;
while(a>=16) {n0++;a-=16;}
// something fishy about dividing...
n0&=15;
n1&=15;
return ""+yaht.charAt(n0)+""+yaht.charAt(n1);
}
function dohr(a)
{
hrno++;
var yes=(hrno==splitno);
var yes2=(hrno==splitno+1);
if(action=='y')
{
return " "+
(yes?"
":"")+
""+
a+""+
(yes?"":"")+" ";
;
}
if(action!='c') return "";
if(!yes) if(a!=null&&a!="") a+="...";
if(a=="") yes=1;
toggler=1-toggler;
/*
if(action=='y') return (yes2?"
|
":"")+
"
| "+
(yes?" ":"")+
""+
a+""+
(yes?"":"")+
" |
";
else */ return "";
}
function countem()
{
counter=0;
doall('9');
return counter;
}
function doall(a)
{
hrno=0;
toggler=0;
globcntr=0;
action=a;
counter=0;
var rr="";
rr+=dohr("General");
rr+=doone("speed","FPS","n","24","Sets the updatefrequency in frames per second.");
rr+=doone("move","Move","n","24","Sets the movementspeed.");
rr+=doone("timetype","Time Type",
"on=Normal Time=/f=Fake Time=Time is only running when we have time for it",
"n",
"Selects the time type
");
//rr+=doone("incr","Incr","n","10","Currently unused");
rr+=doone("width","Width","n","300","Width in pixels of the application");
//alert('e');
rr+=doone("height","Height","n","100","Height in pixels of the application");
rr+=dohr("Text");
rr+=doone("scrt","Text Type",
"on=Normal Scroll=Text is shown as a scroll/f=Title=Text is shown centered",
"n",
"Selects the secondary background effects
");
rr+=doone("tface","Text Face",
"oa=Arial=/t=Times Roman=/c=Courier",
"a",
"Selects the font face
");
rr+=doone("teff","Text Effect",
"op=plain=/d=3d=",
"p",
"Selects the font effect
");
//rr+=doone("title","Title","t","...please wait...","The title
Is shown at initiation");
rr+=doone("text","Text","t","","The text");
rr+=dohr("Basic colors");
rr+=doone("bgcolor","Background Color","c","000000","Color of your screen");
rr+=doone("fgcolor","Foreground Color","c","ffffff","Default text-color");
if(!debugging)
{
rr+=dohr("Background");
rr+=doone("bgeff","Background",
"on=Nothing=A blank screen"+
"/s=Shade=Four color shade"+
"/m=Moire=moving stuff"+
"/r=Random=Random stuff"+
"/g=Galaxy=Computer generated galaxy"+
"/d=Diffract=Diffracts the foreground"+
"/b=Button=A button"+
"/e=MegaSphere=A huge round sphere"+
"/c=City=A city"+
"/p=Picture=Any gif or jpg picture (See help about 'Picture URL')",
"n",
"Selects the background");
rr+=doone("picturl","Picture URL","t","","The picture url (for background 'Picture').
This must be on the same server as the applet to avoid security violation. In other words, you can't test it :-(.");
rr+=doone("clickurl","Click-URL","t","","The url to jump to when clicked");
rr+=doone("clickframe","Click-Frame","t","","The frame to load url in.
Can be _top, _parent, _blank, _self or any other frame");
rr+=doone("col1","Background Color 1","c","0000ff","First color of the background");
rr+=doone("col2","Background Color 2","c","000000","Second color of the background");
rr+=doone("col3","Background Color 3","c","000000","Third color of the background");
rr+=doone("col4","Background Color 4","c","000000","Fourth color of the background");
rr+=doone("seed2","Random Seed2","n","0","Seed for background");
rr+=dohr("Effect");
rr+=doone("bgeff2","Effect",
"on=Nothing=no extra effects"+
"/b=Spheroids=Some spheroids running around"+
"/g=Globe=A globe"+
"/o=Blob=It's alive!!!",
"n",
"Selects the effects
");
rr+=doone("ecol1","Effect Color 1","c","ff0000","First color of the effect");
rr+=doone("ecol2","Effect Color 2","c","000000","Second color of the effect");
rr+=doone("ecol3","Effect Color 3","c","000000","Third color of the effect");
rr+=doone("ecol4","Effect Color 4","c","000000","Fourth color of the effect");
rr+=doone("seed1","Random Seed1","n","0","Seed for effects(used for 'Spheroids')");
}
//rr+=dohr("");
return rr;
}
function genhtml(aa)
{
var cut=""; //"\n\n<"+"!--\n cut here if you already\n have a HTML-body\n--"+">\n\n";
rt="";
//if(aa) rt+="";
if(!aa) rt+="";
//rt+="\n
";
if(!aa) rt+="\n
\n
";
rt+=cut;
rt+="\n\n"
rt+=cut;
if(!aa) rt+="\n\n
";
// rt+="\n";
return rt;
}
function test(a)
{
//1 loadx(frames.output,"
x
");
//frames['output'].location.href="javascript:parent.gettest()";
//loadx(frames.output,gettest());
}
function ampquote(z)
{
if(z==null) return " ";
q="";
lll=z.length;
for(i=0;i
") q+=">";
else if(t=="&") q+="&";
else q+=t;
}
return q;
}
function readform()
{
//form=frames[1].document.forms[0];
//myform=form;
doall('r');
doall('v');
wow();
savecookies();
}
function wow()
{
//eval(doall('w'));
}
function doget(zz)
{
//1 loadx(frames.output,loadinghtml);
getlocal=zz;
readform();
frames['output'].location.href="javascript:parent.getsource()";
//1 loadx(frames.output,getsource());
getlocal=0;
}
function dotest()
{
//frames['output'].location.href="about:blank";
//loadx(frames.output,"");
readform();
xx=genhtml(0);
// frames['output'].write(x);
//frames['output'].close();
frames['output'].location.href="javascript:''";
frames['output'].location.href="javascript:parent.xx";
//loadx(frames.output,genhtml());
}
function countrows(a)
{
var l=a.length;
var i;
var rows=0;
for(i=0;i"+stdbody+"";
ret+="
Click here to save the javaclass (save as "+classname+")";
//ret+="
Link to java (save as "+classname+")";
ret+="
HTML sourcecode.
Select all in this textarea below (using right button) and paste into your HTML-page
";
ret+="";
ret+="
";
return ret;
}
function savecookies()
{
var xx=doall('s');
SetCookie("megacookie",xx);
}
function getcookies()
{
//var x=doall('l');
//doall('v');
var xx=GetCookie("megacookie");
eval(xx);
}
function dogt(label)
{
var n=frames[1].document.forms[0].elements[label].value/*parseInt(gk(label))*/+1;
frames[1].document.forms[0].elements[label].value=n;
sk(label,n);
// eval("sc_"+label+"++");
// eval("frames[1].document.forms[0]."+label+".value=sc_"+label);
}
function doxxx()
{
eval("parent.frames[1].document.forms[0].fgcolor.value=43;");
//eval("parent.frames[1].document.forms[0].tface.options['c']=true;");
}
function dochg(label,d)
{
//var n=parseInt(gk(label))+d;
var n=parseInt(frames[1].document.forms[0].elements[label].value)+d;
frames[1].document.forms[0].elements[label].value=n;
// sk(label,n);
// eval("sc_"+label+"--");
// eval("frames[1].document.forms[0]."+label+".value=sc_"+label);
}
function dodrgb(dr,dg,db,label)
{
//myform=parent.frames[1].document.forms[0];
//v=eval("parent.frames[1].document.forms[0]."+label+".value");
var v="";
v+=frames[1].document.forms[0].elements[label].value;
var rr=parseInt(v.substring(0,2),16);
var gg=parseInt(v.substring(2,4),16);
var bb=parseInt(v.substring(4,6),16);
rr+=parseInt(dr);
if(rr>255) rr=255;
if(rr<0) rr=0;
gg+=parseInt(dg);
if(gg>255) gg=255;
if(gg<0) gg=0;
bb+=parseInt(db);
if(bb>255) bb=255;
if(bb<0) bb=0;
v=hexit(rr)+hexit(gg)+hexit(bb);
frames[1].document.forms[0].elements[label].value=v;
//eval("parent.frames[1].document.forms[0].elements['"+label+"'].value='"+v+"';");
// parent.frames['output'].frames['col'].location.href="javascript:parent.showcol('"+v+"','"+label+"')";
// parent.frames['output'].document.bgColor="#"+v+"";
sk(label,v);
editcolor(label,"");
//sk(label,v);
//1 loadx(frames.output,showcol(v,label));
}
function showcol(rgb,info)
{
return "
"+info+":"+rgb+"
";
}
function dostop()
{
frames['output'].location.href="javascript:parent.getdefault()";
//1 loadx(frames.output,getdefault());
}
function getdefault()
{
ret="";
ret+=""+stdbody+"";
// ret+="
";
// ret+="
";
// ret+="window.location.href=\""+baseurl+"/jminfo.htm\";";
//ret+="This works best with NetScape 3.0 b4
";
ret+="
Help/demo";
if(baseurl!=orgsite)
{
ret+="
You are running a local copy of JavaMachine.";
ret+="
The newest version is HERE";
}
ret+="
To use JavaMachine locally:
Download the JavaMachine HERE
Unzip the JM.ZIP and run the batch FIXNAME.BAT";
// ret+="";
ret+="