home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / animpg14.zip / AnimPage.doc < prev    next >
Text File  |  1996-07-13  |  8KB  |  156 lines

  1. AnimPage.cmd - v1.4 - By Sallie Krebs, 07/13/96 (skrebs@inwave.com)
  2.  
  3. AnimPage is a Rexx program which generates an HTML page for loading IBM
  4. WebExplorer** animations. The main HTML page displays an icon representing
  5. each animation which can be clicked to load the associated animation. The
  6. animation title, source (author), and number of frames are also displayed.
  7.  
  8. Send any comments, suggestions, flames, etc to: skrebs@inwave.com. This
  9. program is free. You may use it and re-distribute it as you like. I only
  10. ask that if you make any modifications to the code, you note them in the
  11. original AnimPage.cmd file. Email to me which includes your
  12. modifications would be nice, as well, but not absolutely necessary. I
  13. welcome constructive criticism! Also, please do not remove my name from
  14. this file, or the .cmd file.
  15.  
  16. Standard disclaimers apply: Use this program at your own risk. I will
  17. not be responsible for any damage to your system from using this
  18. program. Etc, etc, etc. I can't see how any damage *could* occur, but
  19. that line is in all of the disclaimers I've seen, so I included it;)
  20.  
  21. Installation and usage notes:
  22.  
  23. 1.  Unzip the ANIMPG10.ZIP file into its own directory. All of the
  24.     included files should be kept in this directory in order for the
  25.     program to work properly.
  26.  
  27. 2.  Create separate subdirectories underneath the AnimPage directory for
  28.     each of your animations. Each animation must have its own
  29.     subdirectory. (Be sure that only subdirectories containing
  30.     animations are below the AnimPage directory.)
  31.  
  32. 3.  *IMPORTANT*: Check the 'user variables' at the beginning of the
  33.     AnimPage.cmd file. Edit as needed.
  34.  
  35. 4.  Run AnimPage.cmd: Running AnimPage.cmd will generate the
  36.     AnimPage.htm file plus separate .htm files for each graphic.
  37.  
  38. 5.  Load AnimPage.htm into WebExplorer: select 'File', 'Open' from the
  39.     menu (or press Ctrl-O) and then use the file open dialog box to
  40.     locate and load the file. Now, you should either save it in the
  41.     quicklist or make it your "home page" in order to load it more
  42.     easily in the future.
  43.  
  44. Each time you want to add a new animation, simply re-run AnimPage.cmd.
  45. The old AnimPage.htm file will be renamed to AnimPage.bak. The
  46. individual loader files will be deleted and recreated. If you want to
  47. remove an animation, delete the subdirectory containing it. Re-run
  48. AnimPage.cmd to remove it from the AnimPage.htm file.
  49.  
  50. Note that if an animation included an .htm file for loading, a new .htm
  51. loader file will be created anyhow. The <TITLE> from the original loader
  52. file will be used for the animation title on the AnimPage.htm page.
  53. Also, if any <A HREF> links are found in the original loader file, they
  54. will be included in the new file. Right now, only the <A HREF> is
  55. searched for, so if the end tag- </A>- is on a different line, the link
  56. won't work. The only way to correct this at present is to edit the
  57. original loader file for the animation to put the end tag on the same
  58. line as the <A HREF> start tag. If there is no <A HREF> link in the
  59. original loader file, then "Animation source unknown" will appear at the
  60. bottom of the new loader file. I know of no way to search for all
  61. variations of things like "by John Smith", if the name didn't include a
  62. link.
  63.  
  64. This is a very preliminary version of the program, therefore many
  65. improvements could be made. For example, as written all files must
  66. remain in the directory in which they were generated. Paths to the files
  67. are hard-coded into the generated .htm files. Maybe one day I will have
  68. time to work on improvements... and even a VX-Rexx interface! For now,
  69. though, it meets my needs. I hope others may find it useful, as well.
  70.  
  71. Notes about the user variables:
  72.  
  73. 1.  AnimTables: if this variable is set to 1, then the AnimPage.htm file
  74.     will be generated using a 'Table' format. If you are running an
  75.     older version of WebExplorer which does not support Tables, then set
  76.     the AnimTables variable to 0. A 'List' format will then be
  77.     generated.
  78.  
  79. 2.  AnimPath is the base directory for your animation files. As noted
  80.     above, each separate animation must be located in its own
  81.     subdirectory beneath the base directory. If this variable is blank,
  82.     then the current directory will be used for the AnimPath variable.
  83.     (This assumes that animpage.cmd is run from the base directory.)
  84.  
  85.     Example:    Animpath='c:\inet\animate'
  86.  
  87. 3.  You may substitute your own graphics for the ones supplied. Just
  88.     edit the user variable for the desired graphic to match your
  89.     graphics file name, and copy your graphics file(s) to the base
  90.     directory.
  91.  
  92. 4.  The AnimArcHRef variables are links to animation archives sites. Of
  93.     course, you can set them to any site you want, but as supplied they
  94.     point to 3 animations sites. These links will be displayed below the
  95.     'AnimArc' graphic located near the bottom of the page. Currently
  96.     AnimPage only supports 5 links. To change the links, edit both the
  97.     AnimArcHRef and the AnimArcTitle variables for the link you want to
  98.     add/modify. You could also use one (or more) of these links to load
  99.     another HTML page, instead of an http:// link. For example, I created
  100.     a page of links to my favorite sites:
  101.  
  102.     file:///E:\INET\PAGES\SALHOME\HOMEPAGE.HTM
  103.  
  104. 5.  If you don't want the Blue Ribbon logo and link displayed at the
  105.     bottom of the page, then just edit the AnimRibbon user variable to
  106.     make it an empty string:
  107.  
  108.     AnimRibbon=''       /* Blue Ribbon Logo graphic for bottom of page */
  109.  
  110.     The AnimPage program checks to see if this string is empty, and if so
  111.     it doesn't add the link.
  112.  
  113. 6.  AnimOnward: Same as for the blue ribbon link, but the graphic and
  114.     link are for the "Ever Onward OS/2 Campaign" page.
  115.  
  116. 7.  AnimLogo: Same as for the blue ribbon link, but the graphic and
  117.     link are for the "Building for Merlin" page.
  118.  
  119. Known problems:
  120.  
  121. 1.  WebExplorer crashes upon loading the AnimPage.htm file with a
  122.     SYS3175 error (WEBEXWIN.DLL.) (I'm running WebExplorer v1.1B.) I
  123.     only had this happen on one of 46 animations I've tried. I use the
  124.     first animation of the series for the icon on the AnimPage.htm file.
  125.     For some reason WebExplorer doesn't like some graphics files. The
  126.     one I had the problem with was a .BMP file. To resolve the problem,
  127.     I loaded the file into a graphics editor and then saved it. I
  128.     noticed that the file size changed, even though I didn't edit the
  129.     file... sorry folks, I don't know anything about graphics, so I
  130.     can't say what was changed that fixed the problem, but it worked.
  131.     Note that I didn't do anything to other files in the series, and the
  132.     animation itself works fine. If you experience this problem, try to
  133.     see which icon is being loaded when WebExplorer crashes, then do as
  134.     I did above, or remove the individual animation subdirectory and all
  135.     of its files.
  136.  
  137. 2.  As mentioned above, credits will not appear properly in the new
  138.     individual loader .htm files if both the start and end tags for a
  139.     href reference are not on the same line. Edit the .htm loader file
  140.     located in the affected animation's subdirectory accordingly.
  141.  
  142. History:
  143.     v1.0 - first release
  144.     v1.1 - minor aesthetic fixes, not released
  145.     v1.2 - corrections to code to fix possible problems which could
  146.            occur if an original loader file had a "bad" title or href
  147.            line. Added more links.
  148.     v1.3 - added 'Table' formatting.
  149.     v1.4 - minor corrections to the HTML code generated to display
  150.            graphics and format table data better. Also added the new
  151.            header graphic for the top of the page created by Ingo
  152.            Guenther. Thank you Ingo!
  153.  
  154. ** WebExplorer is a copyright of IBM Corp.
  155.  
  156.