home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / editors / hhv304.arj / SAMPLE.TXT < prev   
Text File  |  1991-09-10  |  4KB  |  119 lines

  1. #------------------------------------------------
  2. #- S A M P L E  S O U R C E  F I L E
  3. #------------------------------------------------
  4.  
  5. #------------------------------------------------
  6. #- Deck title. (The default is to have no title.)
  7. #------------------------------------------------
  8.  
  9. #deck title A Sample HyperHelper Deck
  10.  
  11. #------------------------------------------------
  12. #- Menu definition. The one we use here also
  13. #- happens to be the default menu.
  14. #------------------------------------------------
  15.  
  16. #menu !$last!≡!  !$home!Home!  !$undo!Undo!  !$back!Back!  !$srch!Srch!  !$prt!Print!  !$quit!e&Xit!
  17.  
  18. #------------------------------------------------
  19. #- Deck configuration commands
  20. #------------------------------------------------
  21.  
  22. #- Specify window size to fit the biggest card
  23. #- width and height. The default is to use the 
  24. #- full screen for the size.
  25.  
  26. #size to biggest
  27.  
  28. #- Specify the window to be centered at the
  29. #- top of the screen. The default is centered
  30. #- both vertically and horizontally.
  31.  
  32. #position -1 0
  33.  
  34. #- Specify a black-on-cyan set of attributes.
  35. #- (The ones given here are the default set
  36. #- in the originally supplied browser.)
  37.  
  38. #attributes BSSR bw bc bw Yw  Yc bw bw wb  Ca Yc Yw Wc  Wc Wc Cc WC
  39.  
  40. #- Turn text centering on (this is the default).
  41.  
  42. #center text on
  43.  
  44. #- Show card captions centered (the default)
  45.  
  46. #show captions center
  47.  
  48. #- Turn off section numbers (the default).
  49.  
  50. #show section numbers off
  51.  
  52. #- We want to have a table of contents generated
  53. #- (The default is no table of contents).
  54.  
  55. #create table_of_contents
  56.  
  57. #------------------------------------------------
  58. #- Main body of the deck.
  59. #------------------------------------------------
  60.  
  61. #card Welcome
  62. Welcome to this sample deck written in hypertext
  63. format using HyperHelper. Choose one of the 
  64. following links:
  65.  
  66. #cl !story!Read a story!  !toc!Table of Contents!
  67. #end
  68.  
  69. #- Include table of contents here (usually, you make it
  70. #- the second card, but it can be anywhere you desire)
  71.  
  72. #include table_of_contents
  73.  
  74. #------------------------------------------------
  75. #- Now, put in the short story. Note how the
  76. #- first card uses an embedded link to the 
  77. #- second card, and how the second card has
  78. #- topic links (spacecraft & doom) back to
  79. #- the first card
  80. #------------------------------------------------
  81.  
  82. #card !story!A Short Story! spacecraft doom
  83. After successfully dodging hundreds of asteroids and 
  84. assorted large planets, the spacecraft was done in 
  85. by a meteorite no larger than a !pp!ping-pong ball!.
  86. #end
  87.  
  88. #card !pp!Ping Pong Trivia!
  89. Ping-pong balls are small, hollow, plastic spheres used
  90. in a game played on a table with a net across the middle.
  91. In hyperspatial versions of this game, the erratic flight
  92. paths of missed ping-pong balls has been known to send
  93. many a spacecraft to its doom.
  94. #end
  95.  
  96. #- We'll give a special help card (Ours doesn't
  97. #- really show any help)
  98.  
  99. #card !help!Browser Help!
  100. This is the help card, where you can put
  101. in information to help the user navigate
  102. through the deck.
  103. #end
  104.  
  105. #------------------------------------------------
  106. #- Put in the About Card. Note: If you are using
  107. #- shareware compiler (HCS) or personal compiler
  108. #- (HCP), you can't include an About Card your-
  109. #- self. It will be supplied automatically by
  110. #- the compiler. In this case, you must comment
  111. #- out this section to avoid warnings.
  112. #------------------------------------------------
  113.  
  114. #card !about_card!About the Deck!
  115. #show captions off
  116. #cl A Sample HyperHelper Deck
  117. #cl Copyright (c) 1991 Nobody's Business
  118. #end
  119.