home *** CD-ROM | disk | FTP | other *** search
/ synchro.net / synchro.net.tar / synchro.net / Synchronet_Archive / 310IBETA.ZIP / test.js < prev    next >
Encoding:
Text File  |  2001-08-04  |  884 b   |  52 lines

  1. //var s;
  2. for(i in user)
  3.     print(i + " = " + user[i]);
  4.  
  5. //sprintf(s,"one=%d str=%s", 1, "str");
  6. //print("s='%s'");
  7.  
  8. print(format("two=%d str=%s", 2, "str"));
  9.  
  10. for(prop in system)
  11.     print("system." + prop + " = " + system[prop]);
  12.  
  13. for(stat in system.stats) 
  14.     printf("system.stats.%s=%d\r\n",stat,system.stats[stat]);
  15.  
  16. system.misc=0;
  17. printf("System.misc=%d\n",system.misc);
  18.  
  19. system.blah="test";
  20. print(system.blah);
  21.  
  22. print(system.name);
  23.  
  24. for(prop in system)
  25.     print(prop);
  26.  
  27. var i=system.nodes;
  28.  
  29. print(".\r\n");
  30.  
  31. print(system.name);
  32.  
  33. alert("This is an alert");
  34.  
  35. if(confirm("Do it")) print("Yes"); else print("No");
  36.  
  37. var str=prompt("Enter a string","some text");
  38.  
  39. print(str);
  40.  
  41. printf("This is a printf test\r\n");
  42.  
  43. var n=1;
  44.  
  45. printf("%s %d %s %d\r\n","Another",1,str,n);
  46.  
  47. printf("system name=%s\r\n",system.name);
  48.  
  49. while(console.online) {
  50.  
  51. }
  52.