home *** CD-ROM | disk | FTP | other *** search
/ Acorn User 10 / AU_CD10.iso / Archived / Internet / jvscript116beta / JvScript / !JvScript / Resources / Scripts / Games / 3 < prev    next >
Encoding:
Text File  |  1999-09-15  |  4.4 KB  |  113 lines

  1. #newformat
  2. _title:Buzz Words
  3. _source::http://javascript.internet.com/
  4. _description:Visitors can create custom and unique "buzz" phrases using JavaScript.
  5.  
  6. _insert-in:inhead
  7. <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
  8. <!-- Begin
  9. function ClearForm(form){
  10. form.InSeed.value  ="";
  11. }
  12. function FillBs(form){
  13. var seed  = "";
  14. seed  = form.InSeed.value;
  15. var LeadIn = new makeArray(18);
  16. var Subject = new makeArray(12);
  17. var Verb = new makeArray(13);
  18. var ObjectPhrase = new makeArray(14);
  19. initArrays(LeadIn, Subject, Verb, ObjectPhrase, seed);
  20. l = Math.floor(17 * RandomNumber() + 1);
  21. s = Math.floor(11 * RandomNumber() + 1);
  22. v = Math.floor(12 * RandomNumber() + 1);
  23. o = Math.floor(13 * RandomNumber() + 1);
  24. BsValue=LeadIn[l]+" "+Subject[s]+" "+Verb[v]+" "+ObjectPhrase[o];
  25. alert(BsValue);
  26. }
  27. function makeArray(numElements) {
  28. this.length = numElements
  29. for (count = 1; count <= numElements; count++) 
  30. this[count] = 0;
  31. return (this);
  32. }
  33. function initArrays(LeadIn, Subject, Verb, ObjectPhrase, seed){
  34. LeadIn[0] = " ";
  35. LeadIn[1] = "In particular,";
  36. LeadIn[2] = "On the other hand,";
  37. LeadIn[3] = "However,";
  38. LeadIn[4] = "Similarly,";
  39. LeadIn[5] = "As a resultant implication,";
  40. LeadIn[6] = "In this regard,";
  41. LeadIn[7] = "Based on integral subsystem considerations,";
  42. LeadIn[8] = "For example,";
  43. LeadIn[9] = "Thus,";
  44. LeadIn[10] = "In respect to specific goals,";
  45. LeadIn[11] = "Interestingly enough,";
  46. LeadIn[12] = "Without going into the technical details,";
  47. LeadIn[13] = "Of course,";
  48. LeadIn[14] = "To approach true user-friendliness,";
  49. LeadIn[15] = "In retrospect,";
  50. LeadIn[16] = "Conversely,";
  51. LeadIn[17] = "From a top-level view,";
  52. Subject[0]=" ";
  53. Subject[1] = "a large portion of interface coordination communication";
  54. Subject[2] = "a constant flow of effective communication";
  55. Subject[3] = "the characterization of specific criteria";
  56. Subject[4] = "initiation of critical subsystem development";
  57. Subject[5] = "the fully integrated test program";
  58. Subject[6] = "the product configuration baseline";
  59. Subject[7] = "any associated supporting element";
  60. Subject[8] = "the incorporation of additional mission constraints";
  61. Subject[9] = "the independent functional principle";
  62. Subject[10] = "the interrelation of system and/or subsystem technologies";
  63. Subject[11] = "the product assurance architecture";
  64. Verb[0] = " ";
  65. Verb[1] = "must utilize and be functionally interwoven with";
  66. Verb[2] = "maximizes the probability of project success, yet minimizes cost and time required for";
  67. Verb[3] = "adds explicit performance limits to";
  68. Verb[4] = "necessitates that urgent consideration be applied to";
  69. Verb[5] = "requires considerable systems analysis and trade-off studies to arrive at";
  70. Verb[6] = "is further compounded when taking into account";
  71. Verb[7] = "presents extremely interesting challenges to";
  72. Verb[8] = "recognizes other systems' importance and the necessity for";
  73. Verb[9] = "effects a significant implementation of";
  74. Verb[10] = "adds overriding performance constraints to";
  75. Verb[11] = "mandates staff-meeting-level attention to";
  76. Verb[12] = "is functionally equivalent and parallel to";
  77. ObjectPhrase[0] = " ";
  78. ObjectPhrase[1] = "the "+seed+" sophisticated physical layer";
  79. ObjectPhrase[2] = "the "+seed+" anticipated fourth-generation equipment.";
  80. ObjectPhrase[3] = "the "+seed+" subsystem compatibility testing.";
  81. ObjectPhrase[4] = "the "+seed+" structural design, based on system engineering concepts.";
  82. ObjectPhrase[5] = "the "+seed+" preliminary qualification limit.";
  83. ObjectPhrase[6] = "the "+seed+" evolution of specifications over a given time period.";
  84. ObjectPhrase[7] = "the "+seed+" philosophy of commonality and standardization.";
  85. ObjectPhrase[8] = "the "+seed+" greater fight-worthiness concept.";
  86. ObjectPhrase[9] = "any "+seed+" discrete configuration mode.";
  87. ObjectPhrase[10] = "the "+seed+" management-by-contention principle.";
  88. ObjectPhrase[11] = "the "+seed+" total system rationale.";
  89. ObjectPhrase[12] = "possible "+seed+" bidirectional logical relationship approaches.";
  90. ObjectPhrase[13] = "the "+seed+" postulated use of dialog management technology.";
  91. }
  92. function RandomNumber() {
  93. var today = new Date();
  94. num= Math.abs(Math.sin(today.getTime()));
  95. return num;  
  96. }
  97. // End -->
  98. </SCRIPT>
  99. _end-insert:
  100.  
  101. _insert-in:inbody
  102. <form method=post>
  103. <table border=5 cellpadding=5>
  104. <tr>
  105. <td><center>Enter your very own buzzwords term and hit "Buzz!"</center></td>
  106. </tr>
  107. <tr>
  108. <td><input type=text name=InSeed size=40>     <input type="button" value="Buzz!" onClick="FillBs(this.form)"></td>
  109. </tr>
  110. </table>
  111. </form>
  112.  
  113. _end-insert: