home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 25: Programming / pc_actual_25.iso / Javascript / InteractiveWebDesignJavascript / Scripting / cgi1 / perl / slide.js < prev    next >
Encoding:
Text File  |  2001-07-18  |  2.6 KB  |  86 lines

  1. // If your presentation is longer than 200 slides,
  2. // you could change the array size below.
  3. filename = new Array(200);
  4.  
  5. first_slide = 0;
  6. last_slide = 0;
  7. current_slide = 1;
  8. slides_inserted = 0;
  9. slides_deleted = 0;
  10. show_slide_filename = 0;
  11.  
  12.  
  13. /* function AddSlide adds a slide to the presentation at the end.      */
  14. /*                                                                     */
  15. /* parameter name is the name of the file, without the .htm extension. */
  16.  
  17. function AddSlide(name)
  18. {
  19.     last_slide++;
  20.     if(name == null) name = last_slide-slides_inserted+slides_deleted;
  21.     else {
  22.         slides_inserted++;
  23.     }
  24.     filename[last_slide] = name + ".htm";
  25. }
  26.  
  27.  
  28. // DON'T EDIT ANY OF THE TEXT ABOVE THIS LINE!!!
  29. // It's source code you don't need to touch and should not touch.
  30. //
  31. // To add, delete, and reorder slides, 
  32. // just add, delete, and reorder the AddSlide("FILENAME")
  33. // entries below.  Each name in double quotes is the name
  34. // of an HTML file in this presentation directory.
  35. //
  36. // If you want to include an HTML file which is in a subdirectory,
  37. // separate the subdirectory name and the HTML file name with a
  38. // forward slash like this: AddSlide("DIRECTORYNAME/FILENAME")
  39. // (This works fine across platforms, even on Windows.) 
  40. //
  41. // Within the quotes, don't include an extension like .htm or .html.
  42. // This application automatically adds .htm to the name when it
  43. // looks in the directory for the file.  In the directory, the
  44. // HTML file *must* have the three letter extension .htm.
  45.  
  46.  
  47. // Means the preso is being set for placement on the web
  48. // to be viewed directly (with no human speaker) by the end user.
  49. var online = true
  50.  
  51.  
  52. // Running online as Visual Tutorial with explanatory text.
  53. var tutorialMode = false
  54.  
  55.  
  56. // Keep these first three slides (Logopage, Title, S_agenda)
  57. // in your presentation so we have a standard look and feel.
  58. // (Edit the contents of the Title and S_agenda slide.)
  59.  
  60. AddSlide("logopage");    // Class logo page
  61.  
  62. // Add *either* the tutorial title page or the presentation
  63. // title page, depending on whether we're running in tutorialMode.
  64. if (tutorialMode) { AddSlide("titletut"); }
  65. else { AddSlide("title"); }    // title slide
  66.  
  67. AddSlide("l1_agnd1");   // agenda slide
  68. AddSlide("backgrd");       //  background of perl
  69. AddSlide("advantages"); // Advantages of Perl
  70. AddSlide("disadv");       // disadvantages
  71. AddSlide("example1");   // A scripting example
  72. AddSlide("example2");   // A CGI example
  73. AddSlide("summary");    // Summary slide 2
  74.  
  75.  
  76. // Keep this last slide (logopage) in your presentation 
  77. // so every presentation ends with the logo.
  78.  
  79. AddSlide("logopage");    // Class logo page
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.