Based on a work from Wolfram, a simple implementation of an 2,3 universal turing machine ...<br>
Here are the first 100 steps (cols) for this machine (use arrow to scroll)<br>
<script language=javascript>
var navigateur = {
globalVar : {
Mozilla : 0,
moz : 0,
ie4: 0,
ns4: 0,
op4: 0,
layerRef: '',
styleRef: '',
posHDRx: '',
posTRLx: '',
posHDRy: '',
posTRLy: '',
msg: '',
accumulative_height: 0
},
Mozilla : 0,
moz : 0,
ie4: 0,
ns4: 0,
op4: 0,
heightCheck : 0,
widthCheck : 0,
bF : 0,
argumentArray : '',
getSearchItem: function( itm) { var o='';
if(this.argumentArray != '') {
if(this.argumentArray[itm] != 'undefined' && this.argumentArray[itm] != '')
return this.argumentArray[itm];
return o;
}
var os1=document.location.search.toString();
var toFind = ''+itm+'=';
var r = os1.split('?');
if(r.length>1)
var r = r[1].split('&');
else {
this.argumentArray = {};
return o;
}
this.argumentArray = {};
for(var i=0; i< r.length; i++) {
var r0 = r[i].split('=');
if(r0.length==1)
this.argumentArray[r0[0]] = '';
else
this.argumentArray[r0[0]] = r0[1];
if(this.bF==1)
alert(r0[0]+'\n'+r0[1]+'\n'+stringify(this.argumentArray))
}
if(this.argumentArray[itm] != 'undefined' && this.argumentArray[itm] != '')
o= this.argumentArray[itm];
if(this.bF==0) this.bF =0; else
alert('[navigateur.js].g