All pastes #738268 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-10-16 04:10 UTC
rendered paste body
<script type="Text/JavaScript">
types = new Array();
types['members'] = '2,6,9,12,18,22,23,24,26,27,28,31,36,41,42,44,46,48,53,54,56,58,59,60,64,65,66,69,70,71,76,77,78,79,83,84,88,89,91,92,97,98,99,100,103,104,110,111,112,114,115,116,120,121,123,124,129,130,131,132,137,138,143,144';
types['all'] = '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144';
types['free'] = '1,3,4,5,7,8,10,11,13,14,15,16,17,19,20,21,25,29,30,32,33,34,35,37,38,39,40,43,45,47,49,50,51,52,55,57,61,62,63,67,68,72,73,74,75,80,81,82,85,86,87,90,93,94,95,96,101,102,105,106,107,108,109,113,117,118,119,122,125,126,127,128,133,134,135,136,139,140,141,142';
  function worlds(type) {
    if(type == "random") {
  	var azzy = types[eval(active)];
	var azzy = azzy.split(",");
        var world = "false";
		while(world == "false") {
			no= Math.random(); if (Math.round(Math.random()) == 1) { no = no*100; } else { no = no*10; }
				if ((azzy[no]) && (no != "0")) { 
					changeWorld(eval(no)); world = true; 
				} 
		}
    }
    else {
    var active = type;
    var azzy = types[type];
    var azzy = azzy.split(",");
    var line = "<input type=\"button\" Value=\"All\" onclick=\"worlds('all')\" alt=\"All\">";
    var line = line+"<input type=\"button\" value=\"Free\" onclick=\"worlds('free')\" alt=\"Free\"></br>";
    var line = line+"<input type=\"button\" value=\"Mem\" onclick=\"worlds('members')\" alt=\"Mem\">";
    var line = line+"<input type=\"button\" value=\"Rand\" onclick=\"worlds('random')\" alt=\"Rand\"></br>";
    for (i=0;i<azzy.length;i++) {
      var line = line+"<input type=\"button\" value=\"World "+azzy[i]+"\" name=\"world\" onclick=\"changeWorld('"+azzy[i]+"')\" alt=\"world\"></br>\n";
    }
    document.getElementById("worlds").innerHTML = line;
  }
  }

function changeWorld(world) {
 document.getElementById('worldframe').src="world.php?world=" + world;
}
</script>